added new types.

This commit is contained in:
Bryce Covert
2021-04-05 14:14:23 -07:00
parent 05663e65a7
commit 4645cbddec
3 changed files with 44 additions and 1 deletions

View File

@@ -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"]