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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Labels:
    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      ACQ Sprint 115
    • Story Points:
      2
    • Development Team:
      Thunderjet
    • Release:
      R2 2021
    • Affected Institution:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases