IO-2261 Add Delete function, Correct Payment edit, add Totals to Bills handler

This commit is contained in:
Allan Carr
2023-05-05 13:10:07 -07:00
parent 49a61e1564
commit a3557bbc86
6 changed files with 64 additions and 4 deletions

View File

@@ -114,3 +114,37 @@ export const QUERY_JOB_PAYMENT_TOTALS = gql`
}
}
`;
export const QUERY_PAYMENT_BY_ID = gql`query QUERY_PAYMENT_BY_ID($paymentId: uuid!) {
payments_by_pk(id: $paymentId) {
id
created_at
jobid
paymentnum
date
job {
id
ro_number
ownerid
ownr_co_nm
ownr_fn
ownr_ln
owner {
id
ownr_co_nm
ownr_fn
ownr_ln
}
}
transactionid
memo
type
amount
stripeid
exportedat
stripeid
payer
}
}
`