diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index 6c36f0e4..e31fa267 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -127,6 +127,28 @@ :parser {:date [:clj-time "MM/dd/yyyy"] :total [:trim-commas nil]}} + ;; AUTO-CHLOR + {:vendor "Auto-Chlor" + :keywords [#"AUTO-CHLOR"] + :extract {:date #"DATE : ([0-9]+/[0-9]+/[0-9]+)" + :customer-identifier #"(.*?)\s{2,}.*CUSTOMER#" + :invoice-number #"INVOICE# :\s+([0-9]+)" + :total #"TOTAL SALE :\s+([0-9,.]+)"} + :parser {:date [:clj-time "MM/dd/yyyy"] + :total [:trim-commas nil]}} + + ;; Classic Wines + {:vendor "Classic Wines" + :keywords [#"585-9463"] + :extract {:date #"([0-9]+/[0-9]+/[0-9]+)" + :customer-identifier #"Customer Id:.*\n.*\n.*\n(.*)" + :invoice-number #"^.{23}\s+(\w+)" + :total #"\$([0-9\.,]+)"} + :parser {:date [:clj-time "MM/dd/yy"] + :total [:trim-commas nil]} + :multi #"\n" + :multi-match? #"^\s+.*?\d{6,}.*?\$"} + ;; Young's Market Co new statement {:vendor "Youngs Market" :keywords [#"YOUNG'S MARKET COMPANY"]