del monte meat co
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
(sort-by second)
|
(sort-by second)
|
||||||
ffirst)
|
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
|
client-word-match (->> clients
|
||||||
(map
|
(map
|
||||||
(fn [{:keys [:db/id :client/matches :client/name] :as client :or {matches []}}]
|
(fn [{:keys [:db/id :client/matches :client/name] :as client :or {matches []}}]
|
||||||
|
|||||||
@@ -105,6 +105,17 @@
|
|||||||
:parser {:date [:clj-time "EEE MMM dd, yyyy HH:mm aa"]
|
:parser {:date [:clj-time "EEE MMM dd, yyyy HH:mm aa"]
|
||||||
:total [:trim-commas nil]}}
|
: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
|
;; Young's Market Co new statement
|
||||||
{:vendor "Youngs Market"
|
{:vendor "Youngs Market"
|
||||||
|
|||||||
Reference in New Issue
Block a user