Add location extraction for Bonanza Produce invoices

- Extract city/state/zip in location field
- Customer address now split across 3 fields:
  - customer-identifier: customer name
  - account-number: street address
  - location: city, state zip
- All components verified in test

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-02-07 10:12:01 -08:00
parent d95e24a1d7
commit f4366fe98e
4 changed files with 512 additions and 1 deletions

View File

@@ -24,8 +24,9 @@
(is (= 2026 (time/year d)))
(is (= 1 (time/month d)))
(is (= 20 (time/day d))))
;; Customer identifier should include name and address
;; Customer identifier components
(is (= "NICK THE GREEK" (:customer-identifier result)))
(is (= "600 VISTA WAY" (str/trim (:account-number result))))
(is (= "MILPITAS, CA 95035" (str/trim (:location result))))
;; Total is parsed as string, not number (per current behavior)
(is (= "23.22" (:total result)))))))