[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
Tue Apr 6 13:13:59 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27636
Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #118515|0 |1
is obsolete| |
--- Comment #9 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 119205
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119205&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