gnucash stable: Bug 798950 - Bug Report: Incorrect Currency Conversion and Provider Invoice Payment Recording

Geert Janssens gjanssens at code.gnucash.org
Mon Aug 21 10:03:32 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/e2f8233e (commit)
	from  https://github.com/Gnucash/gnucash/commit/63eae802 (commit)



commit e2f8233e1e8dcb8d22792064afa1ec7abe1dd420
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Mon Aug 21 16:01:24 2023 +0200

    Bug 798950 - Bug Report: Incorrect Currency Conversion and Provider Invoice Payment Recording
    
    - Balancing lots always involves splits in the same account. So
      the relevant number to use in the calculations is the split
      amount, not the split value.
    - Additionally don't assume transactions are single-currency.
      So if amounts change, recalculate the associated values
      based on deduced exchange rates.
    - Finally if the lot balancing resulted in a split to be broken up
      into two splits use conservative calculations for the new
      splits' values to avoid introducing imbalances due to
      rounding errors.



Summary of changes:
 libgnucash/engine/gncOwner.c | 90 +++++++++++++++++++++++++-------------------
 libgnucash/engine/gncOwner.h | 16 ++++----
 2 files changed, 60 insertions(+), 46 deletions(-)



More information about the gnucash-patches mailing list