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

voucherNumber Generation

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 64, ACQ Sprint 65, ACQ Sprint 66
    • Story Points:
      2
    • Development Team:
      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

                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