Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.3
    • Fix Version/s: 3.4
    • Component/s: Requisition, UI
    • Labels:
      None
    • Sprint:
      Mind the Gap Sprint 105
    • Story Points:
      2

      Description

      While I was preparing Malawi for the 3.4 release I noticed that there is no way to initiate a requisition or view existing requisitions in the system. From what I checked the problem is that the UI assumes that the new column added in OLMIS-4966 Done is always available in the requisition template. In Malawi this column does not exist in any requisition template so the UI throws an exception:

      state-change-error.interceptor.js:42 TypeError: Cannot read property 'source' of undefined
          at getColumnValue (calculation.factory.js:389)
          at Object.calculateAdjustedConsumption [as adjustedConsumption] (calculation.factory.js:211)
          at LineItem.updateFieldValue (line-item.decorator.js:102)
          at line-item.decorator.js:79
          at Array.forEach (<anonymous>)
          at new LineItem (line-item.decorator.js:78)
          at requisition.js:143
          at Array.forEach (<anonymous>)
          at new Requisition (requisition.js:142)
          at resolve (requisitions.service.js:154)
      

      Acceptance criteria

      • change the existing migration so it will add a new column to all existing templates in the system
      • Perform a check in the UI to see if the column (additionalQuantityRequired) exists before trying to use it; otherwise, it is not part of the calculation

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                ngraczewski Nikodem Graczewski
                Reporter:
                llewczynski Łukasz Lewczyński
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Time Spent - 5 hours Remaining Estimate - 3 hours
                  3h
                  Logged:
                  Time Spent - 5 hours Remaining Estimate - 3 hours
                  5h