008 — should separate issued and received invoices with proformas (branch 2025014)¶
Description¶
Validates that Received and Issued invoice tabs each show their subset while dashboard financial metrics aggregate across both sides.
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 2025014
- Mock
receipts-branch-2025014_balanced.json(6 received + 4 issued)
Steps¶
- Open Received Invoices tab (default) — Expected: 6 received rows displayed
- Inspect dashboard metrics — Expected: Aggregate costs, revenues, proforma across both tabs
- Click Issued Invoices tab — Expected: 4 issued rows shown; metrics unchanged
Related¶
- Spec:
tests/e2e/tests/contracts.spec.ts
Media¶

