# Invoice

**Test family:** `INV`

Use this as a business-semantic overlay on the relevant input, CRUD, action, access, money, and time item files.

- **INV-001** Draft line subtotal, discounts, tax, credit, payments, balance, and total reconcile exactly.
- **INV-002** Add/edit/remove/reorder lines; quantity, unit, currency, tax category, and rounding remain correct.
- **INV-003** Finalization creates an immutable legal snapshot or auditable revision/credit flow.
- **INV-004** Numbering is unique/ordered according to jurisdiction and atomic under concurrency.
- **INV-005** Draft/open/paid/part-paid/past-due/void/uncollectible/refunded transitions are legal and derived from money events.
- **INV-006** PDF/email/portal/API/export render the same recipient, amounts, dates, terms, and payment state.
- **INV-007** Unauthorized users cannot enumerate invoices or access predictable download URLs.

## Comprehensive per-item coverage

- **INV-008** Create with missing, empty, ordinary, minimum, maximum, malformed, unknown, and deprecated field values; report each invalid field without losing valid work.
- **INV-009** Use names and descriptions containing ASCII emoticons, emoji/ZWJ sequences, kaomoji, accents, mixed scripts, RTL, combining marks, confusables, and boundary lengths.
- **INV-010** Use inert markup, script, SQL, template, command, path, CSV-formula, header, and log canaries; preserve them as data in every rendered and exported context.
- **INV-011** Create through UI, API, import, duplication, automation, mobile, admin, and migration; apply one schema, default, authorization, and uniqueness contract.
- **INV-012** Create exact, case-variant, normalization-equivalent, external-ID, and concurrently submitted duplicates; prevent accidental merge or split identity.
- **INV-013** Edit from two sessions and through a stale form; detect conflicts, preserve versions, and avoid silent last-write loss.
- **INV-014** Change parent, owner, status, tenant, and related records; maintain referential integrity, derived values, permissions, and audit atomically.
- **INV-015** Attempt read and mutation as owner, collaborator, restricted role, removed member, external guest, and another tenant.
- **INV-016** Change permission or ownership between rendering and commit; reauthorize final reads, writes, downloads, and notifications.
- **INV-017** Search, filter, sort, group, count, chart, paginate, mention, and deep-link every lifecycle state without hidden records leaking through counts or timing.
- **INV-018** Retry create/update/delete after timeout and resend the same request; use stable idempotency and return the committed result.
- **INV-019** Force validation, dependency, storage, index, notification, integration, and audit failures; expose partial state and recovery.
- **INV-020** Import and export nulls, long values, Unicode, relationships, attachments, unknown fields, old versions, and line-ending/encoding variants.
- **INV-021** Archive, restore, soft-delete, hard-delete, expire, retain, place on hold, anonymize, and purge according to policy.
- **INV-022** Reuse identifiers, names, URLs, or external keys after deletion only under an explicit anti-impersonation and reference policy.
- **INV-023** Verify keyboard, screen reader, zoom/reflow, high contrast, translated labels, RTL, and mobile behavior across create, view, edit, and errors.
- **INV-024** Measure list, detail, create, update, bulk, search, import, export, and deletion behavior at supported dataset and relationship scale.
- **INV-025** Verify notifications, webhooks, feeds, analytics, and integrations contain the correct actor, record version, tenant, and permitted fields once.
- **INV-026** Record actor, authority, source, old/new values, relation changes, time, correlation ID, retries, and outcome without prohibited data.
- **INV-027** Reconcile record, cache, replica, index, aggregate, attachment, and integration state after delayed or partial processing.

[Back to Records, work management, CRM, and commerce index](../../records-commerce-work.md)
