Bug 798050 - error using Reports->Experimental->Income Statement (Multicolumn)

the intention - for pnl multicolumn reports, the barchart is always
available:

- if period is disabled, show monthly reports
- if period is enabled, show periodic reports
This commit is contained in:
Christopher Lam 2020-12-14 07:26:49 +08:00
parent 9ffee97475
commit b014d0190a

View File

@ -1204,7 +1204,7 @@ also show overall period profit & loss."))
(chart
(and-let* (include-chart?
(curr (or common-currency book-main-currency))
(delta (or (not (eq? incr 'disabled)) 'MonthDelta))
(delta (if (eq? incr 'disabled) 'MonthDelta incr))
(price (or price-source 'pricedb-nearest)))
(gnc:make-report-anchor
pnl-barchart-uuid report-obj