Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
-
-
ACQ Sprint 64
-
1
-
Thunderjet
Description
Overview:
We need the ability to allow the tenant to specify the starting value of the voucher number sequence. This endpoint allows for the specification of the start (and next) value and makes the change to the sequence via ALTER SEQUENCE <sequenceName> START with <value> RESTART;. The setval(...) function is insufficient in this case since it does not change the start value, only the current/next value.
See the API Listing document for details
NOTE: It's understood that this could potentially result in returning a sequence number which was previously returned (in the case of new start < current). This is acceptable and duplicate voucher numbers will be handled elsewhere. This endpoint should remain as simple as possible.
Acceptance Criteria:
- RAML and module descriptor are updated
- The API is implemented as described above
- Unit tests are updated
TestRail: Results
Attachments
Issue Links
- has to be done before
-
MODINVOICE-48 Implement POST /voucher/voucher-number/start/<val>
-
- Closed
-
- relates to
-
MODINVOICE-46 voucherNumber Generation
-
- Closed
-
-
MODINVOSTO-12 Implement GET /voucher-storage/voucher-number
-
- Closed
-
-
UXPROD-703 Ability to "process" invoice
-
- Closed
-