add: elide last amount in added transactions, as requested

This commit is contained in:
Simon Michael 2010-03-19 19:53:26 +00:00
parent c2cf9b2185
commit 27510b0106

View File

@ -134,7 +134,7 @@ askFor prompt def validator = do
-- is enough to include new transactions in the history matching.
ledgerAddTransaction :: Ledger -> Transaction -> IO Ledger
ledgerAddTransaction l t = do
appendToLedgerFile l $ show t
appendToLedgerFile l $ showTransaction t
putStrLn $ printf "\nAdded transaction to %s:" (filepath $ journal l)
putStrLn =<< registerFromString (show t)
return l{journal=rl{jtxns=ts}}