Files
bodyshop/client/src/graphql/jobs-lines.queries.js
2020-02-10 19:19:48 -08:00

33 lines
569 B
JavaScript

import { gql } from "apollo-boost";
export const GET_JOB_LINES_BY_PK = gql`
query GET_JOB_LINES_BY_PK($id: uuid!) {
joblines(where: { jobid: { _eq: $id } }, order_by: { unq_seq: asc }) {
id
unq_seq
line_ind
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
allocations {
id
hours
employee {
id
first_name
last_name
}
}
}
}
`;