From 29bbe10826811d644f6a83c88f82f8ed0f546a20 Mon Sep 17 00:00:00 2001 From: BC Date: Thu, 12 Jul 2018 22:58:25 -0700 Subject: [PATCH] removed way of finding old checks. --- src/clj/auto_ap/yodlee/import.clj | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/clj/auto_ap/yodlee/import.clj b/src/clj/auto_ap/yodlee/import.clj index 15c5a550..3500d24b 100644 --- a/src/clj/auto_ap/yodlee/import.clj +++ b/src/clj/auto_ap/yodlee/import.clj @@ -121,20 +121,3 @@ yodlee-account-id->bank-account-id (by :yodlee-account-id :bank-account-id all-bank-accounts)] (import-transactions transactions yodlee-account-id->company yodlee-account-id->bank-account-id))) -#_(defn match-old-checks [] - (let [transactions (transactions/get-unmatched)] - (doseq [transaction transactions] - (when-let (transaction->check-id transaction - (:check-number transaction) - (:company-id transaction) - (:band-account-id transaction) - (:amount transaction)) - (transactions/upsert! - {:id id - :check-id check-id}) - (when check-id - (checks/update! {:id check-id :status "cleared"})) - ) - ) - ) - )