ignoring vendor on transactions.

This commit is contained in:
Bryce
2018-06-29 15:11:09 -07:00
parent 5f6bc5beea
commit 9ee2c6fc2f
5 changed files with 6 additions and 27 deletions

View File

@@ -11,12 +11,6 @@
[auto-ap.db.companies :as companies]
[auto-ap.time :refer [parse normal-date]]))
(defn get-vendor-for-transaction [context args value]
(->graphql
(if-let [vendor-cache (:vendor-cache context)]
(vendor-cache (:vendor_id value))
(vendors/get-by-id (:vendor_id value)))))
(defn get-check-for-transaction [context args value]
(->graphql
(checks/get-by-id (:check_id value))))