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

R1 Hotfix -> R2 Bugfix - Unopen fails after a rollover for an order created in the previous year

    XMLWordPrintable

    Details

    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      ACQ Sprint 120
    • Story Points:
      1
    • Development Team:
      Thunderjet
    • Release:
      R2 2021 Bugfix
    • Affected Institution:
      Lehigh, MI State University/Library of Michigan, MO State, University of Tennessee Martin

      Description

      Overview:

      It looks like the current unopen strategy is updating encumbrances for the previous fiscal year when an order is unopened, changing old budgets. It should only be taking the current fiscal year into account when processing encumbrances.

      Steps to Reproduce:

      1. Log into some FOLIO environment as User X
      2. Create a Fiscal year, Ledger and Fund with a budget
      3. Create an order with 1 POL with 1 fund distribution for that budget
      4. Open the order
      5. Create a second fiscal year in the same series
      6. Rollover ledger allocations and all order based on remaining encumbrances
      7. Edit fiscal years so that FY 2 is now the current fiscal year
      8. Navigate to your order
      9. Click unopen in action menu

      Expected Results: Order is moved to pending state and FY 2 encumbrance is pending. FY 1 encumbrance has NOT been changed in any way.

      Actual Results: Multiple pending encumbrances appear on the budget for the order.

      Additional Information:

      When unopening an order, OpenToPendingEncumbranceStrategy uses EncumbranceService#getOrderEncumbrances to get the list of related encumbrances, so it is not taking the fiscal year into account. See EncumbranceService#getCurrentPoLinesEncumbrances for an example of a query taking the current fiscal year into account.
      **

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                siarhei_hrabko Siarhei Hrabko
                Reporter:
                damieng Damien Guillaume
                Tester Assignee:
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases