improvements

This commit is contained in:
2025-12-04 11:18:36 -08:00
parent af7f9355e8
commit 269fa45923
4 changed files with 9 additions and 5 deletions

View File

@@ -208,4 +208,8 @@
(println v)
(map
(fn [x] (dissoc x :full-text :text))
(parse v)))
(parse v)))
#_(nth (re-find #"ELECTRONICALLY.*\n\s*(.*?)\s{2,}" @last-text)
1)

View File

@@ -746,9 +746,9 @@
:multi #"\n"
:multi-match? #"INV #"}
{:vendor "Paulino's Bakery"
:keywords [#"Paulino's Bakery" #"Statement"]
:keywords [#"paulinosbakery"]
: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+)"
:total #"INV #(?:.*?)\s{2,}([\d\-,]+\.\d{2,2}+)"}
:parser {:date [:clj-time "MM/dd/yyyy"]

View File

@@ -1369,7 +1369,7 @@
:payment-type/credit
:else :payment-type/debit)
identity
(:handwritten-date snapshot))
(:handwritten-date snapshot))
(catch Exception e
(println e))))))]
(modal-response

View File

@@ -329,7 +329,7 @@
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(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
(dc/tx-range (dc/log conn)
i