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¶
- Navigate to contract detail — Expected: 1 row ZP2025300200
- Assert proforma received totals — Expected: Payload match
- Assert current difference — Expected: Excludes unpaid proforma
- Assert final difference — Expected: Includes unpaid proforma
Related¶
- Spec:
tests/e2e/tests/contracts.spec.ts
Media¶
