Removed references to allocations objects. Added new fields to job for employee assignment + created new component. BOD-100

This commit is contained in:
Patrick Fic
2020-07-16 13:59:27 -07:00
parent bbc0359e3a
commit fbb7bbad15
37 changed files with 2127 additions and 55 deletions

View File

@@ -33,15 +33,6 @@ export const GET_JOB_LINES_BY_PK = gql`
}
}
}
allocations {
id
hours
employee {
id
first_name
last_name
}
}
}
}
`;

View File

@@ -75,6 +75,16 @@ export const QUERY_JOBS_IN_PRODUCTION = gql`
production_vars
labhrs
larhrs
employee_body_rel {
id
first_name
last_name
}
employee_refinish_rel {
id
first_name
last_name
}
}
}
`;
@@ -106,6 +116,16 @@ export const SUBSCRIPTION_JOBS_IN_PRODUCTION = gql`
larhrs
partcount
kanbanparent
employee_body_rel {
id
first_name
last_name
}
employee_refinish_rel {
id
first_name
last_name
}
}
}
`;
@@ -114,6 +134,16 @@ export const GET_JOB_BY_PK = gql`
query GET_JOB_BY_PK($id: uuid!) {
jobs_by_pk(id: $id) {
updated_at
employee_body_rel {
id
first_name
last_name
}
employee_refinish_rel {
id
first_name
last_name
}
csr
loss_desc
kmin
@@ -295,6 +325,8 @@ export const QUERY_JOB_CARD_DETAILS = gql`
query QUERY_JOB_CARD_DETAILS($id: uuid!) {
jobs_by_pk(id: $id) {
ownr_fn
employee_body
employee_refinish
ownr_ln
ownr_ph1
ownr_ea
@@ -401,6 +433,8 @@ export const QUERY_TECH_JOB_DETAILS = gql`
date_closed
date_scheduled
date_estimated
employee_body
employee_refinish
joblines {
id
unq_seq
@@ -763,6 +797,8 @@ export const QUERY_ALL_JOB_FIELDS = gql`
status
tax_part
unq_seq
employee_body
employee_refinish
}
}
}
@@ -828,8 +864,6 @@ export const QUERY_ALL_JOBS_PAGINATED = gql`
}
`;
export const QUERY_JOB_CLOSE_DETAILS = gql`
query QUERY_JOB_CLOSE_DETAILS($id: uuid!) {
jobs_by_pk(id: $id) {