Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-478

Total encumbered for PO showing more than one year of encumbrances

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 109
    • Story Points:
      3
    • Development Team:
      Thunderjet
    • Release:
      R1 2021

      Description

      NOTE still trying to confirm this but. Having trouble reproducing

      Overview: $100 one time order that hadn't been paid during our first FYRO and ended up re-encumbering year after year. After the second year cycle the order shows a total encumbered amount of $200.

      Steps to Reproduce:

      1. Log into scratch environment
      2. create structure for rollover (All needed records)
      3. Create Ongoing PO with a cost of $100 encumbered against 1 Fund
      4. Open order
      5. Rollover fiscal year and make sure that budget has money for the upcoming year
      6. Rollover ongoing orders based on remaining amount
      7. View order summary details

      Approach

      1. Add readOnly field in composite_orders schema : totalEncumbred, totalExpended
      2. Update logic only for : GET orders/composite-orders/<id>:

      • totalEncumbred - retrieve current fiscal year by first fundId and then search all encumbrances by current FY and fundIds
      • totalExpended : use retrived encumbrances from previous step and search Payment transactions by encumbranceIds

      Expected Results: Total encumbered for the order is based on the current fiscal year

      Actual Results: Total encumbered amount includes encumbrances from previous fiscal years

      Additional Information: see example at https://thunderjet.ci.folio.org/orders/view/32bff552-83b2-4acd-827b-1e9dfaed9a44?poNumberSuffix=PERKN&qindex=poNumber&query=gbv10039
      URL:
      Interested parties:

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Andrei_Makaranka Andrei Makaranka
                Reporter:
                dennisbridges Dennis Bridges
                Tester Assignee:
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases