Overview: FOLIO is preventing order encumbrance updates when there are related invoice(s) that are "Approved" OR "Paid". This means that ongoing orders can no longer be edited after 1 invoice is paid.
Steps to Reproduce:
- Log into some FOLIO environment as User X
- Create ongoing PO and POL with Fund distribution for Fund A
- Open order
- Create invoice for POL with Fund distribution for Fund A
- Approve and Pay invoice
- Edit POL and change Fund ID of Fund distribution to Fund B
- Save POL
Expected Results: POL is saved successfully, encumbrance transaction is released from Fund A and moved to Fund B
Actual Results: Error message is displayed "Fund distributions can not be edited because the POL has a related invoice that is approved or paid for the current fiscal year.