id: 022 module: retainage name: percentages-high-retainage-10-percent-each title: Percentages: HIGH retainage 10%/10% tags: [module:retainage, status:automated, priority:high] priority: high status: automated spec: tests/e2e/tests/retainage.spec.ts
022 — Percentages: HIGH retainage 10%/10%¶
Description¶
Validates retainage calculation with symmetrical 10%/10% on a 605 000 Kč invoice: retainageClaim = 90% × 605 000 = 544 500 Kč.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN and ACCOUNTING roles
- User signature set up
- Contract 605 000 Kč, branch 2025020; 10%/10% retainage; work handover confirmed
- Invoice FV2025020008 matches
OBJ-HIGH-RETAINAGE; issuedDate = 7 days future
Steps¶
- Navigate to Retainage page — Expected: FV2025020008 exists and NOT highlighted
- Assert claim sum = 544 500 Kč; remaining = 60 500 Kč — Expected: Values match 90% formula
Related¶
- Spec:
tests/e2e/tests/retainage.spec.ts
Media¶
