Skip to content

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

Description

Verifies that the invoice numbering-sequence preview correctly renders this combination — 2-digit year (YY), no month, serial number at the END, hyphen separator, 4 serial digits, with the prefix Test-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 off, serial placement at the End, 4 serial digits, separator - (hyphen), prefix Test-prefix.
  3. Expected: the live preview matches the value built by buildInvoicePreview for this sequence (e.g. Test-prefix-<YY>-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)