I think the change in R13266 broke both the balance sheet and equity statement reports. Both of them pass (cons 0 0) as a starting time to gnc:accountlist-get-comm-balance-interval. It is eventually passed to (gnc:timepair-end-day-time (gnc:timepair-previous-day from)) which seems to turn it into a date far into the future.

This really should be fixed by making decdate (which gnc:timepair-previous-day calls) watch for overflow but the simple patch below makes these reports work better. The equity statement report may work ok without this patch, but the balance sheet report definitely doesn't.

--
Mike Alexander           [EMAIL PROTECTED]
Ann Arbor, MI            PGP key ID: BEA343A6


Index: src/report/standard-reports/balance-sheet.scm
===================================================================
--- src/report/standard-reports/balance-sheet.scm       (revision 13771)
+++ src/report/standard-reports/balance-sheet.scm       (working copy)
@@ -277,7 +277,7 @@
    (gnc:option-value
     (gnc:lookup-option
      (gnc:report-options report-obj) pagename optname)))
-  (define forever-ago (cons 0 0))
+  (define forever-ago (cons 100000 0))

  (gnc:report-starting reportname)

Index: src/report/standard-reports/equity-statement.scm
===================================================================
--- src/report/standard-reports/equity-statement.scm    (revision 13771)
+++ src/report/standard-reports/equity-statement.scm    (working copy)
@@ -193,7 +193,7 @@
    (gnc:option-value
     (gnc:lookup-option
      (gnc:report-options report-obj) pagename optname)))
-  (define forever-ago (cons 0 0))
+  (define forever-ago (cons 100000 0))

  (gnc:report-starting reportname)

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to