Entry Completeness
An entry is considered complete when it has all required proofs. This is tracked by the isComplete boolean field.
Completeness Rules
An entry is marked complete when all three conditions are met:
| Condition | Requirement |
|---|---|
| Basis Document | At least one BASIS document with APPROVED status |
| Payment Proof | At least one PAYMENT_PROOF document with APPROVED status |
| Transaction | At least one payment transaction recorded |
isComplete = hasBasis(APPROVED) && hasPaymentProof(APPROVED) && hasTransaction
Automatic Recalculation
Completeness is automatically recalculated when:
- A document is approved
- A document is rejected
- A transaction is added
When completeness changes, a COMPLETENESS_CHANGED event is recorded in the entry's audit trail.
Practical Example
Related Pages
- Documents — document types and approval workflow
- Accounting Review — completeness is enforced before review approval when
requireCompletenessForSyncis enabled - Documents API — endpoints for uploading and approving documents