Skip to main content

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:

ConditionRequirement
Basis DocumentAt least one BASIS document with APPROVED status
Payment ProofAt least one PAYMENT_PROOF document with APPROVED status
TransactionAt 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

  • Documents — document types and approval workflow
  • Accounting Review — completeness is enforced before review approval when requireCompletenessForSync is enabled
  • Documents API — endpoints for uploading and approving documents