From 8d1303e83d0928276f5c0dd7ef458526c2e7a9cd Mon Sep 17 00:00:00 2001 From: Bryce Date: Wed, 28 Aug 2024 08:58:01 -0700 Subject: [PATCH] Golden Brands --- src/clj/auto_ap/parse/templates.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index 122685d0..39cf9562 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -159,10 +159,10 @@ ;; GOLDEN BRANDS {:vendor "Golden Brands San Jose" :keywords [#"GOLDEN BRANDS"] - :extract {:date #"(?:.*\n){4}(.*)" ;; HOW TO GO TO SPCIFIC LINE - :account-number #"Account:\s*(.*?)\n" + :extract {:date #"(?:.*)((?:Mon|Tue|Wed|Thu|Thurs|Fri|Sat|Sun) .*)" ;; HOW TO GO TO SPCIFIC LINE + :account-number #"Account:\s*(.*?)(\s{2,}|\n)" :invoice-number #"Invoice#: (\d+)" - :total #"Invoice Total\s+([0-9,]+\.[0-9]{2})"} + :total #"Invoice Total\s+([\-0-9,]+\.[0-9]{2})"} :parser {:date [:clj-time "EEE MMM dd, yyyy HH:mm aa"] :total [:trim-commas nil]}}