added new types.
This commit is contained in:
@@ -380,6 +380,28 @@
|
||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||
:total [:trim-commas-and-negate nil]}}
|
||||
|
||||
;; American Provisions
|
||||
{:vendor "American Paper & Provisions"
|
||||
:keywords [#"imperialdade"]
|
||||
:extract {:date #"([0-9]+/[0-9]+/[0-9]+)"
|
||||
:customer-identifier #"Bill To.*\n\s*(.*?)\s{2,}"
|
||||
:invoice-number #"INVOICE\n(?:.*?)(\s{2,}\d+)"
|
||||
:total #"AMOUNT DUE:\s+([\d\.,\-]+)"}
|
||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||
:total [:trim-commas-and-negate nil]}}
|
||||
|
||||
;; Ocean Queen statement
|
||||
{:vendor "Ocean Queen"
|
||||
:keywords [#"Ocean Queen USA" #"Statement"]
|
||||
:extract {:date #"^([0-9]+/[0-9]+/[0-9]+)"
|
||||
:customer-identifier #"To:.*\n\s*(.*?)\s{2,}"
|
||||
:invoice-number #"INV #(\d+)"
|
||||
:total #" ([\d\.,\-]+)"}
|
||||
:multi #"\n"
|
||||
:multi-match? #"^([0-9]+/[0-9]+/[0-9]+).*INV"
|
||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||
:total [:trim-commas-and-negate nil]}}
|
||||
|
||||
;; Ocean Queen
|
||||
{:vendor "Ocean Queen"
|
||||
:keywords [#"Ocean Queen USA"]
|
||||
|
||||
Reference in New Issue
Block a user