Improvements to templates

This commit is contained in:
2025-09-11 23:00:42 -07:00
parent 96934b12fd
commit b646544ebc
2 changed files with 25 additions and 2 deletions

View File

@@ -701,6 +701,29 @@
:total [:trim-commas-and-negate nil]}
:multi #"\n"
:multi-match? #"^\s*Invoice\s{2,}"}
;; DAY LEE
{:vendor "Day Lee Foods"
:keywords [#"DAY-LEE FOODS"]
:extract {:date #"([0-9]+/[0-9]+/[0-9]+)"
:customer-identifier #"9720\n\n(.*?)\n"
:invoice-number #"^\s*(\d+)\s"
:total #"\$([\d\-,]+)$"}
:parser {:date [:clj-time "MM/dd/yyyy"]
:total [:trim-commas-and-negate nil]}
:multi #"\n"
:multi-match? #"RI"}
;; NA sales
{:vendor "N.A. Sales Company, Inc"
:keywords [#"2695 McCone Avenue"]
:extract {:date #"Invoice Date:\s+([0-9]+/[0-9]+/[0-9]+)"
:customer-identifier #"Sold To:.*?\n\s+(.*?)\s{2,}"
:invoice-number #"Invoice Number:\s+(.*?)\n"
:total #"Invoice Total:\s+([\d\-,]+\.\d{2,2}+)"}
:parser {:date [:clj-time "MM/dd/yyyy"]
:total [:trim-commas-and-negate nil]}}
{:vendor "Mani Imports"
:keywords [#"Mani Imports"]
:extract {:date #"Order Date\s+([0-9]+/[0-9]+/[0-9]+)"