Added payment list to jobs BOD-146

This commit is contained in:
Patrick Fic
2020-06-16 10:51:54 -07:00
parent ef81991046
commit 951fce539b
42 changed files with 1403 additions and 212 deletions

View File

@@ -269,6 +269,15 @@ export const GET_JOB_BY_PK = gql`
lbr_amt
op_code_desc
}
payments {
id
amount
payer
created_at
stripeid
transactionid
memo
}
cccontracts {
id
status

View File

@@ -9,3 +9,42 @@ export const INSERT_NEW_PAYMENT = gql`
}
}
`;
export const QUERY_ALL_PAYMENTS_PAGINATED = gql`
query QUERY_ALL_PAYMENTS_PAGINATED(
$search: String
$offset: Int
$limit: Int
$order: [payments_order_by!]!
) {
search_payments(
args: { search: $search }
offset: $offset
limit: $limit
order_by: $order
) {
id
created_at
jobid
job {
id
ro_number
est_number
ownr_fn
ownr_ln
ownr_co_nm
}
transactionid
memo
amount
stripeid
exportedat
stripeid
}
search_payments_aggregate(args: { search: $search }) {
aggregate {
count(distinct: true)
}
}
}
`;