fixes new wine warehouse format.

This commit is contained in:
2024-06-07 10:52:04 -07:00
parent 3db0629895
commit 0cabe30999
4 changed files with 42 additions and 30 deletions

View File

@@ -280,10 +280,10 @@
;; WINE WAREHOUSE
{:vendor "Wine Warehouse"
:keywords [#"WINE WAREHOUSE" #"Bottle prices include"]
:extract {:date #"INVOICE DATE\s+([0-9]+/[0-9]+/[0-9]+)"
:invoice-number #"INV #\s+(\d+)"
:total #"PLEASE PAY THIS AMOUNT\s+([0-9,]+\.[0-9]{2})"
:account-number #"CUSTOMER NUMBER\s+(\d+)"}
:extract {:date #"Invoice Date:\s+([0-9]+/[0-9]+/[0-9]+)"
:invoice-number #"Invoice #: \s+(\d+)"
:total #"Total\s+([\-0-9,]+\.[0-9]{2})"
:account-number #"Customer #:\s+(\d+)"}
:parser {:date [:clj-time "MM/dd/yyyy"]
:total [:trim-commas nil]}}
@@ -321,10 +321,10 @@
;; Breakthru Bev
{:vendor "Wine Warehouse"
:keywords [#"BREAKTHRU BEVERAGE"]
:extract {:date #"INVOICE DATE\s+([0-9]+/[0-9]+/[0-9]+)"
:account-number #"CUSTOMER NUMBER\s+(\d+)"
:invoice-number #"INV #\s+(.*?)\n"
:total #"INVOICE AMOUNT\s+\$\s*([\d,\.\-]+)"}
:extract {:date #"Invoice Date:\s+([0-9]+/[0-9]+/[0-9]+)"
:invoice-number #"Invoice #: \s+(\d+)"
:total #"Total\s+([\-0-9,]+\.[0-9]{2})"
:account-number #"Customer #:\s+(\d+)"}
:parser {:date [:clj-time "MM/dd/yyyy"]
:total [:trim-commas nil]}}