]> git.koha-community.org Git - koha.git/commit
Bug 27636: Add payin_amount to Koha::Account
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 5 Feb 2021 12:56:43 +0000 (12:56 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Apr 2021 14:23:49 +0000 (16:23 +0200)
commit4bb73229b8fce7527909d72b02a43e265336f0d6
treeaf6cd6523ee1b67b4d9a3280f7873035633c192b
parent1c29873160d9102d9a4b2648f0f441e0561ad486
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@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Account.pm
t/db_dependent/Koha/Account.t