NodeFox

Lesson 27 · Intermediate

Reconcile an invoice against evidence

Match quantities and prices, then prepare an AP result.

Written guide · 3 min read · video not yet produced

Before you start

A signed-in NodeFox workspace. Use synthetic data and prepare outputs before enabling external writes.

  1. 01Collect three records

    Use synthetic invoice, purchase-order and receipt records with stable identifiers. For a clean case, use 96 units at $25 on the invoice and purchase order, with 96 units received. Keep tax and freight outside this simple fixture.

  2. 02Validate and match

    Check identifiers, quantities, currency and unit prices before multiplication. Calculate 96 × 2500 = 240000 cents. A missing receipt is not equivalent to a zero quantity or a complete match.

  3. 03Handle a discrepancy

    Change the receipt to 90 units and test the review path. Preserve the six-unit difference and original evidence. A person determines the appropriate treatment according to the organization’s policy.

  4. 04Prepare, do not pay

    Write a local reconciliation packet with the check and decision. Preparing an AP record does not release funds. Payment authorization and accounting-system posting require separately configured controls.

Example configuration or input

{"invoiceQty":96,"poQty":96,"receiptQty":96,"unitCents":2500}

Expected result

Matched amount $2,400 for the clean fixture; review required for a 90-unit receipt.

If the result is wrong

A matching total can conceal different quantities or prices. Compare the constituent fields as well as the amount.