Added payment export BOD-147
This commit is contained in:
@@ -48,3 +48,29 @@ export const QUERY_INVOICES_FOR_EXPORT = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_PAYMENTS_FOR_EXPORT = gql`
|
||||
query QUERY_PAYMENTS_FOR_EXPORT {
|
||||
payments(
|
||||
where: { exportedat: { _eq: null } }
|
||||
order_by: { created_at: desc }
|
||||
) {
|
||||
id
|
||||
amount
|
||||
job {
|
||||
ro_number
|
||||
est_number
|
||||
id
|
||||
ownr_fn
|
||||
ownr_ln
|
||||
ownr_co_nm
|
||||
}
|
||||
payer
|
||||
memo
|
||||
exportedat
|
||||
stripeid
|
||||
created_at
|
||||
transactionid
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user