Fund distribution total not correct when 3 Fund distributions are used

Description

Overview: When using only dollar amount distributions the system doesn't acknowledge that all cost in accounted for and order will not open

Steps to Reproduce:

  1. Log into some FOLIO environment as User X

  2. Create order

  3. Add order line with cost of $90

  4. Add 3 fund distributions using dollar amount NOT percentage

  5. Each Fund $30

  6. Save POL

  7. Click action menu for order

  8. Click Open

Expected Results: Order is opened and encumbered successfully. Three encumbrances, 1 for each fund for $30

 
Actual Results: Order will not open. error shown "Fund distribution total must add to 100% or totalPrice"

Approach
Update : org.folio.orders.utils.FundDistributionUtils#validateFundDistributionTotal

Additional Information: This was found in Kiwi release. This may not have anything to do with the type of Fund distributions. Rather it seems to be the price and that there are 3 Fund distributions
URL:
Interested parties:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

Use percentage rather than all dollar amounts

Attachments

8

Checklist

hide

TestRail: Results

Activity

Show:

Dennis Bridges March 31, 2022 at 3:07 PM

test successful in bugfest-lotus. Similar issue found while testing

Oleksii Petrenko March 30, 2022 at 9:08 PM

Deployed to Lotus BF. Please proceed with verification

Mikita Siadykh March 24, 2022 at 6:19 PM


I found that it wasn't released - 12.4.0 is for MG, updated fix version and attached to release ticket

Dennis Bridges March 24, 2022 at 6:04 PM

Still not deployed to bugfest

Dennis Bridges March 23, 2022 at 4:57 PM
Edited

I've just run another test for this in snapshot and it is failing. Need to retest with higher values. In example below the ui validation passes but the BE still prevents Opening

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

Lotus (R1 2022) Bug Fix

RCA Group

Legitimate regression

Affected Institution

!!!ALL!!!

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 11, 2022 at 4:42 PM
Updated June 17, 2022 at 10:57 AM
Resolved March 24, 2022 at 2:06 PM
TestRail: Cases
TestRail: Runs