LedgerJournal
Functions
fnpostpost(l : Ledger, d : LedgerEntry.Draft) : Result((Ledger, PostedEntry), LedgerError.Error) do append(l, d, None) end#
fnpost_validatedpost_validated(l : Ledger, v : LedgerValidation.Validated) : Result((Ledger, PostedEntry), LedgerError.Error)#
Post a validated draft, rechecking destination accounts and current replay keys.
fnreversereverse(l : Ledger, original : PostedEntry, id : String, metadata : FinanceMetadata.Metadata) : Result((Ledger, PostedEntry), LedgerError.Error)#
fnvalidatevalidate(l : Ledger, d : LedgerEntry.Draft) : Result(LedgerValidation.Validated, LedgerError.Error)#
Check accounting invariants without posting or reserving replay keys.