entity_evidence_trail read-only
Assemble a read-only evidence trail for ONE anchor: a part number, vendor name, inventory item serial, or invoice number. Returns the FINANCIAL trail (RFQ -> quote -> pre-auth -> invoice -> open-credit -> residual, grouped by vendor/part#/order#, reconciling qty ordered/shipped/backordered and open-credit application, with a completed/open/fizzled status) and the PROCUREMENT trail (order -> shipped/will-call -> inventory item). Anchored on the document library full-text search, enriched with structured invoice/PO records where they exist. Every stage is flagged 'document' (read off an invoice body), 'structured' (a real DB row), or 'inference' (token overlap, not proof). Provide EXACTLY ONE anchor.
Parameters
part_number: string (optional)- Part number anchor (e.g. 'H28004-DISS43FDL900406' or 'H28004').
vendor_name: string (optional)- Vendor name anchor (e.g. 'Hydraulic Sales'). Returns the vendor's invoice/quote set.
item_serial: string (optional)- Inventory item serial number anchor (e.g. '3565').
invoice_number: string (optional)- Invoice number anchor (e.g. '345891').
doc_limit: integer (optional)- Maximum library documents to pull into the trail (default 25, max 50). — default:
25