Added payment export BOD-147
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user