This commit is contained in:
Simon Michael 2007-02-10 23:42:22 +00:00
parent 98c9ef538b
commit 0b5cb44b43
2 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,7 @@ data Ledger = Ledger {
periodic_entries :: [PeriodicEntry], periodic_entries :: [PeriodicEntry],
entries :: [Entry] entries :: [Entry]
} deriving (Eq) } deriving (Eq)
data ModifierEntry = ModifierEntry { -- aka automated entry data ModifierEntry = ModifierEntry { -- aka "automated entry"
valueexpr :: String, valueexpr :: String,
m_transactions :: [Transaction] m_transactions :: [Transaction]
} deriving (Eq) } deriving (Eq)
@ -22,7 +22,7 @@ data PeriodicEntry = PeriodicEntry {
} deriving (Eq) } deriving (Eq)
data Entry = Entry { data Entry = Entry {
date :: Date, date :: Date,
status :: Bool, status :: Status,
code :: String, code :: String,
description :: String, description :: String,
transactions :: [Transaction] transactions :: [Transaction]
@ -36,6 +36,7 @@ data Amount = Amount {
quantity :: Double quantity :: Double
} deriving (Eq) } deriving (Eq)
type Date = String type Date = String
type Status = Bool
type Account = String type Account = String
-- Amount arithmetic - ignores currency conversion -- Amount arithmetic - ignores currency conversion

View File

@ -3,7 +3,7 @@
-- GPLv3, (c) Simon Michael & contributors, -- GPLv3, (c) Simon Michael & contributors,
-- John Wiegley's ledger is at http://newartisans.com/ledger.html . -- John Wiegley's ledger is at http://newartisans.com/ledger.html .
module Main -- almost all IO is handled here module Main -- application logic & most IO
where where
import System import System