Maintain displaying "Available" as a negative number for group and ledger
Description
CSP Request Details
None
CSP Rejection Details
None
Potential Workaround
None
Attachments
1
clones
defines
relates to
Checklist
hideTestRail: Results
Activity
Show:

Dennis Bridges February 24, 2023 at 11:08 PM
Test successful in folio-snapshot.

NinaChistova February 23, 2023 at 3:05 PM
Tested on https://folio-snapshot-2.dev.folio.org/
Works as expected
could you please review? Thank you!
Damien February 22, 2023 at 2:56 PM
Checked manually that available can be negative (with the right amount) after the change.
Done
Details
Details
Assignee

Reporter

Tester Assignee

Priority
Story Points
0
Sprint
None
Development Team
Thunderjet
Fix versions
Release
Orchid (R1 2023) Bug Fix
RCA Group
Requirements change
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created February 16, 2023 at 12:33 PM
Updated March 16, 2023 at 1:57 PM
Resolved February 24, 2023 at 11:08 PM
TestRail: Cases
TestRail: Runs
Overview: After investigation the issue described in the comment : It is necessary to allow the display of available as a negative number for groups and ledgers
Steps to Reproduce:
For group: Need to transfer amount more than initial allocated between funds in a same fiscal year but in different groups
For group: Need to transfer amount more than initial allocated between funds in a same fiscal year but in different ledgers
Expected Results: Available and total funding is displayed as a negative number
Actual Results: Total funding is displayed as a negative number, available isn't
Approach:
Need to remove max(BigDecimal.ZERO) from the end of lines:
LedgerTotalsService.java#L137, LedgerTotalsService.java#L158, GroupFiscalYearTotalsService.java#L84, GroupFiscalYearTotalsService.java#L106