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

Implement POST /voucher-storage/voucher-number/start/<value>

    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
    • Story Points:
      1
    • Development Team:
      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

              Activity

                People

                Assignee:
                siarhei_hrabko Siarhei Hrabko
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Siarhei Hrabko Siarhei Hrabko
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases