1. Given an open order with one PO Line And the Po LIne has total 10 and one fundDistribution And one encumbrance with amount=10 and initialEncumbrance=10 was created at order opening When order status moved from Open to Pending Then the encumbrance updated: amount(effective encumbered) = 0 initialEncumbrance=0 And the budget identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) updated: encumbered decreases by 10 available increases by 10 unavailable decreases by 10 overEncumbered is recalculated And the LedgerFY identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) available increases 10 unavailable decreases 10 2. Given an unopen order with one PO Line And PO Line total updated from 10 to 20, fundDistribution hasn't been chandged And related to order encumbrance with amount=0 and initialEncumbrance=0 When order status moved from Pending to Open Then the encumbrance updated: amount(effective encumbered)=20 initialEncumbrance=20 And the budget identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) updated: encumbered increases by 20 available decreases by 20 unavailable increases by 20 overEncumbered is recalculated And the LedgerFY identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) available decreases 20 unavailable increases 20 3. Given an open order with one PO Line And the Po LIne has total 10 and one fundDistribution And one encumbrance with amount=5 and initialEncumbrance=10 was created at order opening And created a pending(awaiting) payment with amount=5 related to given encumbrance When order status moved from Open to Pending Then the encumbrance updated: amount(effective encumbered) = 0 initialEncumbrance=0 And the budget identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) updated: encumbered decreases by 5 available increases by 5 unavailable decreases by 5 overEncumbered is recalculated And the LedgerFY identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) available increases 5 unavailable decreases 5 4. Given an unopen order with one PO Line And PO Line total updated from 10 to 20, fundDistribution hasn't been chandged And related to order encumbrance with amount=0 and initialEncumbrance=0 And created a pending(awaiting) payment with amount=5 related to given encumbrance When order status moved from Pending to Open Then the encumbrance updated: amount(effective encumbered)=15 initialEncumbrance=20 And the budget identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) updated: encumbered increases by 15 available decreases by 15 unavailable increases by 15 overEncumbered is recalculated And the LedgerFY identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId) available decreases 15 unavailable increases 15