diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index d4ca7acc..d4430651 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -156,6 +156,17 @@ :parser {:date [:clj-time "MM/dd/yyyy"] :total [:trim-commas nil]}} + ;; WORLDWIDE PRODUCE + {:vendor "Worldwide Produce" + :keywords [#"WORLDWIDE PRODUCE"] + :extract {:date #"([0-9]+/[0-9]+/[0-9]+)" + :customer-identifier #"Bill to.*\n\s*(.*?(?=(\s{2,}|\()))" + :invoice-number #"Invoice No\.\s+(\d+)" + :total #"Total\s+([0-9\.,]+)" + :account-number #"Customer No.\s+(.*?)\s{2}"} + :parser {:date [:clj-time "MM/dd/yy"] + :total [:trim-commas nil]}} + ;; AUTO-CHLOR {:vendor "Auto-Chlor" :keywords [#"AUTO-CHLOR"]