generalized job checklist functionality & created deliver checklist. BOD-376

This commit is contained in:
Patrick Fic
2020-09-02 15:32:29 -07:00
parent ed788a4b5c
commit 51b6a560a6
39 changed files with 2646 additions and 378 deletions

View File

@@ -59,6 +59,7 @@ export const QUERY_BODYSHOP = gql`
md_categories
enforce_class
md_labor_rates
deliverchecklist
employees {
id
first_name
@@ -124,6 +125,7 @@ export const UPDATE_SHOP = gql`
md_categories
enforce_class
md_labor_rates
deliverchecklist
employees {
id
first_name
@@ -136,11 +138,28 @@ export const UPDATE_SHOP = gql`
}
`;
export const QUERY_INTAKE_CHECKLIST = gql`
query QUERY_INTAKE_CHECKLIST($shopId: uuid!) {
query QUERY_INTAKE_CHECKLIST($shopId: uuid!, $jobId: uuid!) {
bodyshops_by_pk(id: $shopId) {
id
intakechecklist
}
jobs_by_pk(id: $jobId) {
id
ro_number
est_number
}
}
`;
export const QUERY_DELIVER_CHECKLIST = gql`
query QUERY_DELIVER_CHECKLIST($shopId: uuid!, $jobId: uuid!) {
bodyshops_by_pk(id: $shopId) {
id
deliverchecklist
}
jobs_by_pk(id: $jobId) {
id
ro_number
}
}
`;
export const QUERY_STRIPE_ID = gql`

View File

@@ -371,6 +371,7 @@ export const GET_JOB_BY_PK = gql`
tax_registration_number
class
category
deliverchecklist
joblines(where: { jobid: { _eq: $id } }, order_by: { line_no: asc }) {
id
line_no