Invoice updates

This commit is contained in:
2022-04-07 21:05:53 -07:00
parent 4a00355260
commit 7139da4141

View File

@@ -144,6 +144,17 @@
:multi #"\n"
:multi-match? #"^\s{1,2}[0-9]+"}
{:vendor "Allen Brothers West"
:keywords [#"ALLEN BROTHERS"]
:extract {:date #"([0-9]+/[0-9]+/[0-9]+)"
:customer-identifier #"Bill To:(?:.*?(?=\s{2,}))(.*)-"
:invoice-number #"Invoice\s+([0-9]+)"
:total #"([0-9\.,]+)$"}
:parser {:date [:clj-time "MM/dd/yyyy"]
:total [:trim-commas nil]}
:multi #"\n"
:multi-match? #"^\s{1,2}[0-9]+"}
;; Royal Hawaiian
{:vendor "Royal Hawaiian"
:keywords [#"ROYAL HAWAIIAN"]
@@ -211,7 +222,7 @@
:total [:trim-commas nil]}}
{:vendor "General Produce Company"
:keywords [#"generalproduce.com"]
:keywords [#"generalproduce.com" #"INVOICE DATE"]
:extract {:date #"INVOICE DATE.*\n.*?([0-9]+/[0-9]+/[0-9]+)"
:customer-identifier #"SHIP TO.*\n.*\n\s+(.*?)\s{2,}"
:invoice-number #"INVOICE NO.*\n.*?(\d{7,}?)\s+"
@@ -219,6 +230,17 @@
:parser {:date [:clj-time "MM/dd/yy"]
:total [:trim-commas-and-negate nil]}}
{:vendor "General Produce Company"
:keywords [#"generalproduce.com" #"FC ="]
:extract {:date #"^ (\d{2}-\w{3}-\d{2})"
:account-number #"STATEMENT DATE.*?ACCOUNT NO\.\n.*?(\d+)\n"
:invoice-number #".*?\s{2,}.*?\s{2,}(.*?)\s{2,}"
:total #"([\-0-9,]+\.[0-9]+)\s*$"}
:multi #"\n"
:multi-match? #"^ \d{2}-\w{3}-\d{2}"
:parser {:date [:clj-time "dd-MMM-yy"]
:total [:trim-commas-and-negate nil]}}
;;; credits don't have the same format
{:vendor "General Produce Company"