only use list if relevance is type 2 exact match
This commit is contained in:
parent
15c60c629d
commit
7919160ecc
@ -20,7 +20,7 @@ export function apply_guidance(doc: any) {
|
|||||||
let finalPrice = null;
|
let finalPrice = null;
|
||||||
const inflation = Math.max(...Object.keys(iidx).map(Number));
|
const inflation = Math.max(...Object.keys(iidx).map(Number));
|
||||||
const inflationFactor = iidx[inflation] + 1;
|
const inflationFactor = iidx[inflation] + 1;
|
||||||
const list = doc.pricing?.list && doc.product?.itemrel === 1 ? doc.pricing?.list : null;
|
const list = doc.pricing?.list && doc.product?.itemrel === "2" ? doc.pricing?.list : null;
|
||||||
// ------if there is not target price just exit---------------
|
// ------if there is not target price just exit---------------
|
||||||
if (!targetPrice) {
|
if (!targetPrice) {
|
||||||
anchorSource = "No target pricing setup";
|
anchorSource = "No target pricing setup";
|
||||||
@ -83,6 +83,7 @@ export function apply_guidance(doc: any) {
|
|||||||
guidance.FinalReason = finalReason;
|
guidance.FinalReason = finalReason;
|
||||||
guidance.BridgePremium = bridgePremium;
|
guidance.BridgePremium = bridgePremium;
|
||||||
guidance.TargetPrice = targetPrice;
|
guidance.TargetPrice = targetPrice;
|
||||||
|
guidance.ListPrice = list;
|
||||||
doc.guidance = guidance;
|
doc.guidance = guidance;
|
||||||
return doc;
|
return doc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user