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

Sum total quantity on PO retrieval

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 59
    • Story Points:
      1
    • Development Team:
      Thunderjet

      Description

      Overview:
      The ui-orders module displays a "total units" field which is the total sum of physical and electronic quantities across all associated poLines. This information should be calculated and returned from mod-orders when an order is retrieved.

      • purchaseOrder.totalItems = sum(poLines[].cost.physicalQuantity) + sum(poLines[].cost.electronicQuantity)
      • Calculated upon purchaseOrder retrieval
      • NOTE: the name of this field is somewhat misleading. Whether or not item records have been created in inventory is irrelevant in this context.

      See UIOR-141.

      Acceptance Criteria:

      • The calculation is performed as described above
      • Unit and API tests have been updated

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                siarhei_hrabko Siarhei Hrabko
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Siarhei Hrabko Siarhei Hrabko
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases