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 commit075876fe05
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitb4fc27770d
) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
ad0c0f412e
commit
93b6b1b81a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue