Skip to content

Suite 1.2 · Accounts Payable & Supplier Settlement

Suite 1.2 (PE - Financials - Accounts Payable) governs supplier liabilities from master registration through invoice verification, early-payment discounting, batch settlement, and automated GL accrual posting. It links directly to General Ledger peer entities (LedgerAccount, AccountingBook, FiscalPeriod, and JournalEntry) over clean suite boundaries.


1. Domain Model & Core Entities

Entity Role in Payable Subledger Key Capabilities & Attributes
Vendor & VendorSite Supplier master header & remittance locations Legal/trade names, tax registration, credit terms, default payment sites
VendorBankDetail Supplier settlement bank accounts & IBANs Four-eyes verification (isVerified, verifiedByUserId, verifiedAt)
PurchaseInvoice Supplier liability voucher (PI-{YYYY}-{00000}) Net/tax/gross totals, matchStatus (MATCHED_2WAY, MATCHED_3WAY, PRICE_VARIANCE), lifecycle status
PurchaseInvoiceLine Expense account & cost center distributions PO/GRN references, tax code/rate breakdown, split allocations across cost centers
PaymentSchedule & PaymentBatch Due-date installments & disbursement batch runs Discount cutoff dates, batch totals, aggregate supplier settlement
Payment & PaymentAllocation Disbursed payment headers & invoice relief Links settled cash outflows back to open payable items
VendorPeriodBalance Historical supplier exposure & turnover ledger Period-by-period AP balance summary aligned with AP aging

2. Composite Runtime Workbenches

  • APInvoiceWorkbench: Vertically split workspace combining AP Invoices Grid (All, PAID, APPROVED_FOR_PAYMENT, PARTIALLY_PAID, PENDING_MATCH quick chips) with Invoice Workbench Tabs:
    • Line Items & Distributions: Editable distribution rows with live footer totals (Total Lines Balanced ✓), + Add Distribution, Update Header from Lines rollup, and inline line splitting.
    • Invoice Header & Billing: Vendor invoice reference, effective/due dates, early discount cutoffs, and net/tax/gross header summary.
    • 3-Way Matching & Approvals: Purchase order and goods-receipt match state plus hold reasons and approval timestamps.
    • Vendor Master Snapshot: Read-only counterparty master profile resolved automatically via vendorId.
  • PaymentRunWorkbench: Selects eligible approved invoices, validates verified vendor bank credentials, groups payment batches, and executes settlement updates in a single batch transaction.
  • APAgingMatrix: Cross-tabulates supplier balances across aging buckets (Current, 1–30, 31–60, 61–90, 90+) backed by live vendor period records.
AP Invoice Workbench showing 10 PurchaseInvoice records with PI-2026-00001 selected, 2 matched PurchaseInvoiceLine distribution lines, and Balanced summary total of £30,000.00

APInvoiceWorkbench inspecting invoice PI-2026-00001 (£30,000.00): synchronized Line Items & Distributions verifies quantity, net (£25,000), tax (£5,000), and gross (£30,000) totals in real time.


3. Cross-Suite Interfaces & Triggers

Interface / Trigger Direction & Modes Integration Flow
PurchaseInvoicePostToGL OUTBOUND / Trigger (API, Event) Emits approved supplier invoice expense debits, input tax credits, and AP Trade Control (20100) credits
PurchaseInvoicePostToGL.CreateJournalEntry Declarative Trigger -> JournalEntry.CreateOne Maps invoice number, posting date, accounting book, fiscal period, and balanced lines directly into GL (AP_SUBLEDGER)
PaymentDisbursementExport OUTBOUND · API, Message Formats ISO/bank payment initiation instructions (SEPA / BACS / ACH) for settled PaymentBatch runs

4. Deterministic Accounting & Validation Controls

  1. Four-Eyes Bank Detail Verification (VendorBankDetail.verify): Compares the authorizing operator against the record creator; self-approval raises an explicit dual-control error, protecting payout accounts from insider tampering.
  2. Header vs. Distribution Variance Tolerance (PurchaseInvoice.postToGL): Confirms at least one PurchaseInvoiceLine exists, asserts netAmount + taxAmount === grossAmount within 0.02, and verifies that summed line net, tax, and total values agree strictly with header totals before approving or posting to the General Ledger.