feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration - Checkpoint
This commit is contained in:
@@ -61,7 +61,6 @@ const normalizeCustomerCandidates = (res, { ownersSet = null } = {}) => {
|
||||
|
||||
const chosen = arr.find((a) => (a?.Type || a?.type || "").toString().toUpperCase() === "P") || arr[0];
|
||||
|
||||
// NEW: include County
|
||||
const line1 = chosen?.Addr1 ?? chosen?.AddressLine1 ?? chosen?.Line1 ?? chosen?.Street1 ?? undefined;
|
||||
const line2 = chosen?.Addr2 ?? chosen?.AddressLine2 ?? chosen?.Line2 ?? chosen?.Street2 ?? undefined;
|
||||
const city = chosen?.City ?? chosen?.city ?? undefined;
|
||||
@@ -152,10 +151,7 @@ const readAdvisorNo = (payload, cached) => {
|
||||
const tx = payload?.txEnvelope || payload?.envelope || {};
|
||||
|
||||
const get = (v) => (v != null && String(v).trim() !== "" ? String(v).trim() : null);
|
||||
|
||||
let value = get(tx?.advisorNo) || get(payload?.advisorNo) || get(cached) || null;
|
||||
|
||||
return value;
|
||||
return get(tx?.advisorNo) || get(payload?.advisorNo) || get(cached) || null;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -170,7 +166,7 @@ const RRCacheEnums = {
|
||||
VINCandidates: "RR.VINCandidates",
|
||||
SelectedVin: "RR.SelectedVin",
|
||||
ExportResult: "RR.ExportResult",
|
||||
PendingRO: "RR.PendingRO" // NEW: cache created RO to finalize later
|
||||
PendingRO: "RR.PendingRO"
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user