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

100% of total calculation is different on FE and BE

    XMLWordPrintable

Details

    • ACQ Sprint 143, ACQ Sprint 144
    • 2
    • Thunderjet
    • Morning Glory R2 2022 Bug Fix
    • Hide
      Use a dollar amount for at least one of your fund distributions such that the system will not encounter a rounding error. ie. for $90 use 33.33%, 33.33% and $33.34. This ensures the total after rounding up or down is in fact $90 and not $89.991 resulting in 1 penny missing.
      Show
      Use a dollar amount for at least one of your fund distributions such that the system will not encounter a rounding error. ie. for $90 use 33.33%, 33.33% and $33.34. This ensures the total after rounding up or down is in fact $90 and not $89.991 resulting in 1 penny missing.
    • !!!ALL!!!
    • Legitimate regression

    Description

      Overview: When using only dollar amount distributions the system doesn't acknowledge that all cost in accounted for and order will not open

      Steps to Reproduce:

      1. Log into some FOLIO environment as User X
      2. Create order
      3. Add order line with cost of $90
      4. Add 3 fund distributions using percentage
      5. Each Fund 33.33%
      6. Save POL
      7. Click action menu for order
      8. Click Open

      Expected Results: Order is opened and encumbered successfully. Three encumbrances, 1 for each fund for $30

       
      Actual Results: Order fails to open. error shown "Fund distribution total must add to 100% or totalPrice"

      Approach
      Update : org.folio.orders.utils.FundDistributionUtils#validateFundDistributionTotal

      Additional Information: This was found in bugfest lotus release.

      URL:

      Interested parties:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                dennisbridges Dennis Bridges
                dennisbridges Dennis Bridges
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases