Manual import of ledger entries.
This commit is contained in:
@@ -251,7 +251,17 @@
|
||||
|
||||
:invoice_stat {:fields {:name {:type 'String}
|
||||
:paid {:type 'String}
|
||||
:unpaid {:type 'String}}}}
|
||||
:unpaid {:type 'String}}}
|
||||
|
||||
:import_ledger_entry_result {:fields {:external_id {:type 'String}
|
||||
:error {:type 'String}
|
||||
:status {:type 'String}}}
|
||||
|
||||
:import_ledger_result {:fields {:successful {:type '(list :import_ledger_entry_result)}
|
||||
:existing {:type '(list :import_ledger_entry_result)}
|
||||
:errors {:type '(list :import_ledger_entry_result)}
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -338,13 +348,26 @@
|
||||
:vendor {:type '(list :vendor)
|
||||
:resolve :get-vendor}
|
||||
:user {:type '(list :user)
|
||||
:resolve :get-user}}
|
||||
:resolve :get-user}
|
||||
}
|
||||
|
||||
:input-objects
|
||||
{
|
||||
:invoice_payment_amount {:fields {:invoice_id {:type :id}
|
||||
:amount {:type 'Float}}}
|
||||
|
||||
:import_ledger_line_item {:fields {:account_identifier {:type 'String}
|
||||
:location {:type 'String}
|
||||
:debit {:type 'String}
|
||||
:credit {:type 'String}}}
|
||||
:import_ledger_entry {:fields {:source {:type 'String}
|
||||
:external_id {:type 'String}
|
||||
:client_code {:type 'String}
|
||||
:date {:type 'String}
|
||||
:vendor_name {:type 'String}
|
||||
:amount {:type 'String}
|
||||
:line_items {:type '(list :import_ledger_line_item)}}}
|
||||
|
||||
:edit_client {:fields {:id {:type :id}
|
||||
:name {:type 'String}
|
||||
:code {:type 'String}
|
||||
@@ -486,6 +509,10 @@
|
||||
:add_invoice {:type :invoice
|
||||
:args {:invoice {:type :add_invoice}}
|
||||
:resolve :mutation/add-invoice}
|
||||
|
||||
:import_ledger {:type :import_ledger_result
|
||||
:args {:entries {:type '(list :import_ledger_entry)}}
|
||||
:resolve :mutation/import-ledger}
|
||||
:edit_invoice {:type :invoice
|
||||
:args {:invoice {:type :edit_invoice}}
|
||||
:resolve :mutation/edit-invoice}
|
||||
@@ -673,6 +700,7 @@
|
||||
:mutation/unvoid-invoice gq-invoices/unvoid-invoice
|
||||
:mutation/void-payment gq-checks/void-check
|
||||
:mutation/edit-expense-accounts gq-invoices/edit-expense-accounts
|
||||
:mutation/import-ledger gq-ledger/import-ledger
|
||||
:get-vendor get-vendor})
|
||||
schema/compile))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user