BOD-23 Added schema changes for time tickets + redux config for time ticket modal + scaffolding for time ticket modal.

This commit is contained in:
Patrick Fic
2020-04-14 17:38:05 -07:00
parent 91af10eef2
commit 325a82ac86
27 changed files with 829 additions and 9 deletions

View File

@@ -45,6 +45,26 @@ export const GET_JOB_LINES_BY_PK = gql`
}
`;
export const GET_JOB_LINES_BY_PK_MINIMAL = gql`
query GET_JOB_LINES_BY_PK_MINIMAL($id: uuid!) {
joblines(where: { jobid: { _eq: $id } }, order_by: { unq_seq: asc }) {
id
line_desc
part_type
oem_partno
db_price
act_price
part_qty
mod_lbr_ty
db_hrs
mod_lb_hrs
lbr_op
lbr_amt
op_code_desc
}
}
`;
export const UPDATE_JOB_LINE_STATUS = gql`
mutation UPDATE_JOB_LINE_STATUS($ids: [uuid!]!, $status: String!) {
update_joblines(where: { id: { _in: $ids } }, _set: { status: $status }) {