includes all, but tells you when voided.
This commit is contained in:
@@ -150,6 +150,7 @@
|
|||||||
:total {:type 'String}
|
:total {:type 'String}
|
||||||
:outstanding_balance {:type 'String}
|
:outstanding_balance {:type 'String}
|
||||||
:invoice_number {:type 'String}
|
:invoice_number {:type 'String}
|
||||||
|
:status {:type 'String}
|
||||||
:expense_accounts {:type '(list :invoices_expense_accounts)
|
:expense_accounts {:type '(list :invoices_expense_accounts)
|
||||||
:resolve :get-invoices-expense-accounts}
|
:resolve :get-invoices-expense-accounts}
|
||||||
:date {:type 'String}
|
:date {:type 'String}
|
||||||
|
|||||||
@@ -25,10 +25,9 @@
|
|||||||
(GET "/invoices/export" {:keys [query-params identity] :as request}
|
(GET "/invoices/export" {:keys [query-params identity] :as request}
|
||||||
(assert-admin identity)
|
(assert-admin identity)
|
||||||
(let [query [[:all_invoices
|
(let [query [[:all_invoices
|
||||||
{:company-id (query-params "company")
|
{:company-id (query-params "company")}
|
||||||
:statuses ["unpaid" "paid"]}
|
|
||||||
|
|
||||||
[:id :total :outstanding-balance :invoice-number :date
|
[:id :total :outstanding-balance :invoice-number :date :status
|
||||||
[:checks [:amount [:check [:check-number :memo [:bank_account [:id :number :bank-name :bank-code]]]]]]
|
[:checks [:amount [:check [:check-number :memo [:bank_account [:id :number :bank-name :bank-code]]]]]]
|
||||||
[:vendor [:name :id :primary_contact [:address [:street1 :city :state :zip]]]]
|
[:vendor [:name :id :primary_contact [:address [:street1 :city :state :zip]]]]
|
||||||
[:expense_accounts [:amount :id :expense_account_id :location
|
[:expense_accounts [:amount :id :expense_account_id :location
|
||||||
@@ -39,9 +38,8 @@
|
|||||||
(GET "/checks/export" {:keys [query-params identity]}
|
(GET "/checks/export" {:keys [query-params identity]}
|
||||||
(assert-admin identity)
|
(assert-admin identity)
|
||||||
(let [query [[:all_checks
|
(let [query [[:all_checks
|
||||||
{:company-id (query-params "company")
|
{:company-id (query-params "company")}
|
||||||
:statuses ["pending" "cleared"]}
|
[:id :check-number :amount :memo :date :status
|
||||||
[:id :check-number :amount :memo :date
|
|
||||||
[:invoices [:invoice-id :amount]]
|
[:invoices [:invoice-id :amount]]
|
||||||
[:bank-account [:number :bank-name :bank-code :id]]
|
[:bank-account [:number :bank-name :bank-code :id]]
|
||||||
[:vendor [:name :id :primary-contact :primary-email :primary-phone :default-expense-account [:address [:street1 :city :state :zip]]]]
|
[:vendor [:name :id :primary-contact :primary-email :primary-phone :default-expense-account [:address [:street1 :city :state :zip]]]]
|
||||||
|
|||||||
Reference in New Issue
Block a user