improvements
This commit is contained in:
@@ -209,3 +209,7 @@
|
|||||||
(map
|
(map
|
||||||
(fn [x] (dissoc x :full-text :text))
|
(fn [x] (dissoc x :full-text :text))
|
||||||
(parse v)))
|
(parse v)))
|
||||||
|
|
||||||
|
#_(nth (re-find #"ELECTRONICALLY.*\n\s*(.*?)\s{2,}" @last-text)
|
||||||
|
|
||||||
|
1)
|
||||||
|
|||||||
@@ -746,9 +746,9 @@
|
|||||||
:multi #"\n"
|
:multi #"\n"
|
||||||
:multi-match? #"INV #"}
|
:multi-match? #"INV #"}
|
||||||
{:vendor "Paulino's Bakery"
|
{:vendor "Paulino's Bakery"
|
||||||
:keywords [#"Paulino's Bakery" #"Statement"]
|
:keywords [#"paulinosbakery"]
|
||||||
:extract {:date #"\s*([0-9]+/[0-9]+/[0-9]+)"
|
:extract {:date #"\s*([0-9]+/[0-9]+/[0-9]+)"
|
||||||
:customer-identifier #"To:\s*\n\s+(.*?)\s{2,}"
|
:customer-identifier #"831-333-1010\s*\n\s+(.*?)\s{2,}"
|
||||||
:invoice-number #"INV #(\d+)"
|
:invoice-number #"INV #(\d+)"
|
||||||
:total #"INV #(?:.*?)\s{2,}([\d\-,]+\.\d{2,2}+)"}
|
:total #"INV #(?:.*?)\s{2,}([\d\-,]+\.\d{2,2}+)"}
|
||||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||||
|
|||||||
@@ -1369,7 +1369,7 @@
|
|||||||
:payment-type/credit
|
:payment-type/credit
|
||||||
:else :payment-type/debit)
|
:else :payment-type/debit)
|
||||||
identity
|
identity
|
||||||
(:handwritten-date snapshot))
|
(:handwritten-date snapshot))
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
(println e))))))]
|
(println e))))))]
|
||||||
(modal-response
|
(modal-response
|
||||||
|
|||||||
@@ -329,7 +329,7 @@
|
|||||||
|
|
||||||
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
|
||||||
(defn tx-detail [i]
|
(defn tx-detail [i]
|
||||||
(map (juxt :e #(pull-attr (dc/db conn) :db/ident (:a %)) :v)
|
(map (juxt :e #(pull-attr (dc/db conn) :db/ident (:a %)) :v :added)
|
||||||
(:data (first
|
(:data (first
|
||||||
(dc/tx-range (dc/log conn)
|
(dc/tx-range (dc/log conn)
|
||||||
i
|
i
|
||||||
|
|||||||
Reference in New Issue
Block a user