# Money, Limits and Numeric Rules

> Test amount, sign, total, discount, credit, payment and quota rules with one case and one control each, and record what the server accepts and refuses.

Canonical: https://codelivly.com/rooms/money-limits-and-numeric-rules
Last updated: 2026-11-25

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 3 h 15 min |
| XP | 982 |

An application can authenticate every user correctly and still bill the wrong amount. This room checks the Ledgerline money rules: whole number amounts and signs, rounding, totals calculated by the server, discounts that need an owner, capped credit notes, payments that must match the balance, and counted limits. You learn how to turn a written rule into one safe case with its control, how to prove what was stored, how to separate candidates from secure behaviour and open questions, and what to recommend on the server and in the database. Every lesson has a terminal exercise on realistic exports and scenario questions that need judgment.

## Lessons

1. Amounts, Signs and Rounding (35 min)
2. Totals Calculated by the Client or the Server (35 min)
3. Discounts, Credits and Balances (40 min)
4. Quotas and Counted Limits (35 min)
5. Guided Lab: Check Ledgerline Money Rules (50 min)

## Related

- [Learning path: Business Logic and Race Condition Testing](https://codelivly.com/learning-paths/business-logic-and-race-condition-testing)
- [All rooms](https://codelivly.com/rooms)
