]> git.koha-community.org Git - koha.git/commit
Bug 24474: (follow-up) Add LOST_FOUND logic to Koha::Account::pay
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 14 Feb 2020 10:39:21 +0000 (10:39 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Apr 2020 13:26:32 +0000 (14:26 +0100)
commit3ed641b33a5969e9c5d2eb027b9bbce761d06ed8
tree0a4dfc008eeeb49832d09158180d779ce54cc8a5
parentf756aa917cfb13c6c2729c5dc07dbd6db5e7441b
Bug 24474: (follow-up) Add LOST_FOUND logic to Koha::Account::pay

This patch adds the same updated logic as found in
Koha::Account::Line->apply to handle LOST_FOUND credits being applied
against their associated LOST debit.

Currently a 'LOST_FOUND' credit is never created via the pay method and
so the additional test will always pass, but the addition here accounts
for possible future uses.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Account.pm