IO-899 Contract FInd Modal
This commit is contained in:
@@ -189,3 +189,45 @@ export const QUERY_ACTIVE_CONTRACTS_PAGINATED = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const FIND_CONTRACT = gql`
|
||||
query FIND_CONTRACT($fleet: String, $time: timestamptz!) {
|
||||
cccontracts(
|
||||
where: {
|
||||
_or: [
|
||||
{ actualreturn: { _gte: $time } }
|
||||
{ actualreturn: { _is_null: true } }
|
||||
]
|
||||
start: { _lte: $time }
|
||||
courtesycar: { fleetnumber: { _eq: $fleet } }
|
||||
}
|
||||
) {
|
||||
agreementnumber
|
||||
courtesycarid
|
||||
driver_fn
|
||||
driver_ln
|
||||
driver_ph1
|
||||
id
|
||||
jobid
|
||||
job {
|
||||
id
|
||||
ro_number
|
||||
ownr_fn
|
||||
ownr_ln
|
||||
ownr_co_nm
|
||||
}
|
||||
scheduledreturn
|
||||
actualreturn
|
||||
start
|
||||
status
|
||||
courtesycar {
|
||||
id
|
||||
fleetnumber
|
||||
make
|
||||
model
|
||||
year
|
||||
plate
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user