Skip to content

018 — should NOT show data when work handover protocol is missing

Description

An invoice with a received order and retainage config must NOT appear on the Retainage page unless a work-handover protocol exists.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN and ACCOUNTING roles
  • User signature set up
  • Contract created (500 000 Kč, branch 2025020) with customer Test Company s.r.o.
  • Received order created with shortRetainage=5%, longRetainage=5%, retainageYears=5
  • No work handover protocol created

Steps

  1. Navigate to Retainage page — Expected: No rows displayed — protocol gate prevents surfacing the invoice
  • Spec: tests/e2e/tests/retainage.spec.ts

Media

screenshot