IO-795 Resolve parts reconciliation issues.

This commit is contained in:
Patrick Fic
2021-03-23 12:58:27 -07:00
parent 7b129076e9
commit 0f8fe525a4
11 changed files with 131 additions and 12 deletions

View File

@@ -580,7 +580,66 @@ export const GET_JOB_BY_PK = gql`
}
}
`;
export const GET_JOB_RECONCILIATION_BY_PK = gql`
query GET_JOB_RECONCILIATION_BY_PK($id: uuid!) {
bills(where: { jobid: { _eq: $id } }) {
id
vendorid
vendor {
id
name
}
total
invoice_number
date
federal_tax_rate
state_tax_rate
local_tax_rate
is_credit_memo
isinhouse
exported
billlines {
actual_price
quantity
actual_cost
cost_center
id
joblineid
line_desc
applicable_taxes
deductedfromlbr
}
}
jobs_by_pk(id: $id) {
id
joblines(order_by: { line_no: asc }) {
id
removed
line_no
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
status
notes
location
tax_part
db_ref
manual_line
}
}
}
`;
export const QUERY_JOB_CARD_DETAILS = gql`
query QUERY_JOB_CARD_DETAILS($id: uuid!) {
jobs_by_pk(id: $id) {