# RFQ Quote Matcher Demo

Synthetic proof asset for EXP-002.

This is not a client case study and does not process real customer data. It demonstrates deterministic matching logic for a possible n8n/PDF-to-quote workflow:

- normalize product codes and units;
- match only against an approved catalogue;
- price only from an approved versioned price list;
- preserve duplicate RFQ lines;
- route missing, ambiguous, mismatched, or unpriced lines to review;
- use integer minor units for exact totals.
- export Excel-compatible quote and review CSV files.

Run:

```bash
node --test match.test.mjs
node export-demo.mjs
node cli.mjs --rfq=sample/rfq.json --catalogue=sample/catalogue.json --prices=sample/price-list.json --out=out
```

Out of scope for this demo:

- PDF extraction;
- OCR;
- n8n orchestration;
- ERP integration;
- automatic email sending;
- tax, discounts, freight, and currency conversion.

Generated demo files:

- `out/quote.csv`
- `out/review.csv`
- `out/quote.json`

Paid-test scaffold:

- `sample/rfq.json`
- `sample/catalogue.json`
- `sample/price-list.json`
- `cli.mjs`
- `paid-test-plan.md`
