Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
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
- relates to
-
UINV-9 Setting: voucherNumber is editable (Boolean) and Add prefix to voucher number
-
- Closed
-
-
MODINVOSTO-12 Implement GET /voucher-storage/voucher-number
-
- Closed
-
-
MODINVOSTO-13 Implement POST /voucher-storage/voucher-number/start/<value>
-
- Closed
-
-
UXPROD-703 Ability to "process" invoice
-
- Closed
-
- start is earliest end of
-
MODINVOICE-34 Create voucher on transition to "Approved"
-
- Closed
-