del monte meat co

This commit is contained in:
Bryce Covert
2020-04-17 21:09:30 -07:00
parent cd5dd2d1fe
commit 655cfe7067
2 changed files with 12 additions and 1 deletions

View File

@@ -91,7 +91,7 @@
(sort-by second)
ffirst)
word-set (set (str/split (.toLowerCase invoice-client-name) #"[\s:]" ))
word-set (set (filter (complement str/blank?) (str/split (.toLowerCase invoice-client-name) #"[\s:\-]" )))
client-word-match (->> clients
(map
(fn [{:keys [:db/id :client/matches :client/name] :as client :or {matches []}}]

View File

@@ -105,6 +105,17 @@
:parser {:date [:clj-time "EEE MMM dd, yyyy HH:mm aa"]
:total [:trim-commas nil]}}
;; Del Monte Meats
{:vendor "Del Monte Meat Co"
:keywords [#"Del Monte"]
:extract {:date #"([0-9]+/[0-9]+/[0-9]+)"
:customer-identifier #"Bill To:(?:.*?(?=\s{2,}))(.*)-"
:invoice-number #"Invoice\s+([0-9]+)"
:total #"\$([0-9\.,]+)"}
:parser {:date [:clj-time "MM/dd/yyyy"]
:total [:trim-commas nil]}
:multi #"\n"
:multi-match? #"^ [0-9]+"}
;; Young's Market Co new statement
{:vendor "Youngs Market"