Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
-
ACQ Sprint 143, ACQ Sprint 144
-
3
-
Thunderjet
-
Morning Glory (R2 2022) Bug Fix
-
-
!!!ALL!!!
-
Legitimate regression
Description
Overview: When using only dollar amount distributions the system doesn't acknowledge that all cost in accounted for and order will not open.
Fund distribution total validation should allow 2 cases: either totals in the currency add up, or percentages add up to 100%. Currently the first case is not supported (it used to be the only one supported before MODORDERS-482).
Steps to Reproduce:
- Log into some FOLIO environment as User X
- Create order
- Add order line with cost of $90
- Add 3 fund distributions using percentage
- Each Fund 33.33%
- Save POL
- Click action menu for order
- Click Open
Expected Results: Order is opened and encumbered successfully. Three encumbrances, 1 for each fund for $30
Actual Results: Order fails to open. error shown "Fund distribution total must add to 100% or totalPrice"
Approach
New API should be created.
Please take a look -> UIOR-988 Create API contract for fund distribution validation
File with APIs -> fundValidationAPIContract.txt
- Reuse: org.folio.orders.utils.FundDistributionUtils#validateFundDistributionTotal
Additional Information: This was found in bugfest lotus release.
The new implementation should be callable directly by UI in a new endpoint. See UIOR-988.
URL:
Interested parties:
TestRail: Results
Attachments
Issue Links
- blocks
-
MODORDERS-666 mod-orders: R1 Lotus Bugfix release
-
- Closed
-
-
MODORDERS-733 mod-orders: module release
-
- Closed
-
- defines
-
UXPROD-3396 Thunderjet - Morning Glory Bugfixes
-
- Closed
-
- has to be done after
-
UIOR-988 Create API contract for fund distribution validation
-
- Closed
-
- has to be done before
-
UIOR-978 100% of total calculation is different on FE and BE
-
- Closed
-
- is cloned by
-
MODINVOICE-417 Provide endpoint to validate fund distributions
-
- Closed
-
- relates to
-
MODORDERS-482 Cannot split funds on a PO with an odd number of pennies as the cost.
-
- Closed
-
-
MODORDERS-646 Fund distribution total not correct when 3 Fund distributions are used
-
- Closed
-