bs/cf/is: fix subtitle appearing above total (and put on one line) (#527)
This commit is contained in:
parent
afd58b8451
commit
b82e800ae6
@ -117,13 +117,13 @@ balanceviewReport :: BalanceView -> CliOpts -> Journal -> IO ()
|
||||
balanceviewReport BalanceView{..} CliOpts{reportopts_=ropts, rawopts_=raw} j = do
|
||||
currDay <- getCurrentDay
|
||||
let q0 = queryFromOpts currDay ropts'
|
||||
let title = bvtitle ++ maybe "" (' ':) balanceclarification
|
||||
case interval_ ropts' of
|
||||
NoInterval -> do
|
||||
let (views, amt) =
|
||||
foldMap (uncurry (balanceviewQueryReport ropts' q0 j))
|
||||
bvqueries
|
||||
mapM_ putStrLn (bvtitle : "" : views)
|
||||
mapM_ putStrLn balanceclarification
|
||||
mapM_ putStrLn (title : "" : views)
|
||||
|
||||
unless (no_total_ ropts') . mapM_ putStrLn $
|
||||
[ "Total:"
|
||||
@ -151,8 +151,7 @@ balanceviewReport BalanceView{..} CliOpts{reportopts_=ropts, rawopts_=raw} j = d
|
||||
(sumAmts ++ (if row_total_ ropts' then [totsum] else [])
|
||||
++ (if average_ ropts' then [totavg] else [])
|
||||
)
|
||||
putStrLn bvtitle
|
||||
mapM_ putStrLn balanceclarification
|
||||
putStrLn title
|
||||
putStrLn $ renderBalanceReportTable ropts totTabl
|
||||
where
|
||||
overwriteBalanceType =
|
||||
|
||||
@ -182,8 +182,7 @@ Cashflow Statement
|
||||
# 6. Multicolumn test (historical)
|
||||
hledger -f sample.journal cashflow -p 'monthly in 2008' -A --historical
|
||||
>>>
|
||||
Cashflow Statement
|
||||
(Historical Ending Balances)
|
||||
Cashflow Statement (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
|
||||
======================++==========================================================================================================================================================
|
||||
|
||||
@ -214,8 +214,7 @@ Income Statement
|
||||
# 6. Multicolumn test (historical)
|
||||
hledger -f sample.journal incomestatement -p 'monthly in 2008' --historical
|
||||
>>>
|
||||
Income Statement
|
||||
(Historical Ending Balances)
|
||||
Income Statement (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