feature/IO-3255-simplified-parts-management - Checkpoint
This commit is contained in:
@@ -106,7 +106,9 @@ const partsManagementVehicleDamageEstimateAddRq = async (req, res) => {
|
|||||||
const est_ct_fn = est_fn;
|
const est_ct_fn = est_fn;
|
||||||
const est_ct_ln = est_ln;
|
const est_ct_ln = est_ln;
|
||||||
|
|
||||||
|
// TODO: SHould be the estimator insurance company name est_co_name
|
||||||
const est_aff = rq.AdminInfo?.Estimator?.Affiliation || null;
|
const est_aff = rq.AdminInfo?.Estimator?.Affiliation || null;
|
||||||
|
|
||||||
const estComms = Array.isArray(estParty.ContactInfo?.Communications)
|
const estComms = Array.isArray(estParty.ContactInfo?.Communications)
|
||||||
? estParty.ContactInfo.Communications
|
? estParty.ContactInfo.Communications
|
||||||
: [estParty.ContactInfo?.Communications || {}];
|
: [estParty.ContactInfo?.Communications || {}];
|
||||||
@@ -146,7 +148,6 @@ const partsManagementVehicleDamageEstimateAddRq = async (req, res) => {
|
|||||||
const v_model_desc = desc.ModelName || null;
|
const v_model_desc = desc.ModelName || null;
|
||||||
const body_style = desc.BodyStyle || null;
|
const body_style = desc.BodyStyle || null;
|
||||||
const engine_desc = desc.EngineDesc || null;
|
const engine_desc = desc.EngineDesc || null;
|
||||||
const production_date = desc.ProductionDate || null;
|
|
||||||
const v_options = desc.SubModelDesc || null;
|
const v_options = desc.SubModelDesc || null;
|
||||||
const v_type = desc.FuelType || null;
|
const v_type = desc.FuelType || null;
|
||||||
const v_cond = rq.VehicleInfo?.Condition?.DrivableInd;
|
const v_cond = rq.VehicleInfo?.Condition?.DrivableInd;
|
||||||
@@ -206,7 +207,8 @@ const partsManagementVehicleDamageEstimateAddRq = async (req, res) => {
|
|||||||
|
|
||||||
// claim & policy
|
// claim & policy
|
||||||
clm_no,
|
clm_no,
|
||||||
status,
|
// default job: bodyshop.md_status.default_open
|
||||||
|
status: status || "OPEN",
|
||||||
clm_total: cieca_ttl,
|
clm_total: cieca_ttl,
|
||||||
policy_no,
|
policy_no,
|
||||||
ded_amt,
|
ded_amt,
|
||||||
@@ -252,9 +254,7 @@ const partsManagementVehicleDamageEstimateAddRq = async (req, res) => {
|
|||||||
servicing_dealer_contact,
|
servicing_dealer_contact,
|
||||||
|
|
||||||
// stash any extra CIECA stuff we didn’t map above
|
// stash any extra CIECA stuff we didn’t map above
|
||||||
production_vars: {
|
production_vars: {},
|
||||||
documentVersions: [] // we’ve flattened these
|
|
||||||
},
|
|
||||||
|
|
||||||
// nested relationships
|
// nested relationships
|
||||||
vehicle: { data: vehicleData },
|
vehicle: { data: vehicleData },
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<!-- Request & Claim -->
|
<!-- Request & Claim -->
|
||||||
<RqUID>17e5ccc4-cdfb-4cf3-a08d-ecfa8d145d6f</RqUID>
|
<RqUID>17e5ccc4-cdfb-4cf3-a08d-ecfa8d145d6f</RqUID>
|
||||||
<RefClaimNum>200</RefClaimNum>
|
<RefClaimNum>CLM123</RefClaimNum>
|
||||||
|
|
||||||
<!-- Document metadata -->
|
<!-- Document metadata -->
|
||||||
<DocumentInfo>
|
<DocumentInfo>
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
<NonOEM>
|
<NonOEM>
|
||||||
<NonOEMPartNum>NONOEM123</NonOEMPartNum>
|
<NonOEMPartNum>NONOEM123</NonOEMPartNum>
|
||||||
<NonOEMPartPrice>180.00</NonOEMPartPrice>
|
<NonOEMPartPrice>180.00</NonOEMPartPrice>
|
||||||
<SupplierRefNum>VEND1</SupplierRefNum>
|
<SupplierRefNum>4c2ff2c4-af2b-4a5f-970e-3e026f0bbf9f</SupplierRefNum>
|
||||||
<PartSelectedInd>1</PartSelectedInd>
|
<PartSelectedInd>1</PartSelectedInd>
|
||||||
</NonOEM>
|
</NonOEM>
|
||||||
<TaxableInd>1</TaxableInd>
|
<TaxableInd>1</TaxableInd>
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
<LineMemo>Replace bumper</LineMemo>
|
<LineMemo>Replace bumper</LineMemo>
|
||||||
</DamageLineInfo>
|
</DamageLineInfo>
|
||||||
|
|
||||||
<!-- Damage line with glass part -->
|
<!-- Damage line with glass part
|
||||||
<DamageLineInfo>
|
<DamageLineInfo>
|
||||||
<LineNum>2</LineNum>
|
<LineNum>2</LineNum>
|
||||||
<UniqueSequenceNum>1002</UniqueSequenceNum>
|
<UniqueSequenceNum>1002</UniqueSequenceNum>
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
<LaborAmt>370.00</LaborAmt>
|
<LaborAmt>370.00</LaborAmt>
|
||||||
</LaborInfo>
|
</LaborInfo>
|
||||||
<LineMemo>Replace windshield</LineMemo>
|
<LineMemo>Replace windshield</LineMemo>
|
||||||
</DamageLineInfo>
|
</DamageLineInfo> -->
|
||||||
|
|
||||||
<!-- Damage line with sublet info -->
|
<!-- Damage line with sublet info -->
|
||||||
<DamageLineInfo>
|
<DamageLineInfo>
|
||||||
|
|||||||
Reference in New Issue
Block a user