generalized job checklist functionality & created deliver checklist. BOD-376
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user