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.
Pack Accounting Version v1 (latest) URN urn:postware:accounting:journal_entryIdentity identifiers or numberStatus categories draft, posted, void
Fields
Field Type Req Notes datedate yes the day the entry takes effect in the books numberstring no descriptiontext no statusStatus(draft| posted| void)yes default map[category:draft]linesobject[] yes {account: Ref<Account>, side: enum(debit|credit), amount: Money, description?: string}aboutRef <any> [] no the 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
Extension Type Notes ext.accounting.exchange_ratedecimal The rate from the entry's currency to the reporting currency of the books on its date, as a decimal string. ext.accounting.reversesstring The id of the JournalEntry this entry reverses.