From 9867c58d8606b793e6355ca47850e4ef04573642 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Wed, 16 Jun 2021 07:58:00 -0700 Subject: [PATCH] Adds the water pros --- src/clj/auto_ap/parse/templates.clj | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index 52420280..4090a8d4 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -264,6 +264,16 @@ :parser {:date [:clj-time "MM/dd/yyyy"] :total [:trim-commas nil]}} + ;; THE WATER PROS + {:vendor "The Water Pros" + :keywords [#"The Water Pros, Inc"] + :extract {:date #"DATE\s+([0-9]+/[0-9]+/[0-9]+)" + :customer-identifier #"BILL TO.*\n(.*?)(?=\s{2,})" + :invoice-number #"INVOICE #\s+(\w+)" + :total #" TOTAL\s+([0-9,]+\.[0-9]{2})"} + :parser {:date [:clj-time "MM/dd/yyyy"] + :total [:trim-commas nil]}} + ;; REGAL {:vendor "Regal Wine Co" :keywords [#"REGAL WINE"]