Added jobs in production to schedule and error handling. BOD-371

This commit is contained in:
Patrick Fic
2020-08-27 10:26:54 -07:00
parent 5d58b2d9d7
commit 22ce28dddf
10 changed files with 177 additions and 23 deletions

View File

@@ -971,6 +971,25 @@ export const QUERY_ALL_JOB_FIELDS = gql`
}
}
`;
export const QUERY_JOBS_IN_PRODUCTION = gql`
query QUERY_JOBS_IN_PRODUCTION {
jobs(
where: { inproduction: { _eq: true } }
order_by: { scheduled_completion: asc }
) {
id
ro_number
est_number
ownr_co_nm
ownr_fn
ownr_ln
v_model_yr
v_make_desc
v_model_desc
scheduled_completion
}
}
`;
export const QUERY_ALL_JOBS_PAGINATED = gql`
query QUERY_ALL_JOBS_PAGINATED(