Added shift clock framework + login on tech console BOD-97 BOD-188

This commit is contained in:
Patrick Fic
2020-07-16 10:17:23 -07:00
parent bf74d9a042
commit 6a8b59c7e6
67 changed files with 1791 additions and 217 deletions

View File

@@ -8,6 +8,9 @@ export const QUERY_BODYSHOP = gql`
authid
email
dashboardlayout
employee {
id
}
}
}
address1

View File

@@ -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
}
}
}

View File

@@ -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) {