WIP Transfer.

This commit is contained in:
Patrick Fic
2020-09-21 14:40:16 -07:00
parent cb337b557c
commit 35650cec24
3 changed files with 44 additions and 27 deletions

View File

@@ -184,6 +184,7 @@ query QUERY_UPCOMING_APPOINTMENTS($now: timestamptz!, $jobId: uuid!) {
jobs_by_pk(id: $jobId) {
bodyshop {
ssbuckets
target_touchtime
}
jobhrs: joblines_aggregate {
aggregate {
@@ -207,13 +208,26 @@ query QUERY_UPCOMING_APPOINTMENTS($now: timestamptz!, $jobId: uuid!) {
}
}
}
productionview {
jobs(where: {inproduction: {_eq: true}}) {
id
labhrs
larhrs
scheduled_completion
labhrs: joblines_aggregate(where: {mod_lbr_ty: {_eq: "LAB"}}) {
aggregate {
sum {
mod_lb_hrs
}
}
}
larhrs: joblines_aggregate(where: {mod_lbr_ty: {_eq: "LAR"}}) {
aggregate {
sum {
mod_lb_hrs
}
}
}
}
} `;
}
`;
exports.QUERY_EMPLOYEE_PIN = `query QUERY_EMPLOYEE_PIN($shopId: uuid!, $employeeId: String!) {
employees(where: {_and: {shopid: {_eq: $shopId}, employee_number: {_eq: $employeeId}}}) {