fixes new wine warehouse format.
This commit is contained in:
@@ -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]}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user