Added payment list to jobs BOD-146
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user