Query correction for GET_JOB_BY_PK

This commit is contained in:
Allan Carr
2024-01-26 20:29:37 -08:00
parent 04728690ca
commit 2f83b0baa7

View File

@@ -549,12 +549,12 @@ export const GET_JOB_BY_PK = gql`
actual_delivery actual_delivery
actual_in actual_in
adjustment_bottom_line adjustment_bottom_line
alt_transport
area_of_damage area_of_damage
auto_add_ats auto_add_ats
available_jobs { available_jobs {
id id
} }
alt_transport
ca_bc_pvrt ca_bc_pvrt
ca_customer_gst ca_customer_gst
ca_gst_registrant ca_gst_registrant
@@ -570,10 +570,13 @@ export const GET_JOB_BY_PK = gql`
year year
} }
id id
scheduledreturn
start start
status status
scheduledreturn
} }
cieca_pfl
cieca_pfo
cieca_pft
cieca_ttl cieca_ttl
class class
clm_no clm_no
@@ -638,8 +641,8 @@ export const GET_JOB_BY_PK = gql`
ins_city ins_city
ins_co_id ins_co_id
ins_co_nm ins_co_nm
ins_ct_ln
ins_ct_fn ins_ct_fn
ins_ct_ln
ins_ea ins_ea
ins_ph1 ins_ph1
intakechecklist intakechecklist
@@ -648,9 +651,11 @@ export const GET_JOB_BY_PK = gql`
job_totals job_totals
joblines(where: { removed: { _eq: false } }, order_by: { line_no: asc }) { joblines(where: { removed: { _eq: false } }, order_by: { line_no: asc }) {
act_price act_price
act_price_before_ppc
ah_detail_line ah_detail_line
alt_partm alt_partm
alt_partno alt_partno
assigned_team
billlines(limit: 1, order_by: { bill: { date: desc } }) { billlines(limit: 1, order_by: { bill: { date: desc } }) {
actual_cost actual_cost
actual_price actual_price
@@ -662,8 +667,8 @@ export const GET_JOB_BY_PK = gql`
name name
} }
} }
joblineid
id id
joblineid
quantity quantity
} }
convertedtolbr convertedtolbr
@@ -686,6 +691,14 @@ export const GET_JOB_BY_PK = gql`
notes notes
oem_partno oem_partno
op_code_desc op_code_desc
parts_dispatch_lines(limit: 1, order_by: { accepted_at: desc }) {
accepted_at
id
parts_dispatch {
employeeid
id
}
}
part_qty part_qty
part_type part_type
prt_dsmk_m prt_dsmk_m
@@ -707,27 +720,27 @@ export const GET_JOB_BY_PK = gql`
other_amount_payable other_amount_payable
owner { owner {
id id
ownr_fn
ownr_ln
ownr_co_nm
ownr_ea
ownr_addr1 ownr_addr1
ownr_addr2 ownr_addr2
ownr_city ownr_city
ownr_st ownr_co_nm
ownr_zip
ownr_ctry ownr_ctry
ownr_ea
ownr_fn
ownr_ln
ownr_ph1 ownr_ph1
ownr_ph2 ownr_ph2
ownr_st
ownr_zip
tax_number tax_number
} }
owner_owing
ownerid ownerid
owner_owing
ownr_addr1 ownr_addr1
ownr_addr2 ownr_addr2
ownr_ctry
ownr_city ownr_city
ownr_co_nm ownr_co_nm
ownr_ctry
ownr_ea ownr_ea
ownr_fn ownr_fn
ownr_ln ownr_ln
@@ -778,17 +791,17 @@ export const GET_JOB_BY_PK = gql`
rate_mapa rate_mapa
rate_mash rate_mash
rate_matd rate_matd
regie_number
referral_source referral_source
referral_source_extra referral_source_extra
regie_number
remove_from_ar remove_from_ar
ro_number ro_number
scheduled_completion scheduled_completion
scheduled_delivery scheduled_delivery
scheduled_in scheduled_in
selling_dealer selling_dealer
servicing_dealer
selling_dealer_contact selling_dealer_contact
servicing_dealer
servicing_dealer_contact servicing_dealer_contact
special_coverage_policy special_coverage_policy
state_tax_rate state_tax_rate
@@ -807,12 +820,11 @@ export const GET_JOB_BY_PK = gql`
towing_payable towing_payable
unit_number unit_number
updated_at updated_at
v_vin v_color
v_make_desc
v_model_yr v_model_yr
v_model_desc v_model_desc
v_make_desc v_vin
v_color
vehicleid
vehicle { vehicle {
id id
jobs { jobs {
@@ -822,87 +834,16 @@ export const GET_JOB_BY_PK = gql`
status status
} }
notes notes
location
tax_part
db_ref
manual_line
prt_dsmk_p
prt_dsmk_m
ioucreated
convertedtolbr
ah_detail_line
act_price_before_ppc
critical
parts_dispatch_lines(limit: 1, order_by: { accepted_at: desc }) {
id
accepted_at
parts_dispatch {
id
employeeid
}
}
assigned_team
billlines(limit: 1, order_by: { bill: { date: desc } }) {
id
quantity
actual_cost
actual_price
joblineid
bill {
id
invoice_number
vendor {
id
name
}
}
}
plate_no plate_no
plate_st plate_st
v_color v_color
v_make_desc v_make_desc
v_model_desc
v_model_yr v_model_yr
v_model_desc
v_paint_codes v_paint_codes
v_vin v_vin
} }
payments { vehicleid
id
jobid
amount
payer
paymentnum
created_at
transactionid
memo
date
type
exportedat
}
cccontracts {
id
status
start
scheduledreturn
agreementnumber
courtesycar {
id
make
model
year
plate
fleetnumber
}
}
cieca_ttl
cieca_pfo
cieca_pfl
cieca_pft
materials
csiinvites {
id
completedon
}
voided voided
} }
} }