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"]({
|
||||||
|
|||||||
@@ -14,10 +14,68 @@ 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) {
|
||||||
|
parts_order_lines {
|
||||||
|
jobline {
|
||||||
|
act_price
|
||||||
|
db_ref
|
||||||
|
db_price
|
||||||
|
db_hrs
|
||||||
|
glass_flag
|
||||||
|
id
|
||||||
|
lbr_amt
|
||||||
|
lbr_hrs_j
|
||||||
|
lbr_inc
|
||||||
|
lbr_op
|
||||||
|
lbr_op_j
|
||||||
|
lbr_tax
|
||||||
|
lbr_typ_j
|
||||||
|
line_desc
|
||||||
|
line_ind
|
||||||
|
line_no
|
||||||
|
line_ref
|
||||||
|
location
|
||||||
|
misc_amt
|
||||||
|
misc_sublt
|
||||||
|
misc_tax
|
||||||
|
mod_lb_hrs
|
||||||
|
mod_lbr_ty
|
||||||
|
oem_partno
|
||||||
|
op_code_desc
|
||||||
|
paint_stg
|
||||||
|
paint_tone
|
||||||
|
part_qty
|
||||||
|
part_type
|
||||||
|
price_inc
|
||||||
|
price_j
|
||||||
|
prt_dsmk_m
|
||||||
|
prt_dsmk_p
|
||||||
|
tax_part
|
||||||
|
unq_seq
|
||||||
|
alt_co_id
|
||||||
|
alt_overrd
|
||||||
|
alt_part_i
|
||||||
|
alt_partm
|
||||||
|
alt_partno
|
||||||
|
bett_amt
|
||||||
|
bett_pctg
|
||||||
|
bett_tax
|
||||||
|
bett_type
|
||||||
|
cert_part
|
||||||
|
est_seq
|
||||||
|
}
|
||||||
|
act_price
|
||||||
|
id
|
||||||
|
db_price
|
||||||
|
line_desc
|
||||||
|
quantity
|
||||||
|
}
|
||||||
job {
|
job {
|
||||||
ro_number
|
ro_number
|
||||||
clm_no
|
clm_no
|
||||||
|
asgn_no
|
||||||
asgn_date
|
asgn_date
|
||||||
|
state_tax_rate
|
||||||
|
area_of_damage
|
||||||
asgn_no
|
asgn_no
|
||||||
asgn_type
|
asgn_type
|
||||||
ciecaid
|
ciecaid
|
||||||
@@ -147,57 +205,79 @@ query QUERY_PARTS_ORDER_OEC($id: uuid!) {
|
|||||||
v_model_desc
|
v_model_desc
|
||||||
v_model_yr
|
v_model_yr
|
||||||
v_vin
|
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
|
||||||
}
|
}
|
||||||
parts_order_lines {
|
agt_zip
|
||||||
jobline {
|
agt_st
|
||||||
act_price
|
agt_ph2x
|
||||||
db_ref
|
agt_ph2
|
||||||
db_price
|
agt_ph1x
|
||||||
db_hrs
|
agt_ph1
|
||||||
glass_flag
|
agt_lic_no
|
||||||
id
|
agt_faxx
|
||||||
lbr_amt
|
agt_fax
|
||||||
lbr_hrs_j
|
agt_ea
|
||||||
lbr_inc
|
agt_ctry
|
||||||
lbr_op
|
agt_ct_phx
|
||||||
lbr_op_j
|
agt_ct_ph
|
||||||
lbr_tax
|
agt_ct_ln
|
||||||
lbr_typ_j
|
agt_ct_fn
|
||||||
line_desc
|
agt_co_nm
|
||||||
line_ind
|
agt_co_id
|
||||||
line_no
|
agt_city
|
||||||
line_ref
|
agt_addr1
|
||||||
location
|
agt_addr2
|
||||||
misc_amt
|
adj_g_disc
|
||||||
misc_sublt
|
rate_matd
|
||||||
misc_tax
|
rate_mash
|
||||||
mod_lb_hrs
|
rate_mapa
|
||||||
mod_lbr_ty
|
rate_mahw
|
||||||
oem_partno
|
rate_macs
|
||||||
op_code_desc
|
rate_mabl
|
||||||
paint_stg
|
rate_ma3s
|
||||||
paint_tone
|
rate_ma2t
|
||||||
part_qty
|
rate_ma2s
|
||||||
part_type
|
rate_lau
|
||||||
price_inc
|
rate_las
|
||||||
price_j
|
rate_lar
|
||||||
prt_dsmk_m
|
rate_lam
|
||||||
prt_dsmk_p
|
rate_lag
|
||||||
tax_part
|
rate_laf
|
||||||
unq_seq
|
rate_lae
|
||||||
}
|
rate_lad
|
||||||
act_price
|
rate_lab
|
||||||
id
|
rate_laa
|
||||||
db_price
|
rate_la4
|
||||||
line_desc
|
rate_la3
|
||||||
quantity
|
rate_la2
|
||||||
|
rate_la1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
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