Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-02-07 Thread Di Mang
FYI

I just added it to Bugzilla:
https://bugzilla.gnome.org/show_bug.cgi?id=793278

DM

2018-02-06 21:14 GMT+01:00 Di Mang :

> 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 :
>
>> Hello Christopher,
>>
>> Thank you for checking! I will add this bug to Bugzilla.
>>
>> DiMang
>>
>> 2018-02-05 23:29 GMT+01:00 Christopher Lam :
>>
>>> 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.ellenber...@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@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>

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


Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-02-06 Thread Di Mang
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 :

> Hello Christopher,
>
> Thank you for checking! I will add this bug to Bugzilla.
>
> DiMang
>
> 2018-02-05 23:29 GMT+01:00 Christopher Lam :
>
>> 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.ellenber...@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@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel

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


Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-02-06 Thread Di Mang
Hello Christopher,

Thank you for checking! I will add this bug to Bugzilla.

DiMang

2018-02-05 23:29 GMT+01:00 Christopher Lam :

> 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.ellenber...@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@gnucash.org
>>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>>
>>
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-02-05 Thread Christopher Lam

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.ellenber...@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@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


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


Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-02-05 Thread Di Mang
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.ellenber...@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
>
>
>
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.14.1") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'glib-2.0>=2.20'
--   Found glib-2.0, version 2.54.1
-- Checking for module 'gobject-2.0>=2.20'
--   Found gobject-2.0, version 2.54.1
-- Checking for module 'gmodule-2.0>=2.20'
--   Found gmodule-2.0, version 2.54.1
-- Checking for module 'gthread-2.0>=2.20'
--   Found gthread-2.0, version 2.54.1
-- Checking for module 'libxml-2.0>=2.7.0'
--   Found libxml-2.0, version 2.9.4
-- Checking for module 'libgnomecanvas-2.0'
--   Found libgnomecanvas-2.0, version 2.30.3
-- Checking for module 'libxslt'
--   Found libxslt, version 1.1.29
-- Checking for module 'webkit-1.0>=1.2'
--   Found webkit-1.0, version 2.4.11
-- Checking for module 'gtk+-2.0>=2.24.0'
--   Found gtk+-2.0, version 2.24.31
-- Checking for module 'libgoffice-0.8>=0.8.17'
--   Found libgoffice-0.8, version 0.8.17
-- Checking for module 'zlib'
--   Found zlib, version 1.2.11
-- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10") 
-- Using guile-2.0.x
-- Checking for module 'gwenhywfar'
--   Found gwenhywfar, version 4.17.0
-- Checking for module 'aqbanking'
--   Found aqbanking, version 5.7.6beta
-- Checking for module 'gwengui-gtk2'
--   Found gwengui-gtk2, version 4.17.0
-- Checking for module 'ktoblzcheck'
--   Found ktoblzcheck, version 1.49
-- Found LibXslt: xslt;xml2 (found version "1.1.29") 
-- Found Perl: /usr/bin/perl (found version "5.26.0") 
-- Looking for include file X11/Xlib.h
-- Looking for include file X11/Xlib.h - found
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file glob.h
-- Looking for include file glob.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file limits.h
-- Looking for include file limits.h - found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/times.h
-- Looking for include file sys/times.h - found
-- Looking for include file sys/types.h
-- Looking for include file 

Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-01-28 Thread Frank H. Ellenberger
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@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Bug in "Liabilities Barchart" report (since 2.6.19)

2018-01-28 Thread John Ralls


> On Jan 28, 2018, at 6:48 AM, Di Mang  wrote:
> 
> 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!
> 

Is USD the only currency involved in these transactions?

Regards,
John Ralls


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


Bug in "Liabilities Barchart" report (since 2.6.19)

2018-01-28 Thread 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​


Example - Liability Barchart.gnucash
Description: Binary data
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel