From 878056e7afb120d29659bb8f2fbe352cbee2b113 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 9 Nov 2018 23:29:56 -0800 Subject: [PATCH] reference. getting rid of upload temporarily. --- src/clj/auto_ap/routes/invoices.clj | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/clj/auto_ap/routes/invoices.clj b/src/clj/auto_ap/routes/invoices.clj index 76c13a98..7a1ddfad 100644 --- a/src/clj/auto_ap/routes/invoices.clj +++ b/src/clj/auto_ap/routes/invoices.clj @@ -128,19 +128,9 @@ {:status 200 :body (pr-str {:imported (count raw-transactions) :errors (map #(dissoc % :date) error-rows)}) - :headers {"Content-Type" "application/edn"}})) - ) - (context "/invoices" [] - #_(POST "/upload" - {{ files "file"} :params :as params} - (let [{:keys [filename tempfile]} files - companies (companies/get-all) - vendors (vendors/get-all)] - (invoices/import (parse/parse-file (.getPath tempfile) filename) companies vendors) - {:status 200 - :body (pr-str (invoices/get-pending ((:query-params params ) "company"))) - :headers {"Content-Type" "application/edn"}})) + :headers {"Content-Type" "application/edn"}}))) + (context "/invoices" [] (POST "/upload-integreat" {{:keys [excel-rows]} :edn-params user :identity} (assert-admin user)