Commit graph

2 commits

Author SHA1 Message Date
63c943d05b feat(orders): include selling_price in duplicate-detection line match 2026-08-31 09:07:59 +02:00
e09de3cc80 feat(orders): add exact-match comparator for delivery-note detection
Pure module — no I/O, mirrors the separation established by
order-quote-match.ts.

isExactItemMatch is multiset equality on (normalizeLine(description),
quantity). Empty sets return false (would otherwise vacuously flag
every zero-line order against every zero-line DN).

14 tests cover: exact match, qty diff, extra line on either side,
multiplicity enforcement, the empty-set case, normalization
collapsing whitespace + case, and punctuation-sensitive 'exact'.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-30 12:45:34 +02:00