Added predictive completion time based on cycle times for job scheduling. BOD-401

This commit is contained in:
Patrick Fic
2020-09-17 14:28:48 -07:00
parent 88559e95a3
commit cb337b557c
19 changed files with 572 additions and 101 deletions

View File

@@ -69,6 +69,7 @@ export const QUERY_BODYSHOP = gql`
enforce_class
md_labor_rates
deliverchecklist
target_touchtime
employees {
id
first_name
@@ -136,6 +137,7 @@ export const UPDATE_SHOP = gql`
enforce_class
md_labor_rates
deliverchecklist
target_touchtime
employees {
id
first_name

View File

@@ -121,6 +121,28 @@ export const SUBSCRIPTION_JOBS_IN_PRODUCTION = gql`
}
`;
export const QUERY_LBR_HRS_BY_PK = gql`
query QUERY_LBR_HRS_BY_PK($id: uuid!) {
jobs_by_pk(id: $id) {
id
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
}
}
}
}
}
`;
export const QUERY_JOB_COSTING_DETAILS = gql`
query QUERY_JOB_COSTING_DETAILS($id: uuid!) {
jobs_by_pk(id: $id) {