GnuCash
Contact   Instructions
Bug 798050 - error using Reports->Experimental->Income Statement (Multicolumn)
Summary: error using Reports->Experimental->Income Statement (Multicolumn)
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: General (show other bugs)
Version: git-maint
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: general
QA Contact: general
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-13 18:15 EST by Giuseppe Foti
Modified: 2020-12-13 18:34 EST (History)
3 users (show)

See Also:


Attachments
error image (205.62 KB, image/png)
2020-12-13 18:17 EST, Giuseppe Foti
no flags Details

Description Giuseppe Foti 2020-12-13 18:15:11 EST
Using report Reports->Experimental->Income Statement (Multicolumn) and setting:
-> Enable chart
-> Period duration (each one but Disabled)
I get the error "This report was saved using a later version of GnuCash. One of the newer multichoice options '#t' is not available, fallback to the option 'MonthDelta'."

The error appears again when going back after click on "BarChart"
https://snipboard.io/AO9fYr.jpg
Comment 1 Giuseppe Foti 2020-12-13 18:17:58 EST
Created attachment 373936 [details]
error image
Comment 2 Christopher Lam 2020-12-13 18:34:58 EST
Thanks! The following makes this report work as originally intended:

* For Balance-Sheet, barchart is only available if period is not "disabled".
* For Profit&Loss, the barchart is always available -- use period option, or default to Monthly.

modified   gnucash/report/reports/standard/balsheet-pnl.scm
@@ -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

Note You need to log in before you can comment on or make changes to this bug.