Skip to content

007 — should handle multiple proformas and drawn amounts (branch 2025012)

Description

Complex scenario combining multiple invoice types, proformas, credit notes and drawdowns. Validates end-to-end aggregation under interacting states.

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 800 000 Kč, branch 2025012
  • Mock receipts-branch-2025012_complex.json (8 mixed documents)

Steps

  1. Navigate to contract detail — Expected: 8 invoice rows displayed
  2. Assert per-row displayed amounts — Expected: Match payload
  3. Assert aggregated costs/proformas/differences — Expected: All computed correctly with drawdowns and credit notes
  • Spec: tests/e2e/tests/contracts.spec.ts

Media

screenshot