Uploaded image for project: 'mod-invoice'
  1. mod-invoice
  2. MODINVOICE-86

Calculate and persist totals upon invoiceLine creation/update

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 69, ACQ Sprint 70
    • Story Points:
      2
    • Development Team:
      Thunderjet

      Description

      Overview

      In MODINVOICE-50 we implemented calculation of the invoiceLine totals. These currently happen "on the fly", so the totals are never persisted. This works great if you're using GET by ID to retrieve invoiceLines, but it means that the totals are not present in search results.

      Having these totals appear in the invoiceLine search resutls is apparently needed, so we need to change this behavior.

      Approach

      • Continue to calculate the totals upon creation/update, only now this information needs to be persisted.
      • Upon GET by ID, calculate the totals and if different from what was retrieved, write it back to storage.

      Acceptance Criteria

      • adjustmentTotal, and total appear in the invoiceLines retrieved via GET by Query and GET by ID.
      • Unit tests are updated
      • API tests are updated
      • Update sample data as needed (may or may not be)

      NOTE: It may make sense to do this before implementing prorated adjustments (MODINVOICE-54)

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                cmcnally Craig McNally
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases