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

voucherNumber Generation

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.0.0
    • None
    • ACQ Sprint 64, ACQ Sprint 65, ACQ Sprint 66
    • 2
    • Thunderjet

    Description

      Overview:
      When creating vouchers, we'll need to generate voucher numbers.

      MODINVOSTO-12 and MODINVOSTO-13 implement storage APIs for the numeric portion. This story covers the combination of that with a configurable voucherNumberPrefix.

      • Check w/ mod-configuration for a voucherNumberPrefix. If present, validate it (alpha only) and use it when generating the voucher number. If invalid, return an appropriate error (with code the UI can use to display a specific message)
      • Retrieve the next number in the sequence from GET /voucher-storage/voucher-number
      • Concatenate the two and use in the new voucher

      Coordinate the mod-configuration part with frontend UINV-9

      Acceptance Criteria:

      • voucherNumbers are generated based on the configured prefix and sequence
      • invalid prefixes are not allowed and result in an appropriate error response
      • Unit tests are updated
      • API tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases