check_invoice
Three-way match a supplier invoice against its purchase order and goods receipt to return approval, hold, or review decisions with reasons; optionally register approved invoices to flag duplicates.
Instructions
Three-way match one invoice against the PO file.
invoice_json: {"invoice_number": str, "supplier": str, "po_number": str|null, "currency": "EUR", "lines": [{"sku": str, "qty": number, "unit_price": number}]} register: if true and the decision is APPROVE, remember the invoice so a resubmission is flagged as a duplicate. Returns status (APPROVE, HOLD_*, REVIEW), reasons and the PO used. It never pays or posts anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| register | No | ||
| invoice_json | Yes |