[Koha-bugs] [Bug 27636] Replace Koha::Account::pay with a simpler method
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 23 14:55:43 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27636
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #120022|0 |1
is obsolete| |
Attachment #120023|0 |1
is obsolete| |
Attachment #120024|0 |1
is obsolete| |
--- Comment #19 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 120089
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120089&action=edit
Bug 27636: Add payin_amount to Koha::Account
This patch adds a `payin_amount` method to the Koha::Account as a modern
replacement to the `pay` method.
The new method uses the `add_credit` and `Koha::Account::Line->apply`
methods internally for consistency and returns the created credit
Koha::Account::Line result.
Test plan
1/ Run t/db_dependent/Koha/Account.t
Signed-off-by: David Nind <david at davidnind.com>
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