Adjust to zero does not work properly with negative balance on multiple billings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned | ||
2.11 |
Fix Released
|
Undecided
|
Unassigned | ||
2.12 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We're seeing this behavior on Evergreen 2.10 and 2.12.
1. Generate multiple overdue billings on an overdue circ.
2. Apply a payment (cash or forgive) to resolve the overdue billings.
3. Checkin the item using backdated checkin or amnesty mode, such that the overdue billings are automatically voided, resulting in a negative balance.
3. Adjust to zero.
Expected behavior: The balance owing is adjusted to zero.
Actual behavior: A single new manual adjustment billing is created, reinstating one overdue billing. Then the adjust-to-zero process exits. The negative balance has been reduced by the amount of one overdue billing, rather than being fully adjusted to zero.
The issue appears to be a thinko when comparing the (negative) balance owed to the (positive) amount rebilled during adjustment-to-zero. I'll post a fix momentarily.
Changed in evergreen: | |
milestone: | none → 3.0-alpha |
no longer affects: | evergreen/3.0 |
tags: |
added: signedoff removed: needstest |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Proposed fix:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ jeffdavis/ lp1689656- adjust- to-zero- on-negative- balance
(Note that this is a distinct issue from bug 1686194 and bug 1647852.)