r22286 - gnucash/trunk/src - Adapt payment dialog for credit notes.
gjanssens at code.gnucash.org
Sat Aug 4 12:09:05 EDT 2012
Date: 2012-08-04 12:09:04 -0400 (Sat, 04 Aug 2012)
New Revision: 22286
Adapt payment dialog for credit notes.
To deal with all possible combinations, a user must set a debit or
credit amount for the payment. In most cases the right amount is
prefilled by selecting documents from the list.
In the process, this changes gets rid of some confusing sign reversal
logic in the payment code (gncOwner.c).
WARNING FOR SCRIPTERS: if you have written python or scheme code that
relies on gncOwnerApplyPayment, be careful: you now need to pass a
signed amount to the function instead of an absolute value, because a
payment could be for both an invoice/bill or a credit note. No more sign
reversals happen internally based on the owner being a vendor or a
More information about the gnucash-patches