Fixed job costing bugs. BOD-247

This commit is contained in:
Patrick Fic
2020-08-11 13:26:53 -07:00
parent 1715c08296
commit 1e3bf19cd3
12 changed files with 134 additions and 27 deletions

View File

@@ -113,13 +113,7 @@ export const UPDATE_JOB_LINE = gql`
export const GET_JOB_LINES_TO_ENTER_INVOICE = gql`
query GET_JOB_LINES_TO_ENTER_INVOICE($id: uuid!) {
joblines(
where: {
jobid: { _eq: $id }
oem_partno: { _neq: "" }
act_price: { _gt: "0" }
}
) {
joblines(where: { jobid: { _eq: $id } }) {
id
line_desc
part_type
@@ -136,3 +130,9 @@ export const GET_JOB_LINES_TO_ENTER_INVOICE = gql`
}
}
`;
// oem_partno: {
// _neq: "";
// }
// act_price: {
// _gt: "0";
// }

View File

@@ -202,6 +202,12 @@ export const QUERY_JOB_COSTING_DETAILS = gql`
quantity
}
}
timetickets {
id
rate
cost_center
actualhrs
}
}
}
`;