Finance — Domain events

Product version: 1.0.0+1
Last updated: 2026-11-02
Audience: Integrators, operators debugging postings


Finance publishes and consumes RabbitMQ domain events through the shared Outbox / consumer pattern. Canonical catalog: engineering SoT docs/product/EVENT_CATALOG.md (not duplicated here as a second authority).

Emitted by Finance (implemented)

Event Consumers (typical) Notes
FinanceJournalPostedEvent Audit, Dashboard Raised every time a journal is posted (manual, opening balance, automated, year close, restore); includes posting_kind for sales KPI mapping
FinanceCashTransferPostedEvent Audit Cash book transfer (follows its journal posted event)
FinanceFiscalYearClosedEvent Audit Year close
FinanceExpenseRecordedEvent Audit Expense JE (follows its journal posted event)
FinanceOtherRevenueRecordedEvent Audit (Dashboard ACKs; not Sales MTD) Other revenue (follows its journal posted event)
FinanceCashSettlementSubmittedEvent Audit A representative's cash hand-over was submitted
FinanceCashSettlementPostedEvent Audit, Notifications (to the representative) Finance confirmed the hand-over (follows its journal posted event)
FinanceCashSettlementCancelledEvent Audit, Notifications (to the representative, unless they cancelled it) Open hand-over cancelled
SupplierBillApprovedEvent / SupplierBillPostedEvent Audit, Dashboard Supplier bill approval and GRNI/tax/charge-to-AP posting facts
SupplierBillHoldChangedEvent Audit, Dashboard Supplier-bill hold/release fact with reason and revision; no cash or Inventory mutation
SupplierBillReversedEvent Audit, Dashboard Posted supplier-bill reversal with match/allocation unwind and compensating-journal metadata; no cash, provider, supplier, or Inventory Asset transfer
SupplierPaymentApprovedEvent / SupplierPaymentRecordedEvent Audit, Dashboard Supplier payment approval and externally confirmed payment recording (provider_transfer=not_supported, supplier_transfer=not_supported)
SupplierPaymentAllocationReservedEvent / SupplierPaymentAllocationChangedEvent Audit, Dashboard Payment-to-bill allocation reservation and same-scope reallocation facts
SupplierAdvanceApplicationChangedEvent / SupplierCreditAllocationReservedEvent / SupplierRefundRecordedEvent Audit, Dashboard Supplier advance application/unapplication, credit allocation, and externally confirmed refund recording facts

Finance Guide — Automated Event Postings How Sales & Inventory Events Post Idempotent GL Journals

Discover how Finance consumes operational events from Sales and Inventory to post balanced, idempotent journals that power live financial reports and dashboard KPIs.


Consumed by Finance (implemented)

Event Effect
TenantCreatedEvent Bootstrap CoA / fiscal year
TenantHardDeletedEvent Hard erase finance tables; Finance then emits TenantHardEraseAcknowledgedEvent from its transactional outbox when the source event carries an event ID.
TenantHardEraseAcknowledgedEvent Tenant-scoped, non-financial acknowledgement that Finance completed its hard-erase transaction; it contains only service/status/count metadata and never payment data.
SalesInvoiceCreatedEvent / Voided / payment / return / refund / payment reversed Journal postings
SalesInvoiceCreatedEvent / SalesReturnCompletedEvent / SalesInvoiceVoidedEvent E-invoicing: track the invoice or credit note; a void cancels a not-yet-accepted e-invoice
InventoryTransactionCreatedEvent COGS or inventory adjustment from cost snapshot
RequisitionAcceptedEvent Automatically creates, approves, and posts the corresponding supplier bill (status="posted", invoice number REQ-..., linked via requisition_id and requisition_number) via handle_requisition_accepted → EnsureRequisitionPayableUseCase
PurchaseReceiptPostedEvent Idempotent pending/no-journal receipt-accrual projection; receipt delivery is eventual with durable inbox recovery and does not distribute a journal commit
PurchaseReceiptReversedEvent Version 2 event; validates and idempotently transitions matching receipt-accrual projections to reversed (appending a compensating journal when a posted accrual's source journal and open period are available); fails closed when downstream dependencies remain
SupplierReturnPostedEvent Projects source-linked supplier return commercial capacity for credit-note validation
SupplierIdentityChangedEvent Updates Finance's tenant-scoped supplier identity projection (finance_supplier_identities) for the supplier selector
MediaDeletedEvent Retires deleted media attachment references on supplier-payable documents
TenantDataExportPartRequestedEvent Finance part of a tenant data export (no e-invoicing credentials)

Dashboard KPI map (posting_kind)

posting_kind Sales KPI effect
sale_revenue +Revenue, +sales count
sale_void −Revenue, −sales count
sale_return −Revenue
inventory_cogs +COGS
inventory_cogs_return −COGS
sale_payment / inventory_adjustment / inventory_opening_stock / cash_settlement Not sales KPI drivers

Related: Lifecycle · Boundaries · Supplier payables · Audit · Dashboard KPIs