From aab1ffd31aee52db78de44816a3314fd3f095e62 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 17 Apr 2020 21:15:40 -0700 Subject: [PATCH] royal hawaiian --- 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 f9f5ea7d..6c36f0e4 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -117,6 +117,16 @@ :multi #"\n" :multi-match? #"^ [0-9]+"} + ;; Royal Hawaiian + {:vendor "Royal Hawaiian" + :keywords [#"ROYAL HAWAIIAN"] + :extract {:date #"([0-9]+/[0-9]+/[0-9]+)" + :customer-identifier #"BILL TO.*\n\s+(.*?(?=(\s{2,}|\()))" + :invoice-number #"Invoice#:\s+([0-9]+)" + :total #"INV TOTAL:\s+([0-9\.,]+)"} + :parser {:date [:clj-time "MM/dd/yyyy"] + :total [:trim-commas nil]}} + ;; Young's Market Co new statement {:vendor "Youngs Market" :keywords [#"YOUNG'S MARKET COMPANY"]