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>
(cherry picked from commit b4fc27770d)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Kyle Hall 2023-09-25 10:11:03 -04:00 committed by Matt Blenkinsop
parent ad0c0f412e
commit 93b6b1b81a

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;
}