Skip to content

AppsPortal Posting Ledger

This is the consolidated business explanation of what Post records. Amount names are the local-currency values used by the command handlers. Every posting also stores the journal ID/code on the source document where supported, changes the source to Posted, and commits only after all linked effects succeed.

For ownership and delegation sequences, see Delegation and Interaction Contracts. For every known fallback chain, see Account Resolution Registry.

Sales Invoice

Commercial journal

DebitCreditAmount and resolution
Customer ReceivableLocal Grand Total. Account: customer Receivable, then customer category Receivable.
Customer DiscountLocal Total Discount when greater than zero. Account: customer Discount, then customer category Discount.
RevenueEach line's LocalTotalAfterDiscount + LocalDiscountAmount. Account: item Revenue, then item category Revenue, then Inventory Settings Items Revenue. When Inventory is unavailable, customer Sales then customer category Sales is used. Grouped by account and optional cost center.
Tax accountTax accountAdditive VAT is Credit; deductive tax is Debit. Account: Tax account, then Tax Group account.
Advance-payment detail taxAdvance Payment TaxVAT transferred from linked advanced payments, when applicable.

Linked effects

  • Posts Stock Out for non-service items: Debit COGS, Credit Warehouse GL; stock decreases.
  • Creates payment-term due balances.
  • Auto-reconciles eligible available Payment In amounts.
  • Consumes customer and salesperson credit.
  • Makes the document eligible for ETA/ZATCA submission; authority submission is a separate action.

Sales Return Invoice

DebitCreditAmount and resolution
Sales ReturnLocal Total After Discount. Account: customer Sales Return, then customer category Sales Return.
Tax accountTax accountReverses tax according to Tax Effect; account then group fallback.
Customer ReceivableLocal Grand Total. Customer then category Receivable.

Linked Stock In debits Warehouse GL and credits COGS, restores stock, updates source return quantities/status, and restores customer/salesperson credit.

Purchase Invoice

DebitCreditAmount and resolution
Goods in TransitStorable Local Total After Discount. Inventory Settings Goods in Transit.
Service ExpenseService local amount. Item Expense, then item category Expense; optional cost center item then category.
Input VAT / taxAdditive purchase VAT; Tax account then Tax Group. Deductive effect is credited.
Landed-cost expense/taxGrouped returned landed-cost amounts before inventory capitalization. Expense account item then category; VAT Tax account.
Landed-cost vendor payableLanded cost including VAT. Vendor Payable then vendor category Payable.
Invoice vendor payableTotal debits after grouped lines. Vendor Payable then vendor category Payable.

Linked Stock In debits Warehouse GL and credits Goods in Transit/landed-cost counterpart, increases stock, applies UOM conversion/tracking, recalculates WMA/last purchase cost, creates vendor due balances, and links the Stock In and its journal.

Purchase Return Invoice

DebitCreditAmount and resolution
Vendor PayableTotal return credits. Vendor then category Payable.
Tax accountTax accountReverses original tax according to effect.
Goods in Transit / landed-cost expenseDebits created in linked Stock Out for returned value and returned landed-cost portions.
Warehouse GLTotal stock cost removed by linked Stock Out.

Stock decreases using available warehouse/batch cost and tracking, source invoice returned quantities/status are updated, and excessive/duplicate returns are blocked.

Payment In

DebitCreditAmount and resolution
Treasury account or Bank Account GLPayment total received. Hub selection determines the account.
Customer ReceivableCustomer then category, for customer detail.
Vendor PayableVendor then category, for vendor detail.
Explicit Other GLFor PaidBy.Other.
Commission expenseTreasury/BankConfigured commission amount/account.
Commission VATTreasury/BankConfigured VAT amount/account.

Post also creates a Treasury or Bank transaction header/details, assigns its sequence, decreases Payment detail Amount To Reconcile when reconciled, applies eligible invoice/opening/asset balances, and marks Posted.

Payment Out

DebitCreditAmount and resolution
Customer ReceivableCustomer then category, when paying/refunding customer.
Vendor PayableVendor then category, when paying vendor.
Explicit Other GLFor other payment detail.
Commission expense/VATConfigured payment-method accounts.
Treasury account or Bank Account GLPayment total plus counterpart effects.

Post creates Treasury/Bank transaction records and rejects a resulting negative hub balance.

Fund Transfer

StepDebitCredit
Source Payment OutFund Transfer ContraSource Treasury/Bank
Destination Payment InDestination Treasury/BankFund Transfer Contra

Both sides and their bank/treasury transaction records are committed together. The contra account must be configured and nets to zero in local value.

Payment Reconciliation

No new cash journal is created. The Payment In journal already recorded the money. Post reduces Payment Detail Amount To Reconcile, reduces the selected Sales/Asset/Open-Balance due balances, creates reconciliation records, updates fully-reconciled flags, and marks the reconciliation Posted.

Manual Stock In and Stock Out

DocumentDebitCredit
Manual Stock InWarehouse GLOperational Tag GL
Manual Stock OutOperational Tag GL, grouped by line cost centerWarehouse GL

Posting also updates item/warehouse/batch quantities, available inbound layers, WMA/last purchase cost as applicable, tracking history, journal link, and status.

Stock Transfer

Linked documentDebitCredit
Issued warehouse Stock OutGoods in TransitIssued Warehouse GL
Target warehouse Stock InTarget Warehouse GLGoods in Transit

The transfer is quantity-neutral across the company, preserves cost/tracking, links both stock documents, and updates the transfer request to Partially Transferred or Done.

Inventory Reconciliation

VarianceDebitCredit
ShortageInventory Settings COGSWarehouse GL
SurplusWarehouse GLInventory Settings Goods in Transit

The current implementation does not use the configured Adjustment account for these variance journals. It creates linked posted Stock Out/Stock In documents and closes the warehouse count lock.

Inventory Opening Balance

The current handler increases stock quantity/value and updates WMA/last purchase costs but creates no journal. The accounting opening position must therefore be handled separately or the implementation changed after Finance confirmation.

Fixed Asset Purchase

DebitCredit
Asset account per line, from Asset GroupVendor Payable from vendor/category
Tax account for input VAT

Post activates/updates asset acquisition values and links the purchase journal.

Fixed Asset Purchase Return

Debit Vendor Payable; credit Asset account and tax reversal. When returning depreciated value, debit Accumulated Depreciation and credit Depreciation Expense, resolving each from asset then asset group. Source return status becomes Partial or Full.

Fixed Asset Sale

Debit Customer Receivable; remove asset cost and accumulated depreciation; post the difference between proceeds and net book value to Profit/Loss; credit output VAT. Asset and accumulated accounts resolve asset then group. P/L resolves asset, group, then Fixed Assets settings. Due balances are created from payment terms.

Fixed Asset Sales Return

Credit Customer Receivable; restore asset cost/accumulated depreciation position; reverse P/L and VAT; restore asset lifecycle state; update original sale return quantities/status.

Asset Depreciation

Debit Depreciation Expense; credit Accumulated Depreciation using configured asset-group accounts. Update accumulated depreciation and net book value per asset and record the posted depreciation period.

Asset Disposal

Remove Asset cost, remove Accumulated Depreciation, and post residual Net Book Value/proceeds difference to P/L. Account fallback is asset then group, with settings fallback for P/L. Asset status becomes Disposed.

Journal Entry

Post makes the user-entered balanced debit/credit lines effective. Reverse creates a new linked journal with every debit and credit exchanged; it does not edit the original. Source-generated payment journals use dedicated reversal validation against source document ID/code.

Customer and Vendor Opening Balances

These features validate their detail total and debit/credit nature against an already-linked Opening Balance Journal line, then mark the subledger opening balance Posted. Unpost is blocked when later posted transactions exist.

Orders, workflows, reports, and master data

  • Sales/Purchase Order Post records an approved commitment and remaining fulfillment quantities; it creates no GL, cash, receivable/payable, or stock movement.
  • Workflow Submit/Approve/Reject changes approval state/audit only; final transaction Post performs accounting.
  • Reports, dashboards, templates, preferences, roles, and master-data Save create no journal unless their feature page explicitly states otherwise.

Unpost and reversal standard

Unpost is allowed only for the expected Posted state, open source and linked periods, reversible/non-reversed journal, intact linked records, and no later dependent transaction. It creates a reversal journal or returns an eligible direct journal to Draft according to the handler, reverses bank/treasury/reconciliation/credit effects, restores balances, and preserves audit links. Any locked/missing downstream target blocks the entire operation.

Internal Documentation — Microtec