added company and vendor export
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
[auto-ap.db.invoices :as invoices]
|
[auto-ap.db.invoices :as invoices]
|
||||||
[auto-ap.db.checks :as checks]
|
[auto-ap.db.checks :as checks]
|
||||||
[auto-ap.db.transactions :as transactions]
|
[auto-ap.db.transactions :as transactions]
|
||||||
|
[auto-ap.db.companies :as companies]
|
||||||
|
[auto-ap.db.vendors :as vendors]
|
||||||
[auto-ap.db.utils :refer [query]]
|
[auto-ap.db.utils :refer [query]]
|
||||||
[auto-ap.utils :refer [by]]
|
[auto-ap.utils :refer [by]]
|
||||||
[auto-ap.parse :as parse]
|
[auto-ap.parse :as parse]
|
||||||
@@ -27,9 +29,14 @@
|
|||||||
(map (fn [i]
|
(map (fn [i]
|
||||||
(update i :date to-date))
|
(update i :date to-date))
|
||||||
checks)))
|
checks)))
|
||||||
|
|
||||||
|
(GET "/companies/export" {:keys [query-params]}
|
||||||
|
(companies/get-all))
|
||||||
|
|
||||||
|
(GET "/vendors/export" {:keys [query-params]}
|
||||||
|
(vendors/get-all))
|
||||||
(GET "/transactions/export" {:keys [query-params]}
|
(GET "/transactions/export" {:keys [query-params]}
|
||||||
(let [transactions (transactions/get-graphql {:company (query-params "company")})]
|
(let [transactions (transactions/get-graphql {:company (query-params "company")})]
|
||||||
(println transactions)
|
|
||||||
(map (fn [i]
|
(map (fn [i]
|
||||||
(-> i
|
(-> i
|
||||||
(update :date to-date)
|
(update :date to-date)
|
||||||
|
|||||||
Reference in New Issue
Block a user