From 0e2b8f7a6830a05c9cae6a2a8ed1426fea8adb16 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 17 Jun 2024 08:25:13 -0700 Subject: [PATCH] adds gstar seafood --- src/clj/auto_ap/parse/templates.clj | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index 45ebc88c..ea6a2fc1 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -12,6 +12,14 @@ :date #"\s+([0-9]+/[0-9]+/[0-9]+)" :invoice-number #"\s+[0-9]+/[0-9]+/[0-9]+\s+([0-9]+)"} :parser {:date [:clj-time "MM/dd/yyyy"]}} + + {:vendor "Gstar Seafood" + :keywords [#"G Star Seafood"] + :extract {:total #"Total\s{2,}([\d\-,]+\.\d{2,2}+)" + :customer-identifier #"(.*?)(?:\s+)Invoice #" + :date #"Invoice Date\s{2,}([0-9]+/[0-9]+/[0-9]+)" + :invoice-number #"Invoice #\s+(\d+)"} + :parser {:date [:clj-time "MM/dd/yyyy"]}} ;; GGM {:vendor "Golden Gate Meat Company, Inc"