add: elide last amount in added transactions, as requested
This commit is contained in:
parent
c2cf9b2185
commit
27510b0106
@ -134,7 +134,7 @@ askFor prompt def validator = do
|
|||||||
-- is enough to include new transactions in the history matching.
|
-- is enough to include new transactions in the history matching.
|
||||||
ledgerAddTransaction :: Ledger -> Transaction -> IO Ledger
|
ledgerAddTransaction :: Ledger -> Transaction -> IO Ledger
|
||||||
ledgerAddTransaction l t = do
|
ledgerAddTransaction l t = do
|
||||||
appendToLedgerFile l $ show t
|
appendToLedgerFile l $ showTransaction t
|
||||||
putStrLn $ printf "\nAdded transaction to %s:" (filepath $ journal l)
|
putStrLn $ printf "\nAdded transaction to %s:" (filepath $ journal l)
|
||||||
putStrLn =<< registerFromString (show t)
|
putStrLn =<< registerFromString (show t)
|
||||||
return l{journal=rl{jtxns=ts}}
|
return l{journal=rl{jtxns=ts}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user