Skip to content

Journal entry

A dated set of debits and credits to Accounts that add up to the same amount: the unit the ledger is made of. Posted entries are the books; an Account's balance is the sum of its lines.

PackAccounting
Versionv1 (latest)
URNurn:postware:accounting:journal_entry
Identityidentifiers or number
Status categoriesdraft, posted, void

Fields

FieldTypeReqNotes
datedateyesthe day the entry takes effect in the books
numberstringno
descriptiontextno
statusStatus(draft|posted|void)yesdefault map[category:draft]
linesobject[]yes{account: Ref<Account>, side: enum(debit|credit), amount: Money, description?: string}
aboutRef<any>[]nothe Invoice, Payment or Expense this entry records

Events

journal_entry.posted when status.category becomes posted; journal_entry.voided when status.category becomes void.

Extensions

ExtensionTypeNotes
ext.accounting.exchange_ratedecimalThe rate from the entry's currency to the reporting currency of the books on its date, as a decimal string.
ext.accounting.reversesstringThe id of the JournalEntry this entry reverses.