r22286 - gnucash/trunk/src - Adapt payment dialog for credit notes.

Geert Janssens gjanssens at code.gnucash.org
Sat Aug 4 12:09:05 EDT 2012


Author: gjanssens
Date: 2012-08-04 12:09:04 -0400 (Sat, 04 Aug 2012)
New Revision: 22286
Trac: http://svn.gnucash.org/trac/changeset/22286

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-payment.c
   gnucash/trunk/src/business/business-gnome/gtkbuilder/dialog-payment.glade
   gnucash/trunk/src/engine/gncOwner.c
Log:
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
customer.



More information about the gnucash-patches mailing list