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:
@@ -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)))))))
|
||||
|
||||
Reference in New Issue
Block a user