parses account number.
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
[auto-ap.datomic.invoices :refer [code-invoice]]
|
[auto-ap.datomic.invoices :refer [code-invoice]]
|
||||||
[auto-ap.parse :as parse]
|
[auto-ap.parse :as parse]
|
||||||
[auto-ap.time :as t]
|
[auto-ap.time :as t]
|
||||||
[auto-ap.utils :refer [by]]
|
|
||||||
[clj-time.coerce :as coerce]
|
[clj-time.coerce :as coerce]
|
||||||
[clojure.data.csv :as csv]
|
[clojure.data.csv :as csv]
|
||||||
[clojure.java.io :as io]
|
[clojure.java.io :as io]
|
||||||
@@ -66,6 +65,7 @@
|
|||||||
(header-row "City1")
|
(header-row "City1")
|
||||||
(header-row "City2")])
|
(header-row "City2")])
|
||||||
|
|
||||||
|
account-number (some-> account-number Long/parseLong str)
|
||||||
matching-client (and account-number
|
matching-client (and account-number
|
||||||
(parse/best-match clients account-number 0.0))
|
(parse/best-match clients account-number 0.0))
|
||||||
_ (when-not matching-client
|
_ (when-not matching-client
|
||||||
|
|||||||
Reference in New Issue
Block a user