Bug 22873: Add comment to explain what disallow_overpayment is for

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 075876fe05)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Kyle Hall 2023-09-25 10:11:03 -04:00 committed by Fridolin Somers
parent ebf88badbc
commit b4fc27770d

View file

@ -55,6 +55,7 @@ sub pay {
my $account = Koha::Account->new( { patron_id => $borrowernumber } );
# Bug 16899: Add ability to disallow overpayments for SIP
if ($disallow_overpayment) {
return { ok => 0 } if $account->balance < $amt;
}