Added paint and body hours to schedule BOD-394

This commit is contained in:
Patrick Fic
2020-09-16 14:08:28 -07:00
parent 929523bd30
commit 7140d541d5
2 changed files with 40 additions and 5 deletions

View File

@@ -33,6 +33,20 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
v_model_yr
v_make_desc
v_model_desc
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
}
}
}
}
}
}
@@ -79,6 +93,20 @@ export const QUERY_APPOINTMENT_BY_DATE = gql`
v_make_desc
v_model_desc
}
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
}
}
}
}
}
}