even more.
This commit is contained in:
@@ -114,6 +114,48 @@
|
||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||
:total [:trim-commas nil]}}
|
||||
|
||||
;; REGAL
|
||||
{:vendor "Regal Wine Co"
|
||||
:keywords [#"REGAL WINE"]
|
||||
:extract {:date #"INVOICE DATE.*\n\n(?:.*?)([0-9]+/[0-9]+/[0-9]+)"
|
||||
:customer-identifier #"INVOICE\n(.*?)\s{2,}"
|
||||
:invoice-number #"INVOICE NUMBER.*\n\n(?:.*?)(\d+)"
|
||||
:total #"Total Amount Due(?:.*?)([0-9,]+\.[0-9]{2})"}
|
||||
:parser {:date [:clj-time "MM/dd/yy"]
|
||||
:total [:trim-commas nil]}}
|
||||
|
||||
;; ALSCO
|
||||
{:vendor "Alsco"
|
||||
:keywords [#"Alsco"]
|
||||
:extract {:date #"Invoice Date:\s+(.*)"
|
||||
:customer-identifier #"Invoice F o r(?:.*?)\n\s+(.*?)\s{2,}"
|
||||
:invoice-number #" (\S+)\n\s+Invoice Date"
|
||||
:total #"Invoice Total\s+\$([0-9,]+\.[0-9]{2})"}
|
||||
:parser {:date [:clj-time "MMM dd yyyy"]
|
||||
:total [:trim-commas nil]}}
|
||||
|
||||
;; SUNCREST
|
||||
{:vendor "Suncrest USA Inc"
|
||||
:keywords [#"Suncrest.*Invoice"]
|
||||
:extract {:date #"Date.*\n\s*\n(?:.*?)([0-9]+/[0-9]+/[0-9]+)"
|
||||
:customer-identifier #"Bill To(?:.*?)\n\n(.*?)\s{2,}"
|
||||
:invoice-number #"Invoice #.*\n\s*\n(?:.*?)\s{2,}(\d{5,})"
|
||||
:total #"Balance Due\s+\$([0-9,]+\.[0-9]{2})"}
|
||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||
:total [:trim-commas nil]}}
|
||||
|
||||
;; SUNCREST STATEMENT
|
||||
{:vendor "Suncrest USA Inc"
|
||||
:keywords [#"Suncrest.*\n.*Statement"]
|
||||
:extract {:date #"^([0-9]+/[0-9]+/[0-9]+)"
|
||||
:customer-identifier #"To:(?:.*?)\n\s*(.*?)\s{2,}"
|
||||
:invoice-number #"INV #(\d+)"
|
||||
:total #"Orig\. Amount \$([0-9,]+\.[0-9]{2})"}
|
||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||
:total [:trim-commas nil]}
|
||||
:multi #"\n"
|
||||
:multi-match? #"^[0-9]+/[0-9]+/[0-9]+\s+INV "}
|
||||
|
||||
;; US FOODS
|
||||
{:vendor "US Foods"
|
||||
:keywords [#"US Foods"]
|
||||
|
||||
Reference in New Issue
Block a user