Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
ACQ Sprint 106, ACQ Sprint 107
-
1
-
Thunderjet
Description
Purpose/Overview:
Ensure that Allowable Encumbrance and Allowable Expenditure restrictions are based on "Total Funding" NOT Allocation
Approach:
Update current calculation logic to check enough money to proceed
org.folio.service.transactions.restriction.BaseTransactionRestrictionService#getBudgetRemainingAmount
For Encumerance : org.folio.service.transactions.restriction.EncumbranceRestrictionService#getBudgetRemainingAmount
[remaining amount we can encumber] = (totalFunding * allowableEncumbered) - unavailable
Where
totalFunding = allocated + netTransfers
unavailable = encumbered + awaitingPayment + expended
For Pending payment: org.folio.service.transactions.restriction.PendingPaymentRestrictionService#getBudgetRemainingAmount
[remaining amount we can expend] = (totalFunding * allowableExpenditure) - unavailable + relatedEncumbranceForPendingPayment
For Payment: org.folio.service.transactions.restriction.PaymentCreditRestrictionService#getBudgetRemainingAmount
[remaining amount we can expend] = (totalFunding * allowableExpenditure) - unavailable + relatedPendingPaymentPartFromTransaction
Acceptance criteria:
- logic updated
- unit tests updated
TestRail: Results
Attachments
Issue Links
- defines
-
UXPROD-2715 Identify "Initial Allocation" and "Total Funding" amounts in Budget
-
- Closed
-