there shouldn't be brackets in transaction's effective date, my mistake
This commit is contained in:
parent
b6a5a3398e
commit
5d6c6d778e
@ -70,7 +70,7 @@ showLedgerTransaction' elide effective t =
|
|||||||
code = if (length $ ltcode t) > 0 then (printf " (%s)" $ ltcode t) else ""
|
code = if (length $ ltcode t) > 0 then (printf " (%s)" $ ltcode t) else ""
|
||||||
desc = " " ++ ltdescription t
|
desc = " " ++ ltdescription t
|
||||||
showdate = printf "%-10s" . showDate
|
showdate = printf "%-10s" . showDate
|
||||||
showedate = printf "[=%s]" . showdate
|
showedate = printf "=%s" . showdate
|
||||||
showpostings ps
|
showpostings ps
|
||||||
| elide && length ps > 1 && isLedgerTransactionBalanced t
|
| elide && length ps > 1 && isLedgerTransactionBalanced t
|
||||||
= map showposting (init ps) ++ [showpostingnoamt (last ps)]
|
= map showposting (init ps) ++ [showpostingnoamt (last ps)]
|
||||||
|
|||||||
@ -356,9 +356,8 @@ ledgerdatetime = do
|
|||||||
|
|
||||||
ledgereffectivedate :: GenParser Char LedgerFileCtx (Maybe Day)
|
ledgereffectivedate :: GenParser Char LedgerFileCtx (Maybe Day)
|
||||||
ledgereffectivedate = do
|
ledgereffectivedate = do
|
||||||
string "[="
|
char '='
|
||||||
edate <- ledgerdate
|
edate <- ledgerdate
|
||||||
char ']'
|
|
||||||
return $ Just edate
|
return $ Just edate
|
||||||
|
|
||||||
ledgerstatus :: GenParser Char st Bool
|
ledgerstatus :: GenParser Char st Bool
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
a 1
|
a 1
|
||||||
b
|
b
|
||||||
|
|
||||||
2009/1/1[=2010/1/1] x
|
2009/1/1=2010/1/1 x
|
||||||
a 10
|
a 10
|
||||||
b
|
b
|
||||||
>>>
|
>>>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<<<
|
<<<
|
||||||
Y 2009
|
Y 2009
|
||||||
|
|
||||||
2009/1/1[=1/2] x
|
2009/1/1=1/2 x
|
||||||
a 1
|
a 1
|
||||||
b
|
b
|
||||||
>>>
|
>>>
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
-f - print
|
-f - print
|
||||||
<<<
|
<<<
|
||||||
2009/1/1[=2010/1/1] x
|
2009/1/1=2010/1/1 x
|
||||||
a 1
|
a 1
|
||||||
b
|
b
|
||||||
>>>
|
>>>
|
||||||
2009/01/01[=2010/01/01] x
|
2009/01/01=2010/01/01 x
|
||||||
a 1
|
a 1
|
||||||
b -1
|
b -1
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
-f - print --effective
|
-f - print --effective
|
||||||
<<<
|
<<<
|
||||||
2009/1/1[=2010/1/1] x
|
2009/1/1=2010/1/1 x
|
||||||
a 1
|
a 1
|
||||||
b
|
b
|
||||||
>>>
|
>>>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
-f - register --effective
|
-f - register --effective
|
||||||
<<<
|
<<<
|
||||||
2009/1/1[=2010/1/1] x
|
2009/1/1=2010/1/1 x
|
||||||
a 1
|
a 1
|
||||||
b
|
b
|
||||||
>>>
|
>>>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user