Skip to content

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

  1. Open Received Invoices tab (default) — Expected: 6 received rows displayed
  2. Inspect dashboard metrics — Expected: Aggregate costs, revenues, proforma across both tabs
  3. Click Issued Invoices tab — Expected: 4 issued rows shown; metrics unchanged
  • Spec: tests/e2e/tests/contracts.spec.ts

Media

screenshot

screenshot