Added shift clock framework + login on tech console BOD-97 BOD-188
This commit is contained in:
@@ -8,6 +8,9 @@ export const QUERY_BODYSHOP = gql`
|
||||
authid
|
||||
email
|
||||
dashboardlayout
|
||||
employee {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
address1
|
||||
|
||||
@@ -14,6 +14,7 @@ export const QUERY_EMPLOYEES = gql`
|
||||
cost_center
|
||||
base_rate
|
||||
pin
|
||||
user_email
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -43,6 +44,7 @@ export const UPDATE_EMPLOYEE = gql`
|
||||
cost_center
|
||||
base_rate
|
||||
pin
|
||||
user_email
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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