there shouldn't be brackets in transaction's effective date, my mistake

This commit is contained in:
Simon Michael 2009-12-12 03:03:41 +00:00
parent b6a5a3398e
commit 5d6c6d778e
7 changed files with 8 additions and 9 deletions

View File

@ -70,7 +70,7 @@ showLedgerTransaction' elide effective t =
code = if (length $ ltcode t) > 0 then (printf " (%s)" $ ltcode t) else ""
desc = " " ++ ltdescription t
showdate = printf "%-10s" . showDate
showedate = printf "[=%s]" . showdate
showedate = printf "=%s" . showdate
showpostings ps
| elide && length ps > 1 && isLedgerTransactionBalanced t
= map showposting (init ps) ++ [showpostingnoamt (last ps)]

View File

@ -356,9 +356,8 @@ ledgerdatetime = do
ledgereffectivedate :: GenParser Char LedgerFileCtx (Maybe Day)
ledgereffectivedate = do
string "[="
char '='
edate <- ledgerdate
char ']'
return $ Just edate
ledgerstatus :: GenParser Char st Bool

View File

@ -4,7 +4,7 @@
a 1
b
2009/1/1[=2010/1/1] x
2009/1/1=2010/1/1 x
a 10
b
>>>

View File

@ -3,7 +3,7 @@
<<<
Y 2009
2009/1/1[=1/2] x
2009/1/1=1/2 x
a 1
b
>>>

View File

@ -1,10 +1,10 @@
-f - print
<<<
2009/1/1[=2010/1/1] x
2009/1/1=2010/1/1 x
a 1
b
>>>
2009/01/01[=2010/01/01] x
2009/01/01=2010/01/01 x
a 1
b -1

View File

@ -1,6 +1,6 @@
-f - print --effective
<<<
2009/1/1[=2010/1/1] x
2009/1/1=2010/1/1 x
a 1
b
>>>

View File

@ -1,6 +1,6 @@
-f - register --effective
<<<
2009/1/1[=2010/1/1] x
2009/1/1=2010/1/1 x
a 1
b
>>>