From eb3fd17db84cd83bf968a558358f660cfa038c56 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Tue, 8 Jun 2021 20:11:38 -0700 Subject: [PATCH] supports commas --- src/clj/auto_ap/parse/templates.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/auto_ap/parse/templates.clj b/src/clj/auto_ap/parse/templates.clj index ce414fc3..52420280 100644 --- a/src/clj/auto_ap/parse/templates.clj +++ b/src/clj/auto_ap/parse/templates.clj @@ -239,7 +239,7 @@ :extract {:date #"INVOICE DATE\s+([0-9]+/[0-9]+/[0-9]+)" :customer-identifier #"SHIP-TO-PARTY.*\n(.*?)(?=\s{2,})" :invoice-number #"INV #\s+(\d+)" - :total #"PLEASE PAY THIS AMOUNT\s+([0-9]+\.[0-9]{2})" + :total #"PLEASE PAY THIS AMOUNT\s+([0-9,]+\.[0-9]{2})" :account-number #"CUSTOMER NUMBER\s+(\d+)"} :parser {:date [:clj-time "MM/dd/yyyy"] :total [:trim-commas nil]}}