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

Fund Distribution only required upon transition to approval

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • 1.0.0
    • None
    • ACQ Sprint 67
    • 2
    • Thunderjet

    Description

      Overview

      Currently, the invoiceLine fund distribution field is required (w/ minimum 1) in the schema. In order to support creation of invoiceLines for PoLines w/o fundDistributions, we need to relax this in the schema and add validation in the code to ensure at least one fundDistribution is present when transitioning an invoice to "Appoved"

      Approach

      • invoiceLine schema: fund distribution is no longer required
      • code: validate that at least one fund distribution exists on each invoiceLine and that they add up to 100%

      Acceptance Criteria

      • Schema and validation adjustments described above are made
      • Examples and sample data are updated (if Fund Distros don't add up to 100%)
      • Unit tests are updated
      • API tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                aliaksandr_pautau Aliaksandr Pautau
                cmcnally Craig McNally
                Aliaksandr Pautau Aliaksandr Pautau
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases