started on expense accounts.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
[auto-ap.db.checks :as checks]
|
||||
[auto-ap.routes.checks :as rchecks]
|
||||
[auto-ap.graphql.users :as gq-users]
|
||||
[auto-ap.graphql.expense-accounts :as expense-accounts]
|
||||
[auto-ap.graphql.invoices :as gq-invoices]
|
||||
[auto-ap.db.reminders :as reminders]
|
||||
[auto-ap.db.invoices-checks :as invoices-checks]
|
||||
@@ -43,6 +44,7 @@
|
||||
:vendor
|
||||
{:fields {:id {:type 'Int}
|
||||
:name {:type 'String}
|
||||
:default_expense_account {:type 'Int}
|
||||
:invoice_reminder_schedule {:type 'String}}}
|
||||
:reminder
|
||||
{:fields {:id {:type 'Int}
|
||||
@@ -74,11 +76,26 @@
|
||||
:companies {:type '(list :company)
|
||||
:resolve :get-user-companies}}}
|
||||
|
||||
:expense_account {:fields {:id {:type 'Int}
|
||||
:name {:type 'String}
|
||||
:parent {:type :expense_account
|
||||
:resolve :get-expense-account-parent}}}
|
||||
|
||||
:invoices_expense_accounts
|
||||
{:fields {:id {:type 'Int}
|
||||
:invoice_id {:type 'Int}
|
||||
:expense_account_id {:type 'Int}
|
||||
:expense_account {:type :expense_account
|
||||
:resolve :get-expense-account}
|
||||
:amount {:type 'String}}}
|
||||
|
||||
:invoice
|
||||
{:fields {:id {:type 'Int}
|
||||
:total {:type 'String}
|
||||
:outstanding_balance {:type 'String}
|
||||
:invoice_number {:type 'String}
|
||||
:expense_accounts {:type '(list :invoices_expense_accounts)
|
||||
:resolve :get-invoices-expense-accounts}
|
||||
:date {:type 'String}
|
||||
:company_id {:type 'Int}
|
||||
:checks {:type '(list :invoice_check)
|
||||
@@ -303,13 +320,16 @@
|
||||
:get-company-for-invoice get-company-for-invoice
|
||||
:get-invoices-checks get-invoices-checks
|
||||
:get-check-by-id get-check-by-id
|
||||
:get-invoices-expense-accounts gq-invoices/get-invoices-expense-accounts
|
||||
:get-company get-company
|
||||
:get-user get-user
|
||||
:get-user-companies get-user-companies
|
||||
:mutation/print-checks print-checks
|
||||
:mutation/edit-user gq-users/edit-user
|
||||
:mutation/add-invoice gq-invoices/add-invoice
|
||||
:get-vendor get-vendor})
|
||||
:get-vendor get-vendor
|
||||
:get-expense-account expense-accounts/get-expense-account
|
||||
:get-expense-account-parent expense-accounts/get-parent})
|
||||
schema/compile))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user