Home / Trust Hub / Repeatable Patterns / Zero-Egress OCR, +/-2% 3-Way Match & BOL Shield
Pattern 04 · Zero-Egress AI & P2P Control

Zero-Egress Local-LLM OCR, +/-2% AP 3-Way Match & BOL/POD Signature Shield

Executive Answer: DataOngoing eliminates per-page AP SaaS fees, external LLM data leaks, and manual PO-Receipt-Bill matching through a zero-egress Docker OCR and +/-2.0% 3-Way Match architecture. Running Qwen2.5-VL and Docling on an isolated internal: true network with DefendAir 4-layer prompt sanitization, the engine deduplicates invoices by SHA-256, blocks ACH bank-routing hijacks, binds PDFs via NetSuite RESTlet record.attach(), and shields outbound BOL/POD disputes.
External AI Data Egress0 Bytes Sent OutDocker internal: true isolated inference
3-Way Match Tolerance+/-2.0% DeterministicPO <-> ItemReceipt <-> VendorBill gate
Duplicate Bill ProtectionSHA-256 Binary HashZero duplicate Vendor Bill / SO ingestion
ACH & Injection DefenseDefendAir 4-LayerBlocks white-on-white PDF & bank swaps

Core NetSuite Technical Primitives & Artifacts

  • Dual-Tier Sovereign Docker OCR (Tier-1 vLLM Qwen2.5-VL-7B + Qwen2.5-Coder-32B; Tier-2 Edge Ollama + Docling)
  • DefendAir 4-Layer Sanitizer (Zero-Width Unicode Strip, Hidden PDF Layer Scrub, ACH Mutation Block)
  • Deterministic +/-2.0% 3-Way Match Pre-Validator (AUTO_APPROVED vs. VARIANCE_HOLD) + __do_rl_create_ocr_entries.js
  • Outbound Dock BOL Digital Driver Signature & SHA-256 Proof-of-Delivery Credit Memo Shield

Why are cloud AP OCR tools vulnerable to ACH fraud, prompt injection, and per-page SaaS markups?

Third-party cloud AP OCR platforms send sensitive vendor pricing, customer contracts, and bank details outside your perimeter while charging recurring per-invoice fees. Worse, modern adversarial PDFs embed zero-width Unicode characters or white-on-white invisible text instructing cloud LLMs to alter vendor ACH routing numbers or approve unverified price hikes. Inside NetSuite, AP clerks still spend hours manually reconciling Vendor Bills against Purchase Orders and dock Item Receipts—often paying duplicate invoices or missing landed-cost freight allocations.

  • Vendor PDFs leave corporate custody to third-party multi-tenant SaaS clouds with opaque LLM retention.
  • Adversarial invoice payloads exploit unprotected AI parsers to inject unauthorized payment terms or ACH changes.
  • Manual 3-way matching fails to catch subtle unit-price creep, short-shipped receipt quantities, or duplicate invoice strings.
  • Outbound docks ship millions in freight without digital driver BOL signatures, leaving companies defenseless against POD credit disputes.

How does DataOngoing run zero-egress OCR, DefendAir sanitization, and +/-2% 3-way match inside NetSuite?

Our Sovereign OCR stack runs on Docker Compose with an isolated internal: true network—meaning inference containers (Tier-1 Enterprise vLLM running Qwen2.5-VL-7B and Qwen2.5-Coder-32B/Llama-3.3, or Tier-2 Edge Ollama + Docling/PaddleOCR) have zero outbound internet route. Multi-channel crawlers ingest IMAP/M365, SFTP/SMB, scanner hot-folders, and NetSuite File Cabinet drops, deduplicating binaries via SQLite SHA-256 hashes. Before any token hits NetSuite, our DefendAir 4-layer sanitizer strips zero-width Unicode smuggling, white-on-white PDF layers, and blocks autonomous vendor bank/ACH modifications. Finally, evaluate_three_way_match checks PurchaseOrder rates, ItemReceipt quantities, and VendorBill lines within a deterministic +/-2.0% tolerance—routing clean bills to AUTO_APPROVED and exceptions to VARIANCE_HOLD inside our NetSuite DocAI RESTlet (__do_rl_create_ocr_entries.js) and customrecord__do_ocr_entry.

  • Supports Vendor Bills, Sales Orders, Batch Work Orders, 1099s (customrecord__do_ocr_1099), and Driver Licenses (customrecord__do_ocr_drv_lice).
  • Uses __do_ocr_image_receiver.js and record.attach() so original PDFs/PNGs bind directly to the NetSuite transaction.
  • Routes variances cleanly into our Split-Screen AP OCR Suitelet for 1-click controller override or vendor credit issuance.

How does the Outbound BOL/POD Signature Shield stop unverified customer credit memos?

Margin leaks happen on both sides of the dock. Complementing inbound AP 3-way matching, our Dock BOL & POD Dispute Shield Suitelet captures digital driver signatures via HTML5 canvas at outbound loading, stamps immutable SHA-256 hashes and timestamps onto the Item Fulfillment, and blocks customer service from issuing unapproved short-ship credit memos when a signed Proof of Delivery exists in the File Cabinet.

  • Captures carrier driver digital signature and photo evidence directly on tablet at dock departure.
  • Attaches SHA-256 hashed BOL/POD artifacts to the Item Fulfillment via record.attach().
  • Enforces automated Credit Memo guardrails preventing unverified shortage write-offs.

Architectural Comparison Matrix

Control DimensionManual AP / Cloud SaaS OCRDataOngoing Zero-Egress OCR + 3-Way MatchVerified Security & P&L Impact
Data Privacy & EgressInvoices leave VPC to external cloud APIsDocker internal: true network (0 bytes egress)HIPAA-ready & SOX ITGC data residency
Adversarial PDF DefenseVulnerable to hidden text & ACH spoofingDefendAir 4-layer sanitizer + ACH blockZero unauthorized vendor bank mutations
PO / Receipt / Bill MatchManual spreadsheet or +/- loose tolerancesDeterministic +/-2.0% line-level match gateStops duplicate payments & overbilling
Outbound Freight / PODPaper BOLs lost; unverified credit memosDigital driver signature + SHA-256 POD lockProtects gross margin against false claims

Zero-Egress AP OCR & 3-Way Match ROI Simulator

Quantify AP processing labor saved and duplicate/variance leakage stopped annually.

Estimated Annual AP Labor & Variance Savings — Recalculates live from inputs above
AP Hours Reclaimed from Manual Bill Matching — Client operational assumptions modeled against verified benchmarks

Linked Case Studies, Industry Hubs & Resources

Frequently Asked Executive & Technical Questions

Does Zero-Egress OCR require GPU cloud hosting, or can it run inside our private VPC or on-premise server?

Both tiers run entirely inside your private infrastructure. Tier-1 uses vLLM (Qwen2.5-VL-7B + Qwen2.5-Coder-32B) on a single private GPU node, while Tier-2 runs lightweight Ollama + Docling/PaddleOCR on standard enterprise hardware—both isolated on an internal: true Docker network.

Can we use the +/-2% 3-Way Match engine if we also receive drop-ship or multi-receipt partial POs?

Yes. The pre-validator aggregates cumulative Item Receipt quantities across partial shipments against open PO lines and compares invoiced unit rates and extended totals within your configured +/-2.0% tolerance band.

How does DefendAir prevent an invoice PDF from tricking the AI into changing a vendor bank account?

DefendAir strips hidden white-on-white text and zero-width Unicode characters prior to vision extraction, and our NetSuite RESTlet strictly prohibits autonomous updates to Vendor bank/ACH fields—requiring dual-control human treasury verification.

What if we already use NetSuite File Cabinet folders or an AP email inbox for vendor PDFs?

Our crawler polls IMAP/Microsoft 365 mailboxes, SFTP/SMB shares, scanner hot-folders, and NetSuite File Cabinet folders automatically, deduplicating every attachment by SHA-256 hash before extraction.

Ready to Eliminate NetSuite Bottlenecks & Recover Margin?

Engage Principal Architect Jeffrey 'Kyle' Castor directly for a fixed-fee read-only Aissistor X-Ray Diagnostic or milestone-bound implementation. Zero hourly billing games.

Schedule Executive Architecture Call Try 17 Live NetSuite Fix Consoles Call (844)-991-3648