can unapprove, but there are bugs. UI doesnt refresh, filters are lost.

This commit is contained in:
Bryce Covert
2020-03-21 13:17:50 -07:00
parent bb59be6aea
commit add1dc6fcb
4 changed files with 146 additions and 86 deletions

View File

@@ -611,6 +611,21 @@
:args {:invoices {:type '(list :id)}}
:resolve :mutation/approve-invoices}
:unapprove_transactions {:type '(list :transaction_page)
:args {:client_id {:type :id}
:vendor_id {:type :id}
:bank_account_id {:type :id}
:date_range {:type :date_range}
:amount_lte {:type :money}
:amount_gte {:type :money}
:description {:type 'String}
:start {:type 'Int}
:sort_by {:type 'String}
:asc {:type 'Boolean}
:approval_status {:type :transaction_approval_status}}
:resolve :mutation/unapprove-transactions}
:merge_vendors {:type :id
:args {:from {:type :id}
:to {:type :id}}
@@ -844,6 +859,7 @@
:mutation/add-and-print-invoice gq-invoices/add-and-print-invoice
:mutation/edit-invoice gq-invoices/edit-invoice
:mutation/edit-transaction gq-transactions/edit-transaction
:mutation/unapprove-transactions gq-transactions/unapprove-transactions
:mutation/upsert-transaction-rule gq-transaction-rules/upsert-transaction-rule
:test-transaction-rule gq-transaction-rules/test-transaction-rule
:run-transaction-rule gq-transaction-rules/run-transaction-rule