import { gql } from "apollo-boost";
import { shopAttributes } from "../../components/fragments.queries";

export const REPORT_QUERY_PARTS_ORDER_BY_PK = gql`
  query REPORT_QUERY_PARTS_ORDER_BY_PK($id: uuid!) {
    parts_orders_by_pk(id: $id) {
      job {
        id
        vehicle {
          id
          v_model_desc
          v_make_desc
          v_model_yr
          v_vin
        }
        ro_number
        est_number
      }
      id
      deliver_by
      parts_order_lines {
        id
        db_price
        act_price
        line_desc
        line_remarks
        oem_partno
        status
      }
      status
      user_email
    }
    ...shopData
  }
  ${shopAttributes}
`;
