[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
Thu Mar 18 21:31:53 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27636
--- Comment #3 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 118471
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118471&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
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list