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/gnucash-core-app.hpp*
*@@ -26,6 +26,7 @@*

* #ifdef __MINGW32__*
* #undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl.*
*+#undef _GLIBCXX_USE_C99_MATH_FUNCS*
* #endif*
* #include *
* #include *


Does this line have further impact?

Cheers.
Hai Liang W.


On Thu, Aug 15, 2024 at 2:50 PM Hai Liang Wang 
wrote:

> So far, I know more about the problem, but haven't find a solution yet.
>
> `cmath:2106:11: error: 'copysign' has not been declared in '::'`, this
> link explain the error cause -
>
> https://stackoverflow.com/questions/1216878/cmath-functions-generating-compiler-error
>
> And in, `gnucash\stable\src\gnucash-git\gnucash\gnucash-core-app.hpp`, it
> has
>
> *#ifdef __MINGW32__*
> *#undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl.*
> *#endif*
>
> What happens in my machine, is that cmath's functions are missing, like
> *copysign.*
>
> So, how to get rid of it?
> Need help, thanks.
>
> Cheers.
> Hai Liang W.
>
>
> On Thu, Aug 15, 2024 at 11:32 AM Hai Liang Wang <
> hailiang.hl.w...@gmail.com> wrote:
>
>> hi, folks
>>
>> Run script `TARGET=gnucash-stable jhbuild -f jhbuildrc build` to build
>> windows installer, come to an error -
>>
>> *gnucash.dir/gnucash-core-app.cpp.obj -c
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp*
>> *In file included from
>> C:/gcdev64/msys2/mingw32/include/boost/core/cmath.hpp:19,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/detail/converter_numeric.hpp:26,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/try_lexical_convert.hpp:31,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast.hpp:33,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/program_options/value_semantic.hpp:14,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/program_options/options_description.hpp:13,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/program_options.hpp:15,*
>> * from
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.hpp:31,*
>> * from
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp:32:*
>> *C:/gcdev64/msys2/mingw32/include/c++/14.2.0/cmath:2106:11: error:
>> 'copysign' has not been declared in '::'*
>> * 2106 |   using ::copysign;*
>> *  |   ^~~~*
>> *[124/131] Building CXX object
>> gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj*
>> *FAILED: gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj *
>>
>> How to fix it?
>> Any suggestion is apprecaited.
>>
>> Other version info:
>>
>> *# g++ --version*
>> g++.exe (Rev1, Built by MSYS2 project) 14.2.0
>> Copyright (C) 2024 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> PURPOSE.
>>
>> *# pacman -Q|grep c++*
>> mingw-w64-i686-libc++ 18.1.8-1
>>
>> *# pacman -Q|grep boost*
>> mingw-w64-i686-boost 1.85.0-4
>>
>>
>> Attached the full log.
>>
>> Cheers.
>> Hai Liang W.
>>
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[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 gnucash/gschemas/cmake_install.cmake:72 (message):*
*  GnuCash can't be built with the DESTDIR environment variable set on
Windows*
*  (due to bad interference with glib-compile-schemas).*
*Call Stack (most recent call first):*
*  gnucash/cmake_install.cmake:92 (include)*
*  cmake_install.cmake:108 (include)*


*Compiling gschema files in
C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-gitC:/gcdev64/gnucash/stable/inst/share/glib-2.0/schemas*
*Error opening directory
“C;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\_jhbuild\root-gnucash-gitC;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\share\glib-2.0\schemas”:
No such file or directory*
*-- Installing:
C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-git/gcdev64/gnucash/stable/inst/bin/gnucash.exe*

So, how to fix it?
I try to set *DESTDIR * in src\gnucash-on-windows.git\jhbuildrc, but it
fails to run the build commond, almost quit as soon as executing, get
nothing in trace.
What is the right approach to deal with *DESTDIR ?*
Thanks.

Cheers.
Hai Liang W.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[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-packages/gnucash/_gnucash_core_c.cpython-310-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/gnucash/_sw_app_utils.cpython-310-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/gnucash/_sw_core_utils.cpython-310-x86_64-linux-gnu.so
...

and /usr/lib/python3/dist-packages is in the Python sys path. I also
checked the other sys path locations, and they don't have any gnucash
modules.
I don't have other Python interpreters installed on my system (and don't
feel like fiddling with this, although the distrobox solution will do just
that).

Cheers,
--
   Zsolt

---
„We have two lives, and the second begins when we realize we only have one.”
-- Confucius
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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.

It seems the files are generated successfully.
Not know how to get along with *DESTDIR*, which seems to be the root cause
at my situation.

Cheers.
Hai Liang W.


On Thu, Aug 15, 2024 at 4:08 PM Hai Liang Wang 
wrote:

> 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 gnucash/gschemas/cmake_install.cmake:72 (message):*
> *  GnuCash can't be built with the DESTDIR environment variable set on
> Windows*
> *  (due to bad interference with glib-compile-schemas).*
> *Call Stack (most recent call first):*
> *  gnucash/cmake_install.cmake:92 (include)*
> *  cmake_install.cmake:108 (include)*
>
>
> *Compiling gschema files in
> C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-gitC:/gcdev64/gnucash/stable/inst/share/glib-2.0/schemas*
> *Error opening directory
> “C;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\_jhbuild\root-gnucash-gitC;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\share\glib-2.0\schemas”:
> No such file or directory*
> *-- Installing:
> C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-git/gcdev64/gnucash/stable/inst/bin/gnucash.exe*
>
> So, how to fix it?
> I try to set *DESTDIR * in src\gnucash-on-windows.git\jhbuildrc, but it
> fails to run the build commond, almost quit as soon as executing, get
> nothing in trace.
> What is the right approach to deal with *DESTDIR ?*
> Thanks.
>
> Cheers.
> Hai Liang W.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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
> /usr/lib/python3/dist-packages/gnucash/__init__.py
> /usr/lib/python3/dist-packages/gnucash/_gnucash_core_c.cpython-310-x86_64-linux-gnu.so
> /usr/lib/python3/dist-packages/gnucash/_sw_app_utils.cpython-310-x86_64-linux-gnu.so
> /usr/lib/python3/dist-packages/gnucash/_sw_core_utils.cpython-310-x86_64-linux-gnu.so
> ...

Is that the full list or did you truncate the *.py files?  I have this
on Debian 12:

$ ls -l /usr/lib/python3/dist-packages/gnucash
total 1472
-rw-r--r-- 1 root root 581 Aug  1  2021 app_utils.py
-rw-r--r-- 1 root root4271 Aug  1  2021 deprecation.py
-rw-r--r-- 1 root root   16059 Sep 23  2021 function_class.py
-rw-r--r-- 1 root root   14464 Aug  1  2021 gnucash_business.py
-rw-r--r-- 1 root root 1024280 Feb  6  2023 
_gnucash_core_c.cpython-311-x86_64-linux-gnu.so
-rw-r--r-- 1 root root  232902 Feb  6  2023 gnucash_core_c.py
-rw-r--r-- 1 root root   43850 Jun 26  2022 gnucash_core.py
-rw-r--r-- 1 root root 493 Aug  1  2021 __init__.py
drwxr-xr-x 2 root root4096 Aug 13  2023 __pycache__/
-rw-r--r-- 1 root root   59704 Feb  6  2023 
_sw_app_utils.cpython-311-x86_64-linux-gnu.so
-rw-r--r-- 1 root root   85400 Feb  6  2023 
_sw_core_utils.cpython-311-x86_64-linux-gnu.so

I'm still leaning toward an issue specific to the Ubuntu 22.04 packages.

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819



signature.asc
Description: PGP signature
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[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   16059 szept 26  2021 function_class.py
-rw-r--r-- 1 root root   14464 aug1  2021 gnucash_business.py
-rw-r--r-- 1 root root 1040712 febr   9  2022 _
gnucash_core_c.cpython-310-x86_64-linux-gnu.so
-rw-r--r-- 1 root root  277919 febr   9  2022 gnucash_core_c.py
-rw-r--r-- 1 root root   39185 aug1  2021 gnucash_core.py
-rw-r--r-- 1 root root 493 aug1  2021 __init__.py
drwxr-xr-x 2 root root4096 aug   11 15:47 __pycache__
-rw-r--r-- 1 root root   59848 febr   9  2022 _
sw_app_utils.cpython-310-x86_64-linux-gnu.so
-rw-r--r-- 1 root root   89640 febr   9  2022 _
sw_core_utils.cpython-310-x86_64-linux-gnu.so

I'm still leaning toward an issue specific to the Ubuntu 22.04 packages.


Can you please elaborate?

-- 
Thanks,

   Zsolt

---
„We have two lives, and the second begins when we realize we only have one.”
-- Confucius
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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__ < 14 || (__GNUC__ == 14  && __GNUC_MINOR__ < 1)
  #undef _GLIBCXX_USE_C99_MATH_TR1 
 #else
 #undef _GLIBCXX_USE_C99_MATH_FUNCS
  #endif

But it’s harmless to just undef both of them. Do you want to submit a PR so you 
get credit?

Regards,
John Ralls

> On Aug 14, 2024, at 23:50, Hai Liang Wang  wrote:
> 
> So far, I know more about the problem, but haven't find a solution yet.
> 
> `cmath:2106:11: error: 'copysign' has not been declared in '::'`, this link
> explain the error cause -
> https://stackoverflow.com/questions/1216878/cmath-functions-generating-compiler-error
> 
> And in, `gnucash\stable\src\gnucash-git\gnucash\gnucash-core-app.hpp`, it
> has
> 
> *#ifdef __MINGW32__*
> *#undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl.*
> *#endif*
> 
> What happens in my machine, is that cmath's functions are missing, like
> *copysign.*
> 
> So, how to get rid of it?
> Need help, thanks.
> 
> Cheers.
> Hai Liang W.
> 
> 
> On Thu, Aug 15, 2024 at 11:32 AM Hai Liang Wang 
> wrote:
> 
>> hi, folks
>> 
>> Run script `TARGET=gnucash-stable jhbuild -f jhbuildrc build` to build
>> windows installer, come to an error -
>> 
>> *gnucash.dir/gnucash-core-app.cpp.obj -c
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp*
>> *In file included from
>> C:/gcdev64/msys2/mingw32/include/boost/core/cmath.hpp:19,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/detail/converter_numeric.hpp:26,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/try_lexical_convert.hpp:31,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast.hpp:33,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/program_options/value_semantic.hpp:14,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/program_options/options_description.hpp:13,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/program_options.hpp:15,*
>> * from
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.hpp:31,*
>> * from
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp:32:*
>> *C:/gcdev64/msys2/mingw32/include/c++/14.2.0/cmath:2106:11: error:
>> 'copysign' has not been declared in '::'*
>> * 2106 |   using ::copysign;*
>> *  |   ^~~~*
>> *[124/131] Building CXX object
>> gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj*
>> *FAILED: gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj *
>> 
>> How to fix it?
>> Any suggestion is apprecaited.
>> 
>> Other version info:
>> 
>> *# g++ --version*
>> g++.exe (Rev1, Built by MSYS2 project) 14.2.0
>> Copyright (C) 2024 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> 
>> *# pacman -Q|grep c++*
>> mingw-w64-i686-libc++ 18.1.8-1
>> 
>> *# pacman -Q|grep boost*
>> mingw-w64-i686-boost 1.85.0-4
>> 
>> 
>> Attached the full log.
>> 
>> Cheers.
>> Hai Liang W.
>> 
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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 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.
> 
> It seems the files are generated successfully.
> Not know how to get along with *DESTDIR*, which seems to be the root cause
> at my situation.
> 
> Cheers.
> Hai Liang W.
> 
> 
> On Thu, Aug 15, 2024 at 4:08 PM Hai Liang Wang 
> wrote:
> 
>> 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 gnucash/gschemas/cmake_install.cmake:72 (message):*
>> *  GnuCash can't be built with the DESTDIR environment variable set on
>> Windows*
>> *  (due to bad interference with glib-compile-schemas).*
>> *Call Stack (most recent call first):*
>> *  gnucash/cmake_install.cmake:92 (include)*
>> *  cmake_install.cmake:108 (include)*
>> 
>> 
>> *Compiling gschema files in
>> C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-gitC:/gcdev64/gnucash/stable/inst/share/glib-2.0/schemas*
>> *Error opening directory
>> “C;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\_jhbuild\root-gnucash-gitC;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\share\glib-2.0\schemas”:
>> No such file or directory*
>> *-- Installing:
>> C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-git/gcdev64/gnucash/stable/inst/bin/gnucash.exe*
>> 
>> So, how to fix it?
>> I try to set *DESTDIR * in src\gnucash-on-windows.git\jhbuildrc, but it
>> fails to run the build commond, almost quit as soon as executing, get
>> nothing in trace.
>> What is the right approach to deal with *DESTDIR ?*
>> Thanks.
>> 
>> Cheers.
>> Hai Liang W.
>> 
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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
should respond as it is supported until 2027.

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819



signature.asc
Description: PGP signature
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[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 Invoice and record a payment of $700.  This leaves 
Bob owing $300.


I can record a $300 amount going into Expenses -> Bad Debts, from the 
Accounts Receivable going directly via the Account page.


I think that this then effectively wipes out the debt.  (This may be 
completely wrong)


My issue is Bob still shows as owing $300.  I, maybe incorrectly, 
assumed it would effectively show as Bob owes nothing as we have 
forgiven the amount owed.


What step am I missing?
Can it be done through the Invoice screen to essentially "pay" the 
invoice?  The Payment side of the Invoice only seems to show "Assets" 
accounts (as expected).


Regards,
Jeff.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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 as you suggested.

There are more complex allowance methods where your business has a
fraction of bad debts regularly and you are required to use accrual
accounting.

David Cousens


On Fri, 2024-08-16 at 08:53 +1000, Jeff wrote:
> 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 Invoice and record a payment of $700.  This
> leaves 
> Bob owing $300.
> 
> I can record a $300 amount going into Expenses -> Bad Debts, from the
> Accounts Receivable going directly via the Account page.
> 
> I think that this then effectively wipes out the debt.  (This may be 
> completely wrong)
> 
> My issue is Bob still shows as owing $300.  I, maybe incorrectly, 
> assumed it would effectively show as Bob owes nothing as we have 
> forgiven the amount owed.
> 
> What step am I missing?
> Can it be done through the Invoice screen to essentially "pay" the 
> invoice?  The Payment side of the Invoice only seems to show "Assets"
> accounts (as expected).
> 
> Regards,
> Jeff.
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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 effective remove that debt, so when you 
look a that client is shows they owe nothing?


This is the bit that I seem to be missing, or misunderstanding. 
Essentially how do I link it to that specific client?


Regards,
Jeff.

On 16/8/24 09:17, David Cousens wrote:

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 as you suggested.

There are more complex allowance methods where your business has a
fraction of bad debts regularly and you are required to use accrual
accounting.

David Cousens


On Fri, 2024-08-16 at 08:53 +1000, Jeff wrote:

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 Invoice and record a payment of $700.  This
leaves
Bob owing $300.

I can record a $300 amount going into Expenses -> Bad Debts, from the
Accounts Receivable going directly via the Account page.

I think that this then effectively wipes out the debt.  (This may be
completely wrong)

My issue is Bob still shows as owing $300.  I, maybe incorrectly,
assumed it would effectively show as Bob owes nothing as we have
forgiven the amount owed.

What step am I missing?
Can it be done through the Invoice screen to essentially "pay" the
invoice?  The Payment side of the Invoice only seems to show "Assets"
accounts (as expected).

Regards,
Jeff.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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 improve the software.

Cheers.
Hai Liang W.


On Fri, Aug 16, 2024 at 1:45 AM John Ralls  wrote:

> _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__ < 14 || (__GNUC__ == 14  && __GNUC_MINOR__ < 1)
>   #undef _GLIBCXX_USE_C99_MATH_TR1
>  #else
>  #undef _GLIBCXX_USE_C99_MATH_FUNCS
>   #endif
>
> But it’s harmless to just undef both of them. Do you want to submit a PR
> so you get credit?
>
> Regards,
> John Ralls
>
> On Aug 14, 2024, at 23:50, Hai Liang Wang 
> wrote:
>
> So far, I know more about the problem, but haven't find a solution yet.
>
> `cmath:2106:11: error: 'copysign' has not been declared in '::'`, this link
> explain the error cause -
>
> https://stackoverflow.com/questions/1216878/cmath-functions-generating-compiler-error
>
> And in, `gnucash\stable\src\gnucash-git\gnucash\gnucash-core-app.hpp`, it
> has
>
> *#ifdef __MINGW32__*
> *#undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl.*
> *#endif*
>
> What happens in my machine, is that cmath's functions are missing, like
> *copysign.*
>
> So, how to get rid of it?
> Need help, thanks.
>
> Cheers.
> Hai Liang W.
>
>
> On Thu, Aug 15, 2024 at 11:32 AM Hai Liang Wang <
> hailiang.hl.w...@gmail.com>
> wrote:
>
> hi, folks
>
> Run script `TARGET=gnucash-stable jhbuild -f jhbuildrc build` to build
> windows installer, come to an error -
>
> *gnucash.dir/gnucash-core-app.cpp.obj -c
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp*
> *In file included from
> C:/gcdev64/msys2/mingw32/include/boost/core/cmath.hpp:19,*
> * from
>
> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/detail/converter_numeric.hpp:26,*
> * from
>
> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/try_lexical_convert.hpp:31,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast.hpp:33,*
> * from
>
> C:/gcdev64/msys2/mingw32/include/boost/program_options/value_semantic.hpp:14,*
> * from
>
> C:/gcdev64/msys2/mingw32/include/boost/program_options/options_description.hpp:13,*
> * from
> C:/gcdev64/msys2/mingw32/include/boost/program_options.hpp:15,*
> * from
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.hpp:31,*
> * from
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp:32:*
> *C:/gcdev64/msys2/mingw32/include/c++/14.2.0/cmath:2106:11: error:
> 'copysign' has not been declared in '::'*
> * 2106 |   using ::copysign;*
> *  |   ^~~~*
> *[124/131] Building CXX object
> gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj*
> *FAILED: gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj *
>
> How to fix it?
> Any suggestion is apprecaited.
>
> Other version info:
>
> *# g++ --version*
> g++.exe (Rev1, Built by MSYS2 project) 14.2.0
> Copyright (C) 2024 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> *# pacman -Q|grep c++*
> mingw-w64-i686-libc++ 18.1.8-1
>
> *# pacman -Q|grep boost*
> mingw-w64-i686-boost 1.85.0-4
>
>
> Attached the full log.
>
> Cheers.
> Hai Liang W.
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
>
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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 to necessarily remove the bad
debt from the client report - they still owe you the money, it is just
your judgement that you are never going to receive it.  Too many bad
debts to the one client and you would want to look at not extending
credit to them. 

If you ever did receive it, then you would have to do an adjustment
cancelling the bad debt write off and carrying forward the debt into
the period in which it is paid (bit messy to do).

David

On Fri, 2024-08-16 at 09:29 +1000, Jeff wrote:
> 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 effective remove that debt, so when you 
> look a that client is shows they owe nothing?
> 
> This is the bit that I seem to be missing, or misunderstanding. 
> Essentially how do I link it to that specific client?
> 
> Regards,
> Jeff.
> 
> On 16/8/24 09:17, David Cousens wrote:
> > 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 as you suggested.
> > 
> > There are more complex allowance methods where your business has a
> > fraction of bad debts regularly and you are required to use accrual
> > accounting.
> > 
> > David Cousens
> > 
> > 
> > On Fri, 2024-08-16 at 08:53 +1000, Jeff wrote:
> > > 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 Invoice and record a payment of $700.  This
> > > leaves
> > > Bob owing $300.
> > > 
> > > I can record a $300 amount going into Expenses -> Bad Debts, from
> > > the
> > > Accounts Receivable going directly via the Account page.
> > > 
> > > I think that this then effectively wipes out the debt.  (This may
> > > be
> > > completely wrong)
> > > 
> > > My issue is Bob still shows as owing $300.  I, maybe incorrectly,
> > > assumed it would effectively show as Bob owes nothing as we have
> > > forgiven the amount owed.
> > > 
> > > What step am I missing?
> > > Can it be done through the Invoice screen to essentially "pay"
> > > the
> > > invoice?  The Payment side of the Invoice only seems to show
> > > "Assets"
> > > accounts (as expected).
> > > 
> > > Regards,
> > > Jeff.
> > > ___
> > > gnucash-user mailing list
> > > gnucash-user@gnucash.org
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > -
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
> > ___
> > gnucash-user mailing list
> > gnucash-user@gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > -
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> 
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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 extend 
credit to those clients if contact continues).


However probably the main reason that I thought (or wanted it) to be 
cleared from the client is:
When GnuCash is started, it pops up with a screen showing Outstanding 
(or Overdue) Invoices.  I know that screen can be turned off completely, 
however I like the screen but would like it to reflect only the 
outstanding invoices that we are essentially waiting for, not ones we 
have given up on ever getting.


This is assuming that we are never going to see the bad debt money. I do 
understand that if for whatever reason that money does come in later, 
that will be a bit messy, but by the time I want to add it to the bad 
debts I have given up all hope of getting the money.  An example is the 
client is now deceased.


Again, I might be looking at this completely wrong. Thanks for your help.

Jeff.

On 16/8/24 10:21, David Cousens wrote:

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 to necessarily remove the bad
debt from the client report - they still owe you the money, it is just
your judgement that you are never going to receive it.  Too many bad
debts to the one client and you would want to look at not extending
credit to them.

If you ever did receive it, then you would have to do an adjustment
cancelling the bad debt write off and carrying forward the debt into
the period in which it is paid (bit messy to do).

David

On Fri, 2024-08-16 at 09:29 +1000, Jeff wrote:

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 effective remove that debt, so when you
look a that client is shows they owe nothing?

This is the bit that I seem to be missing, or misunderstanding.
Essentially how do I link it to that specific client?

Regards,
Jeff.

On 16/8/24 09:17, David Cousens wrote:

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 as you suggested.

There are more complex allowance methods where your business has a
fraction of bad debts regularly and you are required to use accrual
accounting.

David Cousens


On Fri, 2024-08-16 at 08:53 +1000, Jeff wrote:

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 Invoice and record a payment of $700.  This
leaves
Bob owing $300.

I can record a $300 amount going into Expenses -> Bad Debts, from
the
Accounts Receivable going directly via the Account page.

I think that this then effectively wipes out the debt.  (This may
be
completely wrong)

My issue is Bob still shows as owing $300.  I, maybe incorrectly,
assumed it would effectively show as Bob owes nothing as we have
forgiven the amount owed.

What step am I missing?
Can it be done through the Invoice screen to essentially "pay"
the
invoice?  The Payment side of the Invoice only seems to show
"Assets"
accounts (as expected).

Regards,
Jeff.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

_

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_USE_C99_MATH_TR1*
*#else*
*#undef _GLIBCXX_USE_C99_MATH_FUNCS*
*#endif*
*#endif*

Error happens -

*C:/gcdev64/msys2/mingw32/include/c++/14.2.0/tr1/riemann_zeta.tcc:387:51:
error: 'lgamma' is not a member of 'std'; did you mean 'lgamma'?*
*  387 |   - _GLIBCXX_MATH_NS::lgamma(_Tp(1 +
__i - __j));*
*  |   ^~*
*C:/gcdev64/msys2/mingw32/include/math.h:902:25: note: 'lgamma' declared
here*
*  902 |   extern double __cdecl lgamma (double);*
*  | ^~*
*ninja: build stopped: subcommand failed.*

What works is as below.

*#ifdef __MINGW32__*
*// Avoid cmath missing function decl.*
*#if (__GNUC__ < 14) || (__GNUC__ == 14 && __GNUC_MINOR__ < 1)*
*#undef _GLIBCXX_USE_C99_MATH_TR1*
*#else*
*#undef _GLIBCXX_USE_C99_MATH_TR1*
*#undef _GLIBCXX_USE_C99_MATH_FUNCS*
*#endif*
*#endif*

To be more comprehensive, I would think a better one should be -

*#ifdef __MINGW32__*
*// Avoid cmath missing function decl.*
*#undef _GLIBCXX_USE_C99_MATH_TR1*
*#if (__GNUC__ > 14) || (__GNUC__ == 14 && __GNUC_MINOR__ >= 1)*
*#undef _GLIBCXX_USE_C99_MATH_FUNCS*
*#endif*
*#endif*


Cheers.
Hai Liang W.


On Fri, Aug 16, 2024 at 8:18 AM Hai Liang Wang 
wrote:

> 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 improve the software.
>
> Cheers.
> Hai Liang W.
>
>
> On Fri, Aug 16, 2024 at 1:45 AM John Ralls  wrote:
>
>> _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__ < 14 || (__GNUC__ == 14  && __GNUC_MINOR__ < 1)
>>   #undef _GLIBCXX_USE_C99_MATH_TR1
>>  #else
>>  #undef _GLIBCXX_USE_C99_MATH_FUNCS
>>   #endif
>>
>> But it’s harmless to just undef both of them. Do you want to submit a PR
>> so you get credit?
>>
>> Regards,
>> John Ralls
>>
>> On Aug 14, 2024, at 23:50, Hai Liang Wang 
>> wrote:
>>
>> So far, I know more about the problem, but haven't find a solution yet.
>>
>> `cmath:2106:11: error: 'copysign' has not been declared in '::'`, this
>> link
>> explain the error cause -
>>
>> https://stackoverflow.com/questions/1216878/cmath-functions-generating-compiler-error
>>
>> And in, `gnucash\stable\src\gnucash-git\gnucash\gnucash-core-app.hpp`, it
>> has
>>
>> *#ifdef __MINGW32__*
>> *#undef _GLIBCXX_USE_C99_MATH_TR1 // Avoid cmath missing function decl.*
>> *#endif*
>>
>> What happens in my machine, is that cmath's functions are missing, like
>> *copysign.*
>>
>> So, how to get rid of it?
>> Need help, thanks.
>>
>> Cheers.
>> Hai Liang W.
>>
>>
>> On Thu, Aug 15, 2024 at 11:32 AM Hai Liang Wang <
>> hailiang.hl.w...@gmail.com>
>> wrote:
>>
>> hi, folks
>>
>> Run script `TARGET=gnucash-stable jhbuild -f jhbuildrc build` to build
>> windows installer, come to an error -
>>
>> *gnucash.dir/gnucash-core-app.cpp.obj -c
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp*
>> *In file included from
>> C:/gcdev64/msys2/mingw32/include/boost/core/cmath.hpp:19,*
>> * from
>>
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/detail/converter_numeric.hpp:26,*
>> * from
>>
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast/try_lexical_convert.hpp:31,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/lexical_cast.hpp:33,*
>> * from
>>
>> C:/gcdev64/msys2/mingw32/include/boost/program_options/value_semantic.hpp:14,*
>> * from
>>
>> C:/gcdev64/msys2/mingw32/include/boost/program_options/options_description.hpp:13,*
>> * from
>> C:/gcdev64/msys2/mingw32/include/boost/program_options.hpp:15,*
>> * from
>>
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.hpp:31,*
>> * from
>>
>> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/gnucash-core-app.cpp:32:*
>> *C:/gcdev64/msys2/mingw32/include/c++/14.2.0/cmath:2106:11: error:
>> 'copysign' has not been declared in '::'*
>> * 2106 |   using ::copysign;*
>> *  |   ^~~~*
>> *[124/131] Building CXX object
>> gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj*
>> *FAILED: gnucash/CMakeFiles/gnucash.dir/gnucash.cpp.obj *
>>
>> How to fix it?
>> Any suggestion is apprecaited.
>>
>> Other version in

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 up in the list of transfer accounts you
can choose from in the Process Payments dialogue.  Equity does show up
in the dropdown list but if you use an equity account as the transfer
account, then your income for the current period is overstated without
the corresponding Expense:Bad Debts entry to reduce the nett income by
the amount not paid. 

It can also results in an overstatement of assets by the amount of bad
debts a s receivables always report at their full value and the timing
of the bad debt expense recording does not match the recording of the
relevant revenue- OK if you are using Cash accounting , but not if you
are required to use accrual accounting for your business.  Check out
the bugs in Bugzilla as I seem to remember this coming up once before.

My accounting textbook states that the debt doesn't die when a
receivable is written off as uncollectable - the customer's obligation
to pay still exists. 

I haven't had cause to regularly use the business features for more
than 10 years now, so I am not certain about this however. I set up a
dummy invoice

David

 On Fri, 2024-08-16 at 10:38 +1000, Jeff wrote:
> 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
> extend 
> credit to those clients if contact continues).
> 
> However probably the main reason that I thought (or wanted it) to be 
> cleared from the client is:
> When GnuCash is started, it pops up with a screen showing Outstanding
> (or Overdue) Invoices.  I know that screen can be turned off
> completely, 
> however I like the screen but would like it to reflect only the 
> outstanding invoices that we are essentially waiting for, not ones we
> have given up on ever getting.
> 
> This is assuming that we are never going to see the bad debt money. I
> do 
> understand that if for whatever reason that money does come in later,
> that will be a bit messy, but by the time I want to add it to the bad
> debts I have given up all hope of getting the money.  An example is
> the 
> client is now deceased.
> 
> Again, I might be looking at this completely wrong. Thanks for your
> help.
> 
> Jeff.
> 
> On 16/8/24 10:21, David Cousens wrote:
> > 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 to necessarily remove the bad
> > debt from the client report - they still owe you the money, it is
> > just
> > your judgement that you are never going to receive it.  Too many
> > bad
> > debts to the one client and you would want to look at not extending
> > credit to them.
> > 
> > If you ever did receive it, then you would have to do an adjustment
> > cancelling the bad debt write off and carrying forward the debt
> > into
> > the period in which it is paid (bit messy to do).
> > 
> > David
> > 
> > On Fri, 2024-08-16 at 09:29 +1000, Jeff wrote:
> > > 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 effective remove that debt, so when
> > > you
> > > look a that client is shows they owe nothing?
> > > 
> > > This is the bit that I seem to be missing, or misunderstanding.
> > > Essentially how do I link it to that specific client?
> > > 
> > > Regards,
> > > Jeff.
> > > 
> > > On 16/8/24 09:17, David Cousens wrote:
> > > > 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 as you suggested.
> > > > 
> > > > There are more complex allowance methods where your business
> > > > has a
> > > > fraction of bad debts regularly and you are required to use
> > > > accrual
> > > > accounting.
> > > > 
> > > > David Cousens
> > > > 
> > > > 
> > > > On Fri, 2024-08-16 at 08:53 +1000, Jeff wrote:
> > > > > Hi list,
> > > > > 
> > > > > Looking f

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 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 up in the list of transfer accounts you
can choose from in the Process Payments dialogue.  Equity does show up
in the dropdown list but if you use an equity account as the transfer
account, then your income for the current period is overstated without
the corresponding Expense:Bad Debts entry to reduce the nett income by
the amount not paid.

It can also results in an overstatement of assets by the amount of bad
debts a s receivables always report at their full value and the timing
of the bad debt expense recording does not match the recording of the
relevant revenue- OK if you are using Cash accounting , but not if you
are required to use accrual accounting for your business.  Check out
the bugs in Bugzilla as I seem to remember this coming up once before.

My accounting textbook states that the debt doesn't die when a
receivable is written off as uncollectable - the customer's obligation
to pay still exists.

I haven't had cause to regularly use the business features for more
than 10 years now, so I am not certain about this however. I set up a
dummy invoice

David

On Fri, 2024-08-16 at 10:38 +1000, Jeff wrote:

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
extend
credit to those clients if contact continues).

However probably the main reason that I thought (or wanted it) to be
cleared from the client is:
When GnuCash is started, it pops up with a screen showing Outstanding
(or Overdue) Invoices.  I know that screen can be turned off
completely,
however I like the screen but would like it to reflect only the
outstanding invoices that we are essentially waiting for, not ones we
have given up on ever getting.

This is assuming that we are never going to see the bad debt money. I
do
understand that if for whatever reason that money does come in later,
that will be a bit messy, but by the time I want to add it to the bad
debts I have given up all hope of getting the money.  An example is
the
client is now deceased.

Again, I might be looking at this completely wrong. Thanks for your
help.

Jeff.

On 16/8/24 10:21, David Cousens wrote:
> 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 to necessarily remove the bad
> debt from the client report - they still owe you the money, it is
> just
> your judgement that you are never going to receive it.  Too many
> bad
> debts to the one client and you would want to look at not extending
> credit to them.
>
> If you ever did receive it, then you would have to do an adjustment
> cancelling the bad debt write off and carrying forward the debt
> into
> the period in which it is paid (bit messy to do).
>
> David
>
> On Fri, 2024-08-16 at 09:29 +1000, Jeff wrote:
> > 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 effective remove that debt, so when
> > you
> > look a that client is shows they owe nothing?
> >
> > This is the bit that I seem to be missing, or misunderstanding.
> > Essentially how do I link it to that specific client?
> >
> > Regards,
> > Jeff.
> >
> > On 16/8/24 09:17, David Cousens wrote:
> > > 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 as you suggested.
> > >
> > > There are more complex allowance methods where your business
> > > has a
> > > fraction of bad debts regularly and you are required to use
> > > accrual
> > > accounting.
> > >
> > > David Cousens
> > >
> > >
> > > On Fri, 2024-08-16 at 08:53 +1000, Jeff wrote:
> > > > Hi list,
> > > >
> > > > Looking

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 account.


This seems to keep the correct income figures and clears the outstanding 
amount for the invoice.


Thanks again, very much appreciated.
Jeff.

On 16/8/24 11:43, Derek Atkins wrote:
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 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 up in the list of transfer accounts you
can choose from in the Process Payments dialogue.  Equity does show up
in the dropdown list but if you use an equity account as the transfer
account, then your income for the current period is overstated without
the corresponding Expense:Bad Debts entry to reduce the nett income by
the amount not paid.

It can also results in an overstatement of assets by the amount of bad
debts a s receivables always report at their full value and the timing
of the bad debt expense recording does not match the recording of the
relevant revenue- OK if you are using Cash accounting , but not if you
are required to use accrual accounting for your business.  Check out
the bugs in Bugzilla as I seem to remember this coming up once before.

My accounting textbook states that the debt doesn't die when a
receivable is written off as uncollectable - the customer's obligation
to pay still exists.

I haven't had cause to regularly use the business features for more
than 10 years now, so I am not certain about this however. I set up a
dummy invoice

David

On Fri, 2024-08-16 at 10:38 +1000, Jeff wrote:

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
extend
credit to those clients if contact continues).

However probably the main reason that I thought (or wanted it) to be
cleared from the client is:
When GnuCash is started, it pops up with a screen showing Outstanding
(or Overdue) Invoices.  I know that screen can be turned off
completely,
however I like the screen but would like it to reflect only the
outstanding invoices that we are essentially waiting for, not ones we
have given up on ever getting.

This is assuming that we are never going to see the bad debt money. I
do
understand that if for whatever reason that money does come in later,
that will be a bit messy, but by the time I want to add it to the bad
debts I have given up all hope of getting the money.  An example is
the
client is now deceased.

Again, I might be looking at this completely wrong. Thanks for your
help.

Jeff.

On 16/8/24 10:21, David Cousens wrote:
> 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 to necessarily remove the bad
> debt from the client report - they still owe you the money, it is
> just
> your judgement that you are never going to receive it. Too many
> bad
> debts to the one client and you would want to look at not extending
> credit to them.
>
> If you ever did receive it, then you would have to do an adjustment
> cancelling the bad debt write off and carrying forward the debt
> into
> the period in which it is paid (bit messy to do).
>
> David
>
> On Fri, 2024-08-16 at 09:29 +1000, Jeff wrote:
> > 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 effective remove that debt, so when
> > you
> > look a that client is shows they owe nothing?
> >
> > This is the bit that I seem to be missing, or misunderstanding.
> > Essentially how do I link it to that specific client?
> >
> > Regards,
> > Jeff.
> >
> > On 16/8/24 09:17, David Cousens wrote:
> > > 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

[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/inst/bin*
*# ./gnucash.exe*
*This is a development version. It may or may not work.*
*Report bugs and other problems to gnucash-de...@gnucash.org
*
*You can also lookup and file bug reports at https://bugs.gnucash.org
*
*To find the last stable version, please refer to https://www.gnucash.org/
*
*3:2024/08/16
12-45-24:gwen(25272):C:/gcdev64/gnucash/stable/src/gwenhywfar-5.11.2beta/src/base/i18n.c:
122: No translation found for WIN32 locale [English_United States.1252]*

*(gnucash.exe:25272): Gtk-WARNING **: 12:45:24.655: Could not load a pixbuf
from icon theme.*
*This may indicate that pixbuf loaders or the mime database could not be
found.*

*Gtk:ERROR:../gtk+-3.24.43/gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
assertion failed (error == NULL): Failed to load
C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png:
Unrecognized image file format (gdk-pixbuf-error-quark, 3)*
*Bail out!
Gtk:ERROR:../gtk+-3.24.43/gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
assertion failed (error == NULL): Failed to load
C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png:
Unrecognized image file format (gdk-pixbuf-error-quark, 3)*

As you can see, something with gtk breaks the start.
I checked
*C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png*,
which exist. I can open this png file on Windows Explorer.

Need some help, thanks.

Cheers.
Hai Liang W.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


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 Liang W.


On Fri, Aug 16, 2024 at 12:53 PM Hai Liang Wang 
wrote:

> 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/inst/bin*
> *# ./gnucash.exe*
> *This is a development version. It may or may not work.*
> *Report bugs and other problems to gnucash-de...@gnucash.org
> *
> *You can also lookup and file bug reports at https://bugs.gnucash.org
> *
> *To find the last stable version, please refer to https://www.gnucash.org/
> *
> *3:2024/08/16
> 12-45-24:gwen(25272):C:/gcdev64/gnucash/stable/src/gwenhywfar-5.11.2beta/src/base/i18n.c:
> 122: No translation found for WIN32 locale [English_United States.1252]*
>
> *(gnucash.exe:25272): Gtk-WARNING **: 12:45:24.655: Could not load a
> pixbuf from icon theme.*
> *This may indicate that pixbuf loaders or the mime database could not be
> found.*
> 
> *Gtk:ERROR:../gtk+-3.24.43/gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
> assertion failed (error == NULL): Failed to load
> C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png:
> Unrecognized image file format (gdk-pixbuf-error-quark, 3)*
> *Bail out!
> Gtk:ERROR:../gtk+-3.24.43/gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
> assertion failed (error == NULL): Failed to load
> C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png:
> Unrecognized image file format (gdk-pixbuf-error-quark, 3)*
>
> As you can see, something with gtk breaks the start.
> I checked
> *C:\gcdev64\msys2\mingw32\share\icons\AdwaitaLegacy\32x32/status\image-missing.png*,
> which exist. I can open this png file on Windows Explorer.
>
> Need some help, thanks.
>
> Cheers.
> Hai Liang W.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.