Skip to content

060 — Unpair and re-pair invoice

Description

Clears the external order number to break auto-pairing, then restores it to re-establish the pairing.

Preconditions

  • Clean database
  • User logged in with ADMIN and ACCOUNTING roles + user signature set up
  • Accounting entity Stavební firma ABC s.r.o. (ID 12345678) created
  • Contract branch 2025020, price 181 500 Kč
  • Received order with externalNumber OBJ-2025-EXT that auto-pairs FV2025020002

Steps

  1. Verify invoice is auto-paired — Expected: FV2025020002 visible
  2. Edit order, clear external number, save — Expected: Invoice no longer visible
  3. Restore external number OBJ-2025-EXT, save — Expected: Invoice re-appears — re-pairing works
  • Spec: tests/e2e/tests/orders.spec.ts

Media

screenshot