]> git.koha-community.org Git - koha.git/commit
Bug 24080: Add 'payout' method to Koha::Account::Line
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 21 Nov 2019 13:22:39 +0000 (13:22 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Jan 2020 16:35:38 +0000 (16:35 +0000)
commit9bd650f98b1af6e6cc62f30a82069fdf8ed610a6
tree706637ca9361a6df31556d99eb2e0f7bc0b5314e
parentf6575398927a3f463088288f7aaf42ec0ada08c8
Bug 24080: Add 'payout' method to Koha::Account::Line

This enhancement adds a 'payout' method to Koha::Account::Line which can
be used to 'pay out' a credit to a patron.

When such a credit is 'paid out' this method will create a corresponding
account debit line with an amount equal to the amountoutstanding on the
original credit and the two acocuntlines will be immediately applied against
each other.

Test Plan:
1) Run the included tests and verify they pass.
2) Signoff

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Account/Line.pm
Koha/Exceptions.pm
t/db_dependent/Koha/Account/Lines.t