Uploaded image for project: 'ui-orders'
  1. ui-orders
  2. UIOR-723

Multiple PO lines created when 'Save & Open' used on POL with fund distribution and no budget

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 2.4.0
    • ACQ Sprint 115
    • 2
    • Thunderjet
    • R2 2021
    • MI State University/Library of Michigan

    Description

      Overview: A library is using the setting to allow for 'save & open order'. They add a PO line with a fund distribution then click 'save & open order'. If the fund does not have a current budget, they receive an error message that the purchase order has not been opened because "One or more fund distribution(s) on this order can not be encumbered, because there is no current budget." Adjusting the fund distribution to a fund code with a current budget produces the same results. Hitting 'save & close' is the only way to save the POL. However, this creates a separate POL for each time you tried to save & open, each with the fund code that was attempted prior to each save.

      Steps to Reproduce:

      1. Log into https://bugfest-iris.folio.ebsco.com/ as a user with admin permissions.
      2. Make sure that 'save & open' is configured to be on in order settings.
      3. Create a new fund. Do not create a current budget for the fund. 
      4. Create a new order.
      5. Add a PO line. Make sure that you apply a fund distribution with the fund that you created in step 3.
      6. Click Save & open order.

      Expected Results:

      1. Receive an error that there is no budget.
      2. Change the fund code to one with a current budget.
      3. Click 'save & open order' again and receive a toast message that the order was opened.
      4. One POL is created with the fund code for the fund with a current budget.

      Actual Results:

      1. Receive an error that there is no budget.
      2. Change the fund code to one with a current budget.
      3. Receive another error message that "The Purchase order - XXXX has not been opened. One or more fund distribution(s) on this order can not be encumbered, because there is no current budget." - Repeats on each subsequent attempt.
      4. Click 'save & close' to at least save the POL.
      5. See that there are multiple POL created on the order, each with a different fund code.

      It seems that even after changing the fund in the fund distribution dropdown, the original fund UUID is still being called.

      Additional Information:

      Reproduced on Mich State/Lib of Michigan Test Tenant, Bugfest Honeysuckle, and Bugfest Iris. Screenshots of errors and results attached.

      Interested parties: Kay Granskog

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                dennisbridges Dennis Bridges
                mdriscoll Molly Driscoll
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases