Uploaded image for project: 'mod-invoice-storage'
  1. mod-invoice-storage
  2. MODINVOSTO-119

Cancel invoice : Update voucher and transaction schema with new fields

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 5.2.0
    • None

    Description

      Purpose/Overview:
      In order to support invoice cancel operation we back-end need to update schemas of voucher and transaction.

      Requirements/Scope:

      1. Transaction should be able to mark as "Voided"
      2. Voucher can be cancelled

      Approach:
      1. Add new boolean field into mod-finance/schemas/transaction.json

          "invoiceCancelled": {
            "description": "Indicates that related invoice was cancelled",
            "type": "boolean",
            "default": false
          },
      

      2. Add new status "Cancelled" for voucher into mod-invoice-storage/schemas/voucher.json

          "status": {
            "description": "Status of the voucher",
            "type": "string",
            "enum": [
              "Awaiting payment",
              "Paid",
              "Cancelled"
            ]
          },
      

      Acceptance criteria:

      • Schema updated
      • Sub-modules updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Andrei_Makaranka Andrei Makaranka
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases