IO-70 OEC WIP.
This commit is contained in:
@@ -244,6 +244,7 @@ export function PartsOrderModalContainer({
|
|||||||
"🚀 ~ file: parts-order-modal.container.jsx ~ line 232 ~ handleFinish ~ oecResponse",
|
"🚀 ~ file: parts-order-modal.container.jsx ~ line 232 ~ handleFinish ~ oecResponse",
|
||||||
oecResponse
|
oecResponse
|
||||||
);
|
);
|
||||||
|
return;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Error OEC.", error);
|
console.log("Error OEC.", error);
|
||||||
notification["error"]({
|
notification["error"]({
|
||||||
|
|||||||
@@ -12,192 +12,272 @@ export const INSERT_NEW_PARTS_ORDERS = gql`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export const QUERY_PARTS_ORDER_OEC = gql`
|
export const QUERY_PARTS_ORDER_OEC = gql`
|
||||||
query QUERY_PARTS_ORDER_OEC($id: uuid!) {
|
query QUERY_PARTS_ORDER_OEC($id: uuid!) {
|
||||||
parts_orders_by_pk(id: $id) {
|
parts_orders_by_pk(id: $id) {
|
||||||
job {
|
parts_order_lines {
|
||||||
ro_number
|
jobline {
|
||||||
clm_no
|
act_price
|
||||||
asgn_date
|
db_ref
|
||||||
asgn_no
|
db_price
|
||||||
asgn_type
|
db_hrs
|
||||||
ciecaid
|
glass_flag
|
||||||
clm_addr1
|
id
|
||||||
clm_city
|
lbr_amt
|
||||||
clm_addr2
|
lbr_hrs_j
|
||||||
clm_ct_fn
|
lbr_inc
|
||||||
clm_ct_ln
|
lbr_op
|
||||||
clm_ct_ph
|
lbr_op_j
|
||||||
clm_ct_phx
|
lbr_tax
|
||||||
clm_ctry
|
lbr_typ_j
|
||||||
clm_ea
|
line_desc
|
||||||
clm_fax
|
line_ind
|
||||||
clm_faxx
|
line_no
|
||||||
clm_ofc_id
|
line_ref
|
||||||
clm_ofc_nm
|
location
|
||||||
clm_ph1
|
misc_amt
|
||||||
clm_ph1x
|
misc_sublt
|
||||||
clm_ph2
|
misc_tax
|
||||||
clm_ph2x
|
mod_lb_hrs
|
||||||
clm_st
|
mod_lbr_ty
|
||||||
clm_title
|
oem_partno
|
||||||
clm_total
|
op_code_desc
|
||||||
clm_zip
|
paint_stg
|
||||||
ded_amt
|
paint_tone
|
||||||
est_addr1
|
part_qty
|
||||||
est_addr2
|
part_type
|
||||||
est_city
|
price_inc
|
||||||
est_co_nm
|
price_j
|
||||||
est_ct_fn
|
prt_dsmk_m
|
||||||
est_ctry
|
prt_dsmk_p
|
||||||
est_ct_ln
|
tax_part
|
||||||
est_ea
|
unq_seq
|
||||||
est_ph1
|
alt_co_id
|
||||||
est_st
|
alt_overrd
|
||||||
est_zip
|
alt_part_i
|
||||||
g_bett_amt
|
alt_partm
|
||||||
id
|
alt_partno
|
||||||
ins_addr1
|
bett_amt
|
||||||
ins_city
|
bett_pctg
|
||||||
ins_addr2
|
bett_tax
|
||||||
ins_co_id
|
bett_type
|
||||||
ins_co_nm
|
cert_part
|
||||||
ins_ct_fn
|
est_seq
|
||||||
ins_ct_ln
|
}
|
||||||
ins_ct_ph
|
|
||||||
ins_ct_phx
|
|
||||||
ins_ctry
|
|
||||||
ins_ea
|
|
||||||
ins_fax
|
|
||||||
ins_faxx
|
|
||||||
ins_memo
|
|
||||||
ins_ph1
|
|
||||||
ins_ph1x
|
|
||||||
ins_ph2
|
|
||||||
ins_ph2x
|
|
||||||
ins_st
|
|
||||||
ins_title
|
|
||||||
ins_zip
|
|
||||||
insd_addr1
|
|
||||||
insd_addr2
|
|
||||||
insd_city
|
|
||||||
insd_co_nm
|
|
||||||
insd_ctry
|
|
||||||
insd_ea
|
|
||||||
insd_fax
|
|
||||||
insd_faxx
|
|
||||||
insd_fn
|
|
||||||
insd_ln
|
|
||||||
insd_ph1
|
|
||||||
insd_ph1x
|
|
||||||
insd_ph2
|
|
||||||
insd_ph2x
|
|
||||||
insd_st
|
|
||||||
insd_title
|
|
||||||
insd_zip
|
|
||||||
job_totals
|
|
||||||
loss_cat
|
|
||||||
loss_date
|
|
||||||
loss_desc
|
|
||||||
loss_of_use
|
|
||||||
loss_type
|
|
||||||
ownr_addr1
|
|
||||||
ownr_addr2
|
|
||||||
ownr_city
|
|
||||||
ownr_co_nm
|
|
||||||
ownr_ctry
|
|
||||||
ownr_ea
|
|
||||||
ownr_fax
|
|
||||||
ownr_faxx
|
|
||||||
ownr_ph1
|
|
||||||
ownr_fn
|
|
||||||
ownr_ln
|
|
||||||
ownr_ph1x
|
|
||||||
ownr_ph2
|
|
||||||
ownr_ph2x
|
|
||||||
ownr_st
|
|
||||||
ownr_title
|
|
||||||
ownr_zip
|
|
||||||
parts_tax_rates
|
|
||||||
pay_amt
|
|
||||||
pay_date
|
|
||||||
pay_type
|
|
||||||
pay_chknm
|
|
||||||
payee_nms
|
|
||||||
plate_no
|
|
||||||
plate_st
|
|
||||||
po_number
|
|
||||||
policy_no
|
|
||||||
tax_lbr_rt
|
|
||||||
tax_levies_rt
|
|
||||||
tax_paint_mat_rt
|
|
||||||
tax_predis
|
|
||||||
tax_prethr
|
|
||||||
tax_pstthr
|
|
||||||
tax_registration_number
|
|
||||||
tax_str_rt
|
|
||||||
tax_shop_mat_rt
|
|
||||||
tax_sub_rt
|
|
||||||
tax_thramt
|
|
||||||
tax_tow_rt
|
|
||||||
theft_ind
|
|
||||||
tlos_ind
|
|
||||||
towin
|
|
||||||
v_color
|
|
||||||
v_make_desc
|
|
||||||
v_model_desc
|
|
||||||
v_model_yr
|
|
||||||
v_vin
|
|
||||||
}
|
|
||||||
parts_order_lines {
|
|
||||||
jobline {
|
|
||||||
act_price
|
act_price
|
||||||
db_ref
|
|
||||||
db_price
|
|
||||||
db_hrs
|
|
||||||
glass_flag
|
|
||||||
id
|
id
|
||||||
lbr_amt
|
db_price
|
||||||
lbr_hrs_j
|
|
||||||
lbr_inc
|
|
||||||
lbr_op
|
|
||||||
lbr_op_j
|
|
||||||
lbr_tax
|
|
||||||
lbr_typ_j
|
|
||||||
line_desc
|
line_desc
|
||||||
line_ind
|
quantity
|
||||||
line_no
|
}
|
||||||
line_ref
|
job {
|
||||||
location
|
ro_number
|
||||||
misc_amt
|
clm_no
|
||||||
misc_sublt
|
asgn_no
|
||||||
misc_tax
|
asgn_date
|
||||||
mod_lb_hrs
|
state_tax_rate
|
||||||
mod_lbr_ty
|
area_of_damage
|
||||||
oem_partno
|
asgn_no
|
||||||
op_code_desc
|
asgn_type
|
||||||
paint_stg
|
ciecaid
|
||||||
paint_tone
|
clm_addr1
|
||||||
part_qty
|
clm_city
|
||||||
part_type
|
clm_addr2
|
||||||
price_inc
|
clm_ct_fn
|
||||||
price_j
|
clm_ct_ln
|
||||||
prt_dsmk_m
|
clm_ct_ph
|
||||||
prt_dsmk_p
|
clm_ct_phx
|
||||||
tax_part
|
clm_ctry
|
||||||
unq_seq
|
clm_ea
|
||||||
|
clm_fax
|
||||||
|
clm_faxx
|
||||||
|
clm_ofc_id
|
||||||
|
clm_ofc_nm
|
||||||
|
clm_ph1
|
||||||
|
clm_ph1x
|
||||||
|
clm_ph2
|
||||||
|
clm_ph2x
|
||||||
|
clm_st
|
||||||
|
clm_title
|
||||||
|
clm_total
|
||||||
|
clm_zip
|
||||||
|
ded_amt
|
||||||
|
est_addr1
|
||||||
|
est_addr2
|
||||||
|
est_city
|
||||||
|
est_co_nm
|
||||||
|
est_ct_fn
|
||||||
|
est_ctry
|
||||||
|
est_ct_ln
|
||||||
|
est_ea
|
||||||
|
est_ph1
|
||||||
|
est_st
|
||||||
|
est_zip
|
||||||
|
g_bett_amt
|
||||||
|
id
|
||||||
|
ins_addr1
|
||||||
|
ins_city
|
||||||
|
ins_addr2
|
||||||
|
ins_co_id
|
||||||
|
ins_co_nm
|
||||||
|
ins_ct_fn
|
||||||
|
ins_ct_ln
|
||||||
|
ins_ct_ph
|
||||||
|
ins_ct_phx
|
||||||
|
ins_ctry
|
||||||
|
ins_ea
|
||||||
|
ins_fax
|
||||||
|
ins_faxx
|
||||||
|
ins_memo
|
||||||
|
ins_ph1
|
||||||
|
ins_ph1x
|
||||||
|
ins_ph2
|
||||||
|
ins_ph2x
|
||||||
|
ins_st
|
||||||
|
ins_title
|
||||||
|
ins_zip
|
||||||
|
insd_addr1
|
||||||
|
insd_addr2
|
||||||
|
insd_city
|
||||||
|
insd_co_nm
|
||||||
|
insd_ctry
|
||||||
|
insd_ea
|
||||||
|
insd_fax
|
||||||
|
insd_faxx
|
||||||
|
insd_fn
|
||||||
|
insd_ln
|
||||||
|
insd_ph1
|
||||||
|
insd_ph1x
|
||||||
|
insd_ph2
|
||||||
|
insd_ph2x
|
||||||
|
insd_st
|
||||||
|
insd_title
|
||||||
|
insd_zip
|
||||||
|
job_totals
|
||||||
|
loss_cat
|
||||||
|
loss_date
|
||||||
|
loss_desc
|
||||||
|
loss_of_use
|
||||||
|
loss_type
|
||||||
|
ownr_addr1
|
||||||
|
ownr_addr2
|
||||||
|
ownr_city
|
||||||
|
ownr_co_nm
|
||||||
|
ownr_ctry
|
||||||
|
ownr_ea
|
||||||
|
ownr_fax
|
||||||
|
ownr_faxx
|
||||||
|
ownr_ph1
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
ownr_ph1x
|
||||||
|
ownr_ph2
|
||||||
|
ownr_ph2x
|
||||||
|
ownr_st
|
||||||
|
ownr_title
|
||||||
|
ownr_zip
|
||||||
|
parts_tax_rates
|
||||||
|
pay_amt
|
||||||
|
pay_date
|
||||||
|
pay_type
|
||||||
|
pay_chknm
|
||||||
|
payee_nms
|
||||||
|
plate_no
|
||||||
|
plate_st
|
||||||
|
po_number
|
||||||
|
policy_no
|
||||||
|
tax_lbr_rt
|
||||||
|
tax_levies_rt
|
||||||
|
tax_paint_mat_rt
|
||||||
|
tax_predis
|
||||||
|
tax_prethr
|
||||||
|
tax_pstthr
|
||||||
|
tax_registration_number
|
||||||
|
tax_str_rt
|
||||||
|
tax_shop_mat_rt
|
||||||
|
tax_sub_rt
|
||||||
|
tax_thramt
|
||||||
|
tax_tow_rt
|
||||||
|
theft_ind
|
||||||
|
tlos_ind
|
||||||
|
towin
|
||||||
|
v_color
|
||||||
|
v_make_desc
|
||||||
|
v_model_desc
|
||||||
|
v_model_yr
|
||||||
|
v_vin
|
||||||
|
vehicle {
|
||||||
|
v_bstyle
|
||||||
|
v_type
|
||||||
|
v_trimcode
|
||||||
|
v_tone
|
||||||
|
v_stage
|
||||||
|
v_prod_dt
|
||||||
|
v_options
|
||||||
|
v_paint_codes
|
||||||
|
v_model_yr
|
||||||
|
v_model_desc
|
||||||
|
v_mldgcode
|
||||||
|
v_makecode
|
||||||
|
v_make_desc
|
||||||
|
v_engine
|
||||||
|
v_cond
|
||||||
|
v_color
|
||||||
|
trim_color
|
||||||
|
shopid
|
||||||
|
plate_no
|
||||||
|
plate_st
|
||||||
|
db_v_code
|
||||||
|
v_vin
|
||||||
|
}
|
||||||
|
agt_zip
|
||||||
|
agt_st
|
||||||
|
agt_ph2x
|
||||||
|
agt_ph2
|
||||||
|
agt_ph1x
|
||||||
|
agt_ph1
|
||||||
|
agt_lic_no
|
||||||
|
agt_faxx
|
||||||
|
agt_fax
|
||||||
|
agt_ea
|
||||||
|
agt_ctry
|
||||||
|
agt_ct_phx
|
||||||
|
agt_ct_ph
|
||||||
|
agt_ct_ln
|
||||||
|
agt_ct_fn
|
||||||
|
agt_co_nm
|
||||||
|
agt_co_id
|
||||||
|
agt_city
|
||||||
|
agt_addr1
|
||||||
|
agt_addr2
|
||||||
|
adj_g_disc
|
||||||
|
rate_matd
|
||||||
|
rate_mash
|
||||||
|
rate_mapa
|
||||||
|
rate_mahw
|
||||||
|
rate_macs
|
||||||
|
rate_mabl
|
||||||
|
rate_ma3s
|
||||||
|
rate_ma2t
|
||||||
|
rate_ma2s
|
||||||
|
rate_lau
|
||||||
|
rate_las
|
||||||
|
rate_lar
|
||||||
|
rate_lam
|
||||||
|
rate_lag
|
||||||
|
rate_laf
|
||||||
|
rate_lae
|
||||||
|
rate_lad
|
||||||
|
rate_lab
|
||||||
|
rate_laa
|
||||||
|
rate_la4
|
||||||
|
rate_la3
|
||||||
|
rate_la2
|
||||||
|
rate_la1
|
||||||
}
|
}
|
||||||
act_price
|
|
||||||
id
|
|
||||||
db_price
|
|
||||||
line_desc
|
|
||||||
quantity
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
export const DELETE_PARTS_ORDER = gql`
|
export const DELETE_PARTS_ORDER = gql`
|
||||||
mutation DELETE_PARTS_ORDER($partsOrderId: uuid!) {
|
mutation DELETE_PARTS_ORDER($partsOrderId: uuid!) {
|
||||||
delete_parts_orders_by_pk(id: $partsOrderId) {
|
delete_parts_orders_by_pk(id: $partsOrderId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user