Bank transaction
One line of a bank or card statement, as the bank reported it: the date, the amount, which way the money moved, and what the bank called it. Matching it to a Payment, an Expense or a JournalEntry is reconciliation.
| Pack | Accounting |
| Version | v1 (latest) |
| URN | urn:postware:accounting:bank_transaction |
| Identity | identifiers |
| Status categories | unmatched, matched, excluded |
Fields
| Field | Type | Req | Notes |
|---|---|---|---|
account | Ref<Account> | yes | the bank or card Account the statement belongs to |
date | date | yes | the date the bank booked it |
transaction_date | date | no | the date it happened, when the bank gives one that differs |
amount | Money | yes | always positive |
direction | enum(in| | yes | in = money arriving in the Account; out = money leaving it |
description | string | no | the text on the statement |
counterparty_name | string | no | the payer or payee as the bank names it |
status | Status(unmatched| | yes | default map[category:unmatched] |
matched | Ref<Payment | | no | the records that explain this line |
Events
bank_transaction.matched when status.category becomes matched.