finance.yml 813 Bytes
# pbc-finance metadata.
#
# Loaded at boot by MetadataLoader, tagged source='core'. The minimal
# v0.16 build only carries the JournalEntry entity, the read permission,
# and a navigation menu entry. No write permissions exist because there
# is no write endpoint — entries appear automatically in reaction to
# domain events from other PBCs (SalesOrderConfirmed → AR row,
# PurchaseOrderConfirmed → AP row).

entities:
  - name: JournalEntry
    pbc: finance
    table: finance__journal_entry
    description: A single AR/AP journal entry derived from a sales- or purchase-order confirmation event

permissions:
  - key: finance.journal.read
    description: Read journal entries

menus:
  - path: /finance/journal-entries
    label: Journal entries
    icon: book-open
    section: Finance
    order: 700