invoice tweaks.

This commit is contained in:
2024-06-26 19:47:59 -07:00
parent 41398944d2
commit 06b9e6e02c
4 changed files with 60 additions and 12 deletions

View File

@@ -48,6 +48,8 @@
(catch Exception e
(alog/warn ::cant-parse-value :error e :raw value))))))
{:vendor-code (:vendor template)
:template (str (:vendor template) " - selected because it matched "
(pr-str (:keywords template)))
:text text
:full-text full-text}))])))
@@ -86,7 +88,8 @@
:vendor-code (-> (vendors/best-match (get i "vendor_identifier") )
(get "label"))
:total (get i "total")
:invoice-number (get i "invoice_number")})
:invoice-number (get i "invoice_number")
:template "None found - defaulting to ChatGPT"})
)
(catch Exception e
(alog/warn ::glimpse2-not-work :error e)