accepts negative fine payment amounts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Evergreen will accept a fine payment in a negative amount under specific circumstances. Here is the procedure I used on the patron bill screen. Numbers are arbitrary:
Create a bill on the patron record for $10
pay $4 of the bill
void the bill creating a balance of negative $4
enter '-3' into the 'payment received' field and without clicking anywhere else press 'apply payment'
the payment will be accepted and the fine will disappear regardless of balance
To reproduce, you'll need to go directly from entering the negative payment amount to the 'apply payment' button. There is a nice safety feature that if a negative amount is entered into the 'payment received' field the amount will be zeroed out if a user clicks out of the box. But this safety feature does not appear to work when a user goes directly from the 'payment received' field to the 'apply payment' button.
Granted this will not be a problem for libraries that choose to automatically zero out negative balances using the future feature in this bug: https:/
EG version 2.5.5
OpenSRF 2.4?
PostgreSQL 9.1.9
Debian 'squeeze'
summary: |
- accepting negative fine payment amounts + accepts negative fine payment amounts |
Changed in evergreen: | |
importance: | Undecided → Low |
Confirmed as still present in 2.9.1 - it can occur on any negative balance, regardless of how that balance occurred (example - paid for lost item is returned and refunded, creating a negative balance - applying a negative payment of any amount to that bill will remove the item), and regardless of the amount of the negative balance.
Applying a payment of -2 to a balance of -29 removes the bill entirely, if "Apply Payment" is clicked directly after the negative payment is entered.