Skip to content

002 — should calculate proforma with tax document (branch 2025007)

Description

Validates that proforma invoices together with their tax document (NP) are included in aggregations alongside standard invoices.

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 12 020 886 Kč, branch 2025007
  • Mock receipts-branch-2025007_withoutInvoice.json (3 documents: FP, NP, ZP)

Steps

  1. Navigate to contract detail — Expected: Contract loads with branch 2025007
  2. Inspect invoice list — Expected: 3 rows displayed including NP2025400068
  3. Assert costs, revenues, proforma, differences — Expected: All metrics match payload
  • Spec: tests/e2e/tests/contracts.spec.ts

Media

screenshot