Skip to content

Journal batch status machine

A journal batch groups journal entries for one client and processing period (typically monthly). It moves through five states.

What each state means

StateMeaningLock semantics
DRAFTBatch exists, entries are being ingested or drafted by the classify pipelineEntries can be added, edited, deleted
UNDER_REVIEWAll entries actioned at least once; reviewer is walking through themNew drafts cannot enter the batch — they spill to the next batch
APPROVEDAll entries are APPROVED or REJECTED; ready for upload-file generationFrozen; the upload file generates from this state
EXPORTEDUpload file has been generated and downloaded by the reviewerAwaiting confirmation that the file landed in Xero / QBO / Zoho / Tally
CLOSEDReviewer confirmed the upload landed in the target accounting platformSealed; no further edits

Why batches lock at UNDER_REVIEW

Entries arriving after the reviewer starts walking through cause inconsistency: the reviewer might skip an entry that didn't exist when they began. Locking at UNDER_REVIEW ensures everything classified between batch boundaries goes into the next batch, not the current one.

Where these transitions happen in the handbook

Internal use only — BreezyCorp