diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index 3f6988d6..2670d6d4 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -168,6 +168,16 @@ :parser {:date [:clj-time "MM/dd/yyyy"] :total [:trim-commas nil]}} + ;; PACIFIC SEAFOOD + {:vendor "Pacific Seafood" + :keywords [#"pacseafood"] + :extract {:date #"DATE(?:.*\n.*(?=([0-9]+/[0-9]+/[0-9]+)))([0-9]+/[0-9]+/[0-9]+)" + :customer-identifier #"DELIVER TO:(?:.*\n)(.*?)(?=\s{2})" + :invoice-number #"INVOICE NO\.\n(?:.*?(?= [0-9]+\n)) ([0-9]+)" + :total #"TOTAL\n\s+([0-9,\.]+)"} + :parser {:date [:clj-time "MM/dd/yyyy"] + :total [:trim-commas nil]}} + ;; P&R {:vendor "P & R PAPER SUPPLY CO" :keywords [#"PAPER SUPPLY COMPANY"]