BOD-17 Added return car modal.
This commit is contained in:
@@ -22,6 +22,28 @@ export const UPDATE_CONTRACT = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const RETURN_CONTRACT = gql`
|
||||
mutation RETURN_CONTRACT(
|
||||
$contractId: uuid!
|
||||
$cccontract: cccontracts_set_input!
|
||||
$courtesycarid: uuid!
|
||||
$courtesycar: courtesycars_set_input!
|
||||
) {
|
||||
update_cccontracts(where: { id: { _eq: $contractId } }, _set: $cccontract) {
|
||||
returning {
|
||||
id
|
||||
}
|
||||
}
|
||||
update_courtesycars(
|
||||
where: { id: { _eq: $courtesycarid } }
|
||||
_set: $courtesycar
|
||||
) {
|
||||
returning {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_CONTRACT_BY_PK = gql`
|
||||
query QUERY_CONTRACT_BY_PK($id: uuid!) {
|
||||
|
||||
@@ -231,6 +231,7 @@ export const GET_JOB_BY_PK = gql`
|
||||
status
|
||||
start
|
||||
scheduledreturn
|
||||
agreementnumber
|
||||
}
|
||||
appointments_aggregate {
|
||||
aggregate {
|
||||
|
||||
Reference in New Issue
Block a user