The `disallow_overpayment` parameter that's expected to be passed to the pay method of FeePayment does nothing.. it should either be removed or implimented.
I am not sure that this does nothing, there is some code in FeePayment.pm that checks for it: if ($disallow_overpayment) { return 0 if $account->balance < $amt; }
I'm looking at a couple patrons on a 19.11 install where payments were double-submitted. The first payment set the amountoutstanding on the fine to 0. The second payment posted to their account and tied to the fine via account_offsets, but with $0 applied. So the payment wasn't refused, but Koha knew enough not to make the fine have a negative amount due.
It is used in a SIP option. Take a look at etc/SIPconfig.xml in master.
(In reply to Kyle M Hall from comment #3) > It is used in a SIP option. Take a look at etc/SIPconfig.xml in master. So should this be closed?
(In reply to Katrin Fischer from comment #4) > (In reply to Kyle M Hall from comment #3) > > It is used in a SIP option. Take a look at etc/SIPconfig.xml in master. > > So should this be closed? Let's add a comment so future devs will know what it is there.
Created attachment 156168 [details] [review] Bug 22873: Add comment to explain what disallow_overpayment is for
Created attachment 156169 [details] [review] Bug 22873: Add comment to explain what disallow_overpayment is for Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed to master for 23.11. Nice work everyone, thanks!
Pushed to 23.05.x for 23.05.05
Nice work everyone! Pushed to oldstable for 22.11.x