Open order : Error message does not indicate what Fund does not have money

Description

Overview: A message "One or more fund distributions on this order can not be encumbered, because there is not enough money in the budget" but does not identify the fund or funds in question. 

Steps to Reproduce:

  1. Log into some FOLIO environment as User X

  2. Navigate to finance

  3. Make sure Fund restriction are in place for the fund you will use

  4. Create an order

  5. Create an order line with an amount higher than the chosen budget

  6. Try to open the order

Expected Results: Error message displayed "One or more Fund distributions on this invoice can not be paid, because there is not enough money in (FUND code)." 

Approach
Improve error handling in the org.folio.service.finance.budget.BudgetRestrictionService#checkEncumbranceRestrictions

Actual Results: Error message displayed "One or more fund distributions on this order can not be encumbered, because there is not enough money in the budget" but does not identify the fund or funds in question (the request did return the budget ids in a parameter).

Additional Information:
URL:
Interested parties:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

Look through order lines and Fund manually to identify which fund is short. For larger invoices this could be very time consuming.

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Dennis Bridges March 31, 2022 at 3:27 PM

test successful in bugfest-lotus

Oleksii Petrenko March 30, 2022 at 9:08 PM

Deployed to Lotus BF. Please proceed with verification

Damien March 18, 2022 at 2:10 PM

No, backend is supposed to return fund codes.

Dennis Bridges March 17, 2022 at 9:40 PM

Network error shows the Fund information. Now waiting on fro final testing.

Andriy Kundyukov March 17, 2022 at 8:10 PM
Edited

please note that the response parameters seem to contain fund UUIDs and not fund codes. I suppose that was the plan for the back-end, and front-end will fetch and show fund code.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

Release

Lotus (R1 2022) Bug Fix

RCA Group

Incomplete/missing requirements

Affected Institution

!!!ALL!!!

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 18, 2022 at 8:00 AM
Updated April 4, 2022 at 3:01 PM
Resolved March 17, 2022 at 9:40 PM
TestRail: Cases
TestRail: Runs