Bug in "Liabilities Barchart" report (since 2.6.19)

Di Mang di.mang.freetime at gmail.com
Tue Feb 6 15:14:58 EST 2018


Hello Christopher,

I found the bug out. It was caused by commit "766e74096+"

Titel: "bugfix incorrect min-date handling".
Description: "This bugfix affects net-linechart and net-barchart - assumes
the min-date for dates must be 0. Net worth charts straddling the date
01-01-1970 were incorrect. I'll fix in time64-ftw as well."
"
---------------- src/report/report-system/report-collectors.scm
----------------
index ad3ae5369..b4415e5d8 100644
@@ -155,7 +155,7 @@
     (list min-date max-date datepairs)))

 (define (category-report-dates-accumulate dates)
-  (let* ((min-date (gnc:secs->timepair 0))
+  (let* ((min-date (decdate (car (list-min-max dates gnc:timepair-lt))
DayDelta))
"

As a simple solution, we can undo this change. But I do not know, if this
affects other parts of the code.
Could you please check, how it can be repair? Thanks a lot!

Do I still need to add this bug to Bugzilla?

DiMang




2018-02-06 16:41 GMT+01:00 Di Mang <di.mang.freetime at gmail.com>:

> Hello Christopher,
>
> Thank you for checking! I will add this bug to Bugzilla.
>
> DiMang
>
> 2018-02-05 23:29 GMT+01:00 Christopher Lam <christopher.lck at gmail.com>:
>
>> Hi Di Mang I agree bug exists - would you be able to file bug report?
>>
>> We'd need to investigate category-barchart.scm
>>
>>
>>
>> On 06/02/18 05:24, Di Mang wrote:
>>
>>> Hello all,
>>>
>>> I have investigated this problem further in the last few days.
>>> I think, it doesn't depend on some special version of GnuCash.
>>>
>>> For example, all works fine, if I use pre-build versions of GnuCash.
>>> I tested it with:
>>> * GnuCash (2.6.17, 2.6.19) on Windows 7 (from GnuCash-website)
>>> * and GnuCash 2.6.17 on Ubuntu 17.10 (from Ubuntu Software Center).
>>>
>>> But, it does not work right (see screenshots in my first mail),
>>> if I build GnuCash from souce files myself (2.6.19 or unstable, on Ubuntu
>>> 17.10, with cmake).
>>>
>>> I attached the output files for "cmake" and "make" commands.
>>> Can it be, that I am using a wrong version of some library?
>>>
>>> 2018-01-28 16:50 GMT+01:00 Frank H. Ellenberger <
>>> frank.h.ellenberger at gmail.com>:
>>>
>>> Hi,
>>>>
>>>> Am 28.01.2018 um 15:48 schrieb Di Mang:
>>>>
>>>>> Hello,
>>>>>
>>>>> I have a problem with the "Liabilities Chart", "Asset Chart" and "Net
>>>>>
>>>> Worth
>>>>
>>>>> Barchart" reports since I switched to GnuCash 2.6.19 (on Ubuntu
>>>>> 17.10). I
>>>>> have this problem with unstable 2.7.3 too (built from source). With
>>>>>
>>>> GnuCash
>>>>
>>>>> 2.6.17 the reports worked as expected.
>>>>>
>>>>> These reports display the accumulated amounts, but only based on the
>>>>> transactions from the selected period. The transactions before the
>>>>> start
>>>>> time are ignored. See example in the appendix (as image and GnuCash
>>>>>
>>>> file).
>>>>
>>>>> ​I tried to find the error. Unfortunately, I do not know where to
>>>>> start.​
>>>>> Can someone please look at it. With the example from the attachment it
>>>>> should be easy. Thanks in advance!
>>>>>
>>>>> ​DM​
>>>>>
>>>> Did you accitently change Preferences->Accounts->Reverse Balance
>>>> Accounts?
>>>>
>>>> Frank
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> gnucash-devel mailing list
>>>> gnucash-devel at gnucash.org
>>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>>
>>>
>> _______________________________________________
>> gnucash-devel mailing list
>> gnucash-devel at gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>
>
>


More information about the gnucash-devel mailing list