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:
parent
ebf88badbc
commit
b4fc27770d
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