diff --git a/src/clj/auto_ap/routes/checks.clj b/src/clj/auto_ap/routes/checks.clj index 7af4ac0f..68d9808f 100644 --- a/src/clj/auto_ap/routes/checks.clj +++ b/src/clj/auto_ap/routes/checks.clj @@ -178,7 +178,7 @@ (defmulti check-for-invoices (fn [invoices vendor-id vendors company bank-account index invoice-amounts] - (:type bank-account))) + (or (:type bank-account) "check"))) (defmethod check-for-invoices "check" [invoices vendor-id vendors company bank-account index invoice-amounts] (let [uuid (str (UUID/randomUUID)) diff --git a/src/clj/auto_ap/yodlee/import.clj b/src/clj/auto_ap/yodlee/import.clj index d5302f26..d43e91a0 100644 --- a/src/clj/auto_ap/yodlee/import.clj +++ b/src/clj/auto_ap/yodlee/import.clj @@ -112,6 +112,7 @@ (defn do-import [] (let [transactions (client/get-transactions) + _ (println "ALL Transactions:" transactions) all-bank-accounts (mapcat (fn [c] (map (fn [{:keys [id yodlee-account-id]}] (when (and id yodlee-account-id)