Added payment export BOD-147

This commit is contained in:
Patrick Fic
2020-06-30 16:23:25 -07:00
parent f1f9d7424b
commit 044fb4b9e0
29 changed files with 960 additions and 286 deletions

View File

@@ -106,9 +106,40 @@ query QUERY_INVOICES_FOR_PAYABLES_EXPORT($invoices: [uuid!]!) {
}
}
}
`;
exports.QUERY_PAYMENTS_FOR_EXPORT = `
query QUERY_PAYMENTS_FOR_EXPORT($payments: [uuid!]!) {
payments(where: {id: {_in: $payments}}) {
id
created_at
jobid
job {
id
ro_number
est_number
ins_co_nm
owner{
accountingid
}
ownr_fn
ownr_ln
ownr_co_nm
bodyshop{
accountingconfig
md_responsibility_centers
}
}
transactionid
memo
amount
stripeid
exportedat
stripeid
}
}
`;
exports.QUERY_UPCOMING_APPOINTMENTS = `
query QUERY_UPCOMING_APPOINTMENTS($now: timestamptz!, $jobId: uuid!) {
jobs_by_pk(id: $jobId) {