Skip to content

326 — numbering preview: YY + month + END placement, hyphen, no prefix

Description

Verifies that the invoice numbering-sequence preview correctly renders this combination — 2-digit year (YY), with month, serial number at the END, hyphen separator, 4 serial digits, no prefix — and that the sequence can be saved and confirmed.

Preconditions

  • Signed-in tenant on the Invoice settings page.

Steps

  1. Click Edit numbering sequence.
  2. Apply the sequence: year format YY, Show month on, serial placement at the End, 4 serial digits, separator - (hyphen), no prefix.
  3. Expected: the live preview matches the value built by buildInvoicePreview for this sequence (e.g. <YY>-<MM>-0001).
  4. Click Save on the numbering sequence editor. Expected: the numbering-sequence update confirmation prompt appears.
  5. Click Confirm. Expected: the new numbering sequence is saved without error.
  • Spec: playwright/tests/integration/invoice.spec.ts (line 789)