[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 Mar 19 13:02:55 CET 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 #118471|0                           |1
        is obsolete|                            |

--- Comment #4 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 118515
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118515&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