Invoice sanity + VLM corrector
ap_invoice.total_amount must equal the sum of new-charge line items.
Prior balances, payments, and statement outstanding boxes are not charges.
Documents are located with voidtools Everything; corrections use Claude VLM scripts under scripts/ap_invoice/.
≥ 35000
0Ties
0Breaks shown
0No items
Largest breaks
| No rows | ||||||
Run from repo root
Set the vault env when Anthropic key resolution fails (restricted_Lee-Brad library).
$env:RRES_CACHE_EXTERNAL_DB="C:\Users\user1\RRES\restricted_Lee-Brad - Documents\account_external\mc_account_external_Lee-Brad.db" node --experimental-sqlite scripts/ap_invoice/AP_Invoice_analyze/analyze_the_largest_ap_invoices_for_transcription_defects_and_locate_their_documents.mjs --offset 15 --top 85 --json scripts/ap_invoice/_output/largest_ap_invoice_defects_offset15.json node --experimental-sqlite scripts/ap_invoice/AP_Invoice_analyze/sanity_check_ap_invoice_total_equals_sum_of_new_charge_line_items.mjs --min 35000 --top 40 node --experimental-sqlite scripts/ap_invoice/AP_Invoice_transcribe/correct_the_largest_ap_invoice_rows_from_the_vlm_retranscription_of_their_documents.mjs --targets scripts/ap_invoice/_output/<report>.json --limit 12 --min-score 2 --redo --apply