Purchase Liabilities (LIA)

The lia submodule of acc owns the purchase-side counterpart of chg: each PurchaseLiability is a single line-shaped expectation that an invoice will arrive from a supplier, derived from a goods receipt or other source document. Liabilities stay Pending until matched against a PurchaseInvoiceLine, at which point any difference between expected and invoiced amount is captured as a variance. The submodule depends on acc.doc for the source document, acc.pin for the matched purchase-invoice line, acc.cst for cost-unit allocation, acc.vat for the VAT code, and com.par / com.org / com.fin / com.log / cat.itm for the line content.

Concepts

Purchase Liability

A line-shaped expectation that a purchase invoice will arrive. Captures everything a purchase-invoice line will need: supplier, terms, item, quantity (internal and external UoM), price, currency, VAT, cost-unit allocation. Goes from Pending → Matched (when a PurchaseInvoiceLine is linked) or Cancelled.

Variance

The difference between the expected liability amount and the actual purchase-invoice amount. Captured per liability in both transaction and internal currency.

Source Document Line

The document line that originated the liability (typically a purchase receipt) — captured both as a DocumentLine reference and as an opaque DocumentId.

Entities

LIA entities

Purchase Liability (PurchaseLiability)

A single line-shaped expectation that a purchase invoice will arrive.

FieldDescription

transactionId

Business key — generated transaction id.

documentOrigin

The kind of source document the liability came from.

department

Owning department (final).

sourceDocumentLine

The originating document line (final).

sourceDocumentId

Opaque id of the source document (final).

liabilityDate

Date of the liability.

supplier

The supplier we expect the invoice from.

termsOfInvoice / termsOfPayment / invoiceType

Terms expected on the invoice.

currency / currencyRate

Liability currency and conversion rate.

item

The product item.

description

Line description.

referenceExt / referenceInt

Optional external/internal references.

liabilityQuantityInt

Quantity in the internal (item) UoM.

liabilityQuantityExt

Quantity in the external UoM.

liabilityQuantityExtUom

The external UoM.

priceExt

Unit price in the external UoM.

priceUom

The price UoM.

liabilityAmountExt / liabilityAmountInt

Amount in transaction currency and internal currency.

vatCode

VAT code applied.

inventoryUnit / projectUnit

Optional cost-unit allocation.

invoiceLineText

Optional free-form text appended to the matched invoice line.

purchaseInvoiceLine

Set once the liability is matched against a PurchaseInvoiceLine.

biPurchaseLiabilityStatus

Derived status — see Purchase Liability Statuses below. Default P.

biVarianceAmountExt

Difference between expected and invoiced amount in foreign currency (optional).

biVarianceAmountInt

Difference between expected and invoiced amount in internal currency (optional).

A validation rule enforces that the matched purchaseInvoiceLine agrees with the liability on VAT code, currency, and supplier.

Purchase Liability Statuses (PurchaseLiabilityStatus)

CodeNameMeaning

P

Pending

Liability booked, no invoice received yet.

M

Matched

Linked to a purchase-invoice line.

X

Cancelled

Cancelled before matching.

Functionality

The submodule does not currently expose Spring services from this package — the entity is read through the standard generated PurchaseLiabilityReader and written by downstream flows (purchase receipt processing, invoice-matching) that consume the standard generated writer. Variance computation is performed by the matching flow in acc.pin.

Public API

ACC_LIA_QueryApi and ACC_LIA_CommandApi

This submodule does not provide query- or command-API classes. Other modules read liabilities through the standard generated reader and create/update them as part of the purchase-receipt or invoice-matching flow.

ViewModel actions

The submodule defines a view model for PurchaseLiability but does not declare any custom UI actions.