[Koha-bugs] [Bug 23442] Add a 'refund' process to accounts
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jan 8 16:53:43 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23442
--- Comment #21 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 97009
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97009&action=edit
Bug 23442: Add 'reduce' method to Koha::Account::Line
This enhancement adds a 'reduce' method to Koha::Account::Line which can
be used to reduce a charge/debit by adding a credit to offset against
the amount outstanding.
It may be used to apply a discount whilst retaining the original debit
amounts or to apply a full or partial refund for example when a lost
item is found and returned.
The created credit will be immediately applied against the debit unless
the debit has already been paid, in which case a 'zero' offset will be
added to maintain a link to the debit but the outstanding credit will be
left so it may be applied to other debts.
Test Plan:
1) Run the included tests and verify they pass.
2) Signoff
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list