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

Prorated adjustments part 2 - validation/special cases

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 91
    • Story Points:
      3
    • Development Team:
      Thunderjet

      Description

      Overview:
      This story builds upon the work done in MODINVOICE-54 by adding validation and handling special/edge cases.

      See the wiki for background/details.

      • Validations/special cases
        • if an adjustment is added to an invoiceLine w/ the prorate field, remove the field
        • if an adjustment w/ an adjustmentId is removed, ensure that corresponding prorated invoice adjustment also no longer exists. If it does, return an appropriate error
        • If an adjustment w/ an adjustmentId is added, ensure that the adjustment pointed to by that ID exists. If not, return an error.
        • DIsallow adjusmtents with the same adjustmentId in a given invoiceLine. Return an error if this happens.
      • Basic distribution of prorated adjustments is handled in an earlier story (MODINVOICE-54)

      Acceptance Criteria:

      • the validations/special cases noted above are in place
      • Unit tests are updated
      • API tests are updated.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases