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]}}