Added shift clock framework + login on tech console BOD-97 BOD-188
This commit is contained in:
@@ -72,11 +72,13 @@ export const QUERY_ACTIVE_TIME_TICKETS = gql`
|
||||
clockoff: { _is_null: true }
|
||||
employeeid: { _eq: $employeeId }
|
||||
clockon: { _is_null: false }
|
||||
jobid: {_is_null: false}
|
||||
}
|
||||
}
|
||||
) {
|
||||
id
|
||||
clockon
|
||||
memo
|
||||
job {
|
||||
id
|
||||
est_number
|
||||
@@ -91,6 +93,37 @@ export const QUERY_ACTIVE_TIME_TICKETS = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_ACTIVE_SHIFT_TIME_TICKETS = gql`
|
||||
query QUERY_ACTIVE_SHIFT_TIME_TICKETS($employeeId: uuid) {
|
||||
timetickets(
|
||||
where: {
|
||||
_and: {
|
||||
clockoff: { _is_null: true }
|
||||
employeeid: { _eq: $employeeId }
|
||||
clockon: { _is_null: false }
|
||||
jobid: {_is_null: true}
|
||||
}
|
||||
}
|
||||
) {
|
||||
id
|
||||
clockon
|
||||
memo
|
||||
job {
|
||||
id
|
||||
est_number
|
||||
ownr_fn
|
||||
ownr_ln
|
||||
ownr_co_nm
|
||||
v_model_desc
|
||||
v_make_desc
|
||||
v_model_yr
|
||||
ro_number
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DELETE_TIME_TICKET = gql`
|
||||
mutation DELETE_TIME_TICKET($id: uuid!) {
|
||||
delete_timetickets_by_pk(id: $id) {
|
||||
|
||||
Reference in New Issue
Block a user