Receiving a previously cancelled line item does not restore fund debit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On a 3.2 system.
To test:
1. Create a purchase order with at least one line item.
2. Activate the PO.
3. Mark the line item as Cancelled (a true cancel). Line item changes to white. Fund debit is deleted.
4. Receive the line item.
Note that the line item's status is now received, but the fund debit is not restored to the fund.
This is semi-related to bug #1214998.
It is reasonable that you may need to either uncancel a line item, or that you may cancel a line item and then the item may arrive and need to be received. (If you cancelled the line item without realizing that the item was already in transit to you, for example.) If a line item has already been cancelled and then needs to be received--as we now have the item in hand and are expected to pay for it--I would expect that marking the LI as received would restore the fund debit.
tags: |
added: acq-funds acq-lineitem removed: funds |
I tried to reproduce this on our 3.2.4 test system and did see that the original fund_debit was not restored. However, when the cancelled line item was received, a new fund_debit with a different ID was created with encumbrance = true. The encumbrance was set to false when the line item was then invoiced. The copy, however, was not restored, and I think it should be so that you don't lose that link between the line item and the copy. Or, there should be a way to link the new copy you add, back to the line item.