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)