invoice parsing fixes.

This commit is contained in:
Bryce
2023-07-28 08:15:26 -07:00
parent 529dbe393d
commit 9c6c5d8f9e
2 changed files with 12 additions and 2 deletions

View File

@@ -418,6 +418,16 @@
:total #" Total:\s+([\d\.]+)"}
:parser {:date [:clj-time "MMM dd, yyyy"]}}
;; BiRite -- parent company for a&b produce
{:vendor "BiRite"
:keywords [#"BIRITE"]
:extract {:date #"([0-9]+/[0-9]+/[0-9]+)"
:customer-identifier #"BILL TO.*\n.*?\s{2,}(.*?)\s{2,}"
:invoice-number #"INVOICE#\n.*?(\d+)\n"
:total #"INV TOTAL \s+([\d\.\-]+)"}
:parser {:date [:clj-time "MM/dd/yyyy"]
:total [:trim-commas-and-negate nil]}}
;; A&B
{:vendor "A&B Produce"
:keywords [#"ABProduce"]