procurement_grir_clearing
Quantify GR/IR clearing exposure from open purchase orders: compare received-not-invoiced vs invoiced-not-received quantities and values before period close.
Instructions
GR/IR-Abgrenzung (goods-received / invoice-received clearing) as of a date: two complementary sets from the live po_line counters, received-not-invoiced (received_qty > billed_qty) and invoiced-not-received (billed_qty > received_qty), each with its residual quantity and residual value at the PO base price (integer CHF Rappen), plus the net exposure. Status is cleared when both sides are empty within the materiality filter, else exposure_present. A pure projection that quantifies accrual exposure before period close; it never posts the accrual itself (that stays the period-close process). include_detail returns the per-line rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| workspaceId | Yes | ||
| supplier_ids | No | ||
| include_detail | No | ||
| materiality_rappen | No |