Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22286 57a11ea4-9604-0410-9ed3-97b8803252fd
- Loading branch information
Showing
3 changed files
with
274 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.