now all payments can go through datomic, but pdfs need work.

This commit is contained in:
Bryce Covert
2018-08-23 22:39:12 -07:00
parent 2ea6ca576f
commit a9224dad22
6 changed files with 137 additions and 89 deletions

View File

@@ -58,7 +58,7 @@
:bank_account
{:fields {:id {:type 'String}
:type {:type 'String}
:type {:type :bank_account_type}
:number {:type 'String}
:check_number {:type 'Int}
:name {:type 'String}
@@ -110,7 +110,7 @@
}}
:payment {:fields {:id {:type 'String}
:type {:type 'String}
:type {:type :payment_type}
:amount {:type 'String}
:vendor {:type :vendor}
:client {:type :client}
@@ -287,11 +287,16 @@
:date {:type 'String}
:total {:type 'Float}}}}
:enums {:payment_type {:values [{:enum-value :check}
{:enum-value :cash}
{:enum-value :debit}]}
:bank_account_type {:values [{:enum-value :check}
{:enum-value :cash}]}}
:mutations
{:print_checks {:type :check_result
:args {:invoice_payments {:type '(list :invoice_payment_amount)}
:bank_account_id {:type 'String}
:type {:type 'String}
:type {:type :payment_type}
:client_id {:type 'String}}
:resolve :mutation/print-checks}