Skip to content

006 — should not count unpaid proforma in current difference (branch 2025011)

Description

Validates that unpaid proformas are excluded from current difference but included in final difference — demonstrates payment-status-aware aggregation.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN role
  • Contract created via API with branch-specific mock data loaded from receipts-branch-*.json
  • Contract price 500 000 Kč, branch 2025011
  • Mock receipts-branch-2025011_unpaidProforma.json (1 unpaid ZP)

Steps

  1. Navigate to contract detail — Expected: 1 row ZP2025300200
  2. Assert proforma received totals — Expected: Payload match
  3. Assert current difference — Expected: Excludes unpaid proforma
  4. Assert final difference — Expected: Includes unpaid proforma
  • Spec: tests/e2e/tests/contracts.spec.ts

Media

screenshot