Re: [GNC] Windows installer build failure, cmath error: 'copysign' has not been declared in '::' on MINGW32

2024-08-15 Thread Hai Liang Wang
Problem fixed, well, need further more tests. Currently compiling can be done. Add a line in *gnucash-core-app.hpp as below.* *diff --git a/gnucash/gnucash-core-app.hpp b/gnucash/gnucash-core-app.hpp* *index b9ba65dec9..a793327c0e 100644* *--- a/gnucash/gnucash-core-app.hpp* *+++ b/gnucash/gnucas

[GNC] CMake error, GnuCash can't be built with the DESTDIR environment variable set on Windows, build on MINGW32

2024-08-15 Thread Hai Liang Wang
hi, folks Also near the end of build phases. The build command `TARGET=gnucash-stable jhbuild -f jhbuildrc build ` now throw an error: *-- Installing: C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-git/gcdev64/gnucash/stable/inst/share/gnucash/pref_transformations.xml* *CMake Error at gnuca

[GNC] Python bindings issue

2024-08-15 Thread Gere Kiss Zsolt
Hi Jim, > The obvious next question: when you installed the `python3-gnucash` > package on your system, where exactly did it install its .py files? On /usr/lib/python3/dist-packages: /usr/lib/python3/dist-packages/gnucash /usr/lib/python3/dist-packages/gnucash/__init__.py /usr/lib/python3/dist-

Re: [GNC] CMake error, GnuCash can't be built with the DESTDIR environment variable set on Windows, build on MINGW32

2024-08-15 Thread Hai Liang Wang
Get some related info with https://bugzilla.gnome.org/show_bug.cgi?id=792884 So, I just checked C:\gcdev64\gnucash\stable\build\gnucash-git\share\glib-2.0\schemas on my machine. It contains files like, org.gnucash.GnuCash.deprecated.gschema.xml, gschemas.compiled, etc. 22 items totally and 283kb.

Re: [GNC] Python bindings issue

2024-08-15 Thread Nate Bargmann
* On 2024 15 Aug 03:21 -0500, Gere Kiss Zsolt wrote: > Hi Jim, > > > > The obvious next question: when you installed the `python3-gnucash` > > package on your system, where exactly did it install its .py files? > > On /usr/lib/python3/dist-packages: > > /usr/lib/python3/dist-packages/gnucash >

[GNC] (no subject)

2024-08-15 Thread Gere Kiss Zsolt
> > Is that the full list or did you truncate the *.py files? Not the full list. That is: $ ls -l /usr/lib/python3/dist-packages/gnucash total 1532 -rw-r--r-- 1 root root 581 aug1 2021 app_utils.py -rw-r--r-- 1 root root4271 aug1 2021 deprecation.py -rw-r--r-- 1 root root 160

Re: [GNC] Windows installer build failure, cmath error: 'copysign' has not been declared in '::' on MINGW32

2024-08-15 Thread John Ralls
_GLIBCXX_USE_C99_MATH_FUNCS replaced _GLIBCXX_USE_C99_MATH_TR1 in gcc 14.1.0, see https://github.com/gcc-mirror/gcc/commit/1f378f6dd33ad5067a437d1c456979f8662020d6 Formally I suppose it would be most correct to select which one to use with // Avoid cmath missing function decl. #if.__GNUC__

Re: [GNC] CMake error, GnuCash can't be built with the DESTDIR environment variable set on Windows, build on MINGW32

2024-08-15 Thread John Ralls
DESTDIR flat doesn’t work on Windows because it prepends $DESTDIR to $CMAKE_INSTALL_PREFIX and the latter starts with a drive letter. See https://cmake.org/cmake/help/latest/envvar/DESTDIR.html. Regards, John Ralls > On Aug 15, 2024, at 01:20, Hai Liang Wang wrote: > > Get some related info

Re: [GNC] (no subject)

2024-08-15 Thread Nate Bargmann
* On 2024 15 Aug 11:42 -0500, Gere Kiss Zsolt wrote: > Can you please elaborate? As I noted in my first reply on this topic, a bug report submitted to Ubuntu so the package maintainer can check to see if there is an error with the packaging may be useful. 22.04 is stated to be an LTS so Ubuntu sho

[GNC] Bad Debt Recording

2024-08-15 Thread Jeff
Hi list, Looking for some advice in recording (writing off) some bad debts in GnuCash when using the Business Invoice/Bills feature. Example: Have Client Bob who owes (has been send and Invoice) for $1000. Bob are disputing the full amount and have only paid $700. In GnuCash I open the Invoic

Re: [GNC] Bad Debt Recording

2024-08-15 Thread David Cousens
Jeff, The standard direct write off method for bad debts would be to credit the Accounts Receivable for the amount of the bad debt and debit an Expense:Bad Debts account for that amount. That will remove the bad debt from your Accounts receivable and record it as an expense against the business a

Re: [GNC] Bad Debt Recording

2024-08-15 Thread Jeff
Thanks David, That is a clearer description of what I am doing. The issue that I have, and maybe it is just my lack of general accounting knowledge, but the amount ($300) is still showing as owing from Bob if I either run the Client Report, or open the Invoice. Shouldn't a written off debt eff

Re: [GNC] Windows installer build failure, cmath error: 'copysign' has not been declared in '::' on MINGW32

2024-08-15 Thread Hai Liang Wang
Sure thing, I am glad to submit the PR. After reading the development guide, I haven't figure out where the PR goes? https://wiki.gnucash.org/wiki/Development_Process# Is it the *github repo* on branch *stable*? https://github.com/Gnucash/gnucash/pulls Thanks for let me know the better code to im

Re: [GNC] Bad Debt Recording

2024-08-15 Thread David Cousens
I think you would have to link the writeoff transaction to the invoice in the same manner you link a payment if GnuCash will allow you too do that (I don't know for sure if it will- Derek may be able to confirm whether it can be). That should clear the invoice I would not see why it you would want

Re: [GNC] Bad Debt Recording

2024-08-15 Thread Jeff
Hi David, Again, possibly just my lack of knowledge on the subject, but I thought that essentially you cleared the debt from the client by moving it to the Bad Debt, essentially saying, We are never going to get this money, so lets forget about it. (Note I have other means to flag to not exten

Re: [GNC] Windows installer build failure, cmath error: 'copysign' has not been declared in '::' on MINGW32

2024-08-15 Thread Hai Liang Wang
The PR link, https://github.com/Gnucash/gnucash/pull/2005 Other info - In gnucash\stable\src\gnucash-git\gnucash\gnucash-core-app.hpp, with following code *#ifdef __MINGW32__* *// Avoid cmath missing function decl.* *#if (__GNUC__ < 14) || (__GNUC__ == 14 && __GNUC_MINOR__ < 1)* *#undef _GLIBCXX

Re: [GNC] Bad Debt Recording

2024-08-15 Thread David Cousens
Jeff, I suspect that if you are able to link the write off transaction to the invoice as a payment, this would likely clear it from both the Accounts Receivable Ageing report and the Client report. That linking may be problematical for a bad debt transaction as the Expense Accounts do not show

Re: [GNC] Bad Debt Recording

2024-08-15 Thread Derek Atkins
What I've done in the past is just process a payment and then change the transfer account from the Bank to Expense. -derek Sent using my mobile device. Please excuse any typos. On August 15, 2024 21:36:55 David Cousens wrote: Jeff, I suspect that if you are able to link the write off transact

Re: [GNC] Bad Debt Recording

2024-08-15 Thread Jeff
Thanks Derek and David, That was the missing part.  I record a payment of the Invoice through the standard payments screen, assigning it to a temporary Income (Assets) account, then  open the register for the Accounts Receivable and change the account reference to be the Bad Debtors expense ac

[GNC] Gnucash.exe bootstrap error, image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)

2024-08-15 Thread Hai Liang Wang
hi, folks After getting a build on my dev machine, I get *gnucash.exe* under *C:\gcdev64\gnucash\stable\inst\bin*. *But I cannot start by double click, nothing happens with double click.* So, I start it with mingw32 terminal, as below. *Administrator@ZIHUATANEJO MINGW32 /c/gcdev64/gnucash/stable/

Re: [GNC] Gnucash.exe bootstrap error, image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)

2024-08-15 Thread Hai Liang Wang
What I tried just now, but not work. As mentioned in https://bbs.archlinux.org/viewtopic.php?id=261143 *update-mime-database /mingw32/share/mime* *chmod -R 755 /mingw32/share/mime* *gdk-pixbuf-query-loaders --update-cache* And start gnucash.exe again, I get the same error as above. Cheers. Hai