lib: Use .. in place of ,, for date ranges in compound balance reports.

This commit is contained in:
Stephen Morgan 2020-06-05 11:30:55 +10:00 committed by Simon Michael
parent 2f71da8838
commit 935abd1842
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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
======================++=========================================================================================================================================================

View File

@ -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
======================++=========================================================================================================================================================

View File

@ -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
===================++================================================================================================================================================