payments should load again.
This commit is contained in:
12
src/clj/auto_ap/routes/exports.fiddle
Normal file
12
src/clj/auto_ap/routes/exports.fiddle
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
(let [query [[:all_payments
|
||||
{:client-code "VS"
|
||||
:original-id nil}
|
||||
[:id :check-number :amount :memo :date :status :type :original-id
|
||||
[:invoices [[:invoice [:id :original-id]] :amount]]
|
||||
[:bank-account [:number :code :bank-name :bank-code :id]]
|
||||
[:vendor [:name :id [:primary-contact [:name :email :phone]] [:default-account [:name :numeric-code :id]] [:address [:street1 :city :state :zip]]]]
|
||||
[:client [:id :name :code]]]]]
|
||||
payments (auto-ap.graphql/query {:user/role "admin"} (venia/graphql-query {:venia/queries (->graphql query)}))]
|
||||
{:body
|
||||
(list (:all-payments (:data payments)))})
|
||||
Reference in New Issue
Block a user