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