mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
lib: Use .. in place of ,, for date ranges in compound balance reports.
This commit is contained in:
parent
2f71da8838
commit
935abd1842
@ -249,7 +249,7 @@ compoundBalanceCommand CompoundBalanceCommandSpec{..} opts@CliOpts{reportopts_=r
|
||||
showEndDates :: [Day] -> String
|
||||
showEndDates es = case es of
|
||||
-- cf showPeriod
|
||||
(e:_:_) -> showdate e ++ ",," ++ showdate (last es)
|
||||
(e:_:_) -> showdate e ++ ".." ++ showdate (last es)
|
||||
[e] -> showdate e
|
||||
[] -> ""
|
||||
where
|
||||
|
@ -48,7 +48,7 @@ Balance Sheet 2016-01-01
|
||||
#
|
||||
hledger -f sample.journal balancesheet -p 'monthly in 2008'
|
||||
>>>
|
||||
Balance Sheet 2008-01-31,,2008-12-31
|
||||
Balance Sheet 2008-01-31..2008-12-31
|
||||
|
||||
|| 2008-01-31 2008-02-29 2008-03-31 2008-04-30 2008-05-31 2008-06-30 2008-07-31 2008-08-31 2008-09-30 2008-10-31 2008-11-30 2008-12-31
|
||||
======================++================================================================================================================================================
|
||||
@ -94,7 +94,7 @@ Balance Sheet 2008-01-31,,2008-12-31
|
||||
#
|
||||
hledger -f sample.journal balancesheet -p 'monthly in 2008' --tree
|
||||
>>>
|
||||
Balance Sheet 2008-01-31,,2008-12-31
|
||||
Balance Sheet 2008-01-31..2008-12-31
|
||||
|
||||
|| 2008-01-31 2008-02-29 2008-03-31 2008-04-30 2008-05-31 2008-06-30 2008-07-31 2008-08-31 2008-09-30 2008-10-31 2008-11-30 2008-12-31
|
||||
==============++================================================================================================================================================
|
||||
@ -123,7 +123,7 @@ Balance Sheet 2008-01-31,,2008-12-31
|
||||
# by default (shows ending balances).
|
||||
hledger -f sample.journal balancesheet -p 'monthly in 2008' -NAT
|
||||
>>>
|
||||
Balance Sheet 2008-01-31,,2008-12-31
|
||||
Balance Sheet 2008-01-31..2008-12-31
|
||||
|
||||
|| 2008-01-31 2008-02-29 2008-03-31 2008-04-30 2008-05-31 2008-06-30 2008-07-31 2008-08-31 2008-09-30 2008-10-31 2008-11-30 2008-12-31 Average
|
||||
======================++=========================================================================================================================================================
|
||||
|
@ -175,7 +175,7 @@ Cashflow Statement 2008
|
||||
# 7. Multicolumn test (historical)
|
||||
hledger -f sample.journal cashflow -p 'monthly in 2008' -A --historical
|
||||
>>>
|
||||
Cashflow Statement 2008-01-31,,2008-12-31 (Historical Ending Balances)
|
||||
Cashflow Statement 2008-01-31..2008-12-31 (Historical Ending Balances)
|
||||
|
||||
|| 2008-01-31 2008-02-29 2008-03-31 2008-04-30 2008-05-31 2008-06-30 2008-07-31 2008-08-31 2008-09-30 2008-10-31 2008-11-30 2008-12-31 Average
|
||||
======================++=========================================================================================================================================================
|
||||
|
@ -263,7 +263,7 @@ Income Statement 2008
|
||||
#
|
||||
hledger -f sample.journal incomestatement -p 'monthly in 2008' --historical
|
||||
>>>
|
||||
Income Statement 2008-01-31,,2008-12-31 (Historical Ending Balances)
|
||||
Income Statement 2008-01-31..2008-12-31 (Historical Ending Balances)
|
||||
|
||||
|| 2008-01-31 2008-02-29 2008-03-31 2008-04-30 2008-05-31 2008-06-30 2008-07-31 2008-08-31 2008-09-30 2008-10-31 2008-11-30 2008-12-31
|
||||
===================++================================================================================================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user