bs/bse/cf/is: show overall report span in title
This commit is contained in:
parent
e9624486b6
commit
6210613f76
@ -133,9 +133,10 @@ compoundBalanceCommand CompoundBalanceCommandSpec{..} opts@CliOpts{command_=cmd,
|
|||||||
"change":_ -> Just PeriodChange
|
"change":_ -> Just PeriodChange
|
||||||
_ -> Nothing
|
_ -> Nothing
|
||||||
balancetype = fromMaybe cbctype mBalanceTypeOverride
|
balancetype = fromMaybe cbctype mBalanceTypeOverride
|
||||||
-- when user overrides, add an indication to the report title
|
title = cbctitle ++ " " ++ showDateSpan requestedspan ++ maybe "" (' ':) mtitleclarification
|
||||||
title = cbctitle ++ maybe "" (' ':) mtitleclarification
|
|
||||||
where
|
where
|
||||||
|
requestedspan = queryDateSpan (date2_ ropts) userq `spanDefaultsFrom` journalDateSpan (date2_ ropts) j
|
||||||
|
-- when user overrides, add an indication to the report title
|
||||||
mtitleclarification = flip fmap mBalanceTypeOverride $ \t ->
|
mtitleclarification = flip fmap mBalanceTypeOverride $ \t ->
|
||||||
case t of
|
case t of
|
||||||
PeriodChange -> "(Balance Changes)"
|
PeriodChange -> "(Balance Changes)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user