[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 21:38:30 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27636
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #119205|0 |1
is obsolete| |
--- Comment #12 from David Nind <david at davidnind.com> ---
Created attachment 119242
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119242&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>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list