Audit the work orders as of 2026-11-18, inclusive. Read the three attached scanned registers and the archive blocks. Use only these materials.

Apply SIGNED amendments with Effective dates on or before the cutoff, for the exact order and lot. Apply them field by field. The later Effective date controls the field. At an equal Effective date, a signed amendment that explicitly supersedes the other one controls. Two remaining signed amendments at the same Effective date that assign different price codes produce HOLD_CONFLICT. Use the base term if there is no applicable amendment. Drafts, other-lot amendments and future amendments do not change the applicable terms.

The authorization gives the lot and intake pair. On the receiving scan use the latest FINAL row for that exact pair posted by the cutoff. Accepted units are gross minus hold, plus any RELEASE units from matching POSTED journal rows by the cutoff if the applicable terms authorize release. A blank applicable rate produces HOLD_RATE_MISSING. A price code and lot must both match on the rates scan.

Use matching POSTED journal rows by the cutoff for credit calculation. Net credit equals CREDIT minus REVERSAL, floored at zero and capped at the order's credit limit. Start with accepted units times the controlling rate, add the applicable fee, then subtract the capped credit. Return cents to two decimal places. Holds prevent an invoice amount.

Return one JSON object keyed by question ID. Each entry must have "value" (string) and "records" (array of unique printed source IDs). An accepted-unit value is a whole number and a dollar value has exactly two decimal places and no currency symbol. A blocked answer uses the exact HOLD status. Cite the requested records only. Use individual scanned row IDs, not the scan page name. If asked for the invoice's evidence, use the union of the evidence requested by the rate and quantity questions plus the applicable CREDIT and REVERSAL row IDs and the record supplying the fee and cap. For held invoices, use only the rate question's evidence. Evidence order is immaterial. Return the JSON only.
