gnucash maint: Bug 796527 - invalid currency on scheduled transactions

John Ralls jralls at code.gnucash.org
Mon Jun 11 13:03:27 EDT 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/9e6760f7 (commit)
	from  https://github.com/Gnucash/gnucash/commit/5f53e292 (commit)



commit 9e6760f7cb78b5c89d9ecf7cb6865e941083a0dd
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Jun 11 09:56:04 2018 -0700

    Bug 796527 - invalid currency on scheduled transactions
    
    1. Don't even check for price/exchange rate on template transactions,
    there's no point.
    
    2. Extract function get_transaction_currency:
    a. Check all split commodities are valid, abort transaction creation if
    not.
    b. If the template transaction's currency isn't used by any of the
    splits set the new transaction's currency to the first-found currency if
    there is one, otherwise to the first-found commodity.
    
    3. Fix a minor typo in a comment.



Summary of changes:
 .../register/ledger-core/split-register-control.c  |   7 ++
 libgnucash/app-utils/gnc-sx-instance-model.c       | 121 ++++++++++++++-------
 2 files changed, 89 insertions(+), 39 deletions(-)



More information about the gnucash-patches mailing list