CASH-291
CASH-291 cannot recreate locally. adding some debug info to try and determine in dev/sys or qa
This commit is contained in:
parent
6f9f49992e
commit
75345b9f9d
1 changed files with 32 additions and 4 deletions
|
|
@ -367,10 +367,18 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
return (
|
||||
baseMixin.methods.getTierOnePackagePrice(lineItemsForCalculatingPrice) >
|
||||
insuranceThreshold
|
||||
); // compare base price vs arbitrary threshold (representing insurance price)
|
||||
const tierOnePrice = baseMixin.methods.getTierOnePackagePrice(lineItemsForCalculatingPrice);
|
||||
// prettier-ignore
|
||||
{
|
||||
if (store.getters.applicationUser.loggingOption) {
|
||||
console.log(new Date() + " tierOnePrice type: " + typeof tierOnePrice);
|
||||
console.log(new Date() + " insuranceThreshold type: " + typeof insuranceThreshold);
|
||||
console.log(new Date() + " tierOnePrice comparison: " + tierOnePrice + " > " + insuranceThreshold + "=" + (tierOnePrice > insuranceThreshold));
|
||||
}
|
||||
}
|
||||
|
||||
// compare base price vs arbitrary threshold (representing insurance price)
|
||||
return (tierOnePrice > insuranceThreshold);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
@ -397,6 +405,12 @@ export default {
|
|||
}
|
||||
|
||||
if (isExternalParameter === externalParameterStatus.NOT_SET) {
|
||||
// prettier-ignore
|
||||
{
|
||||
if (store.getters.applicationUser.loggingOption) {
|
||||
console.log(new Date() + "quote.vue tab select EXTERNAL not set");
|
||||
}
|
||||
}
|
||||
// there are no active or inactive external parameters; use internal threshold
|
||||
if (internalThreshold) thresholdToUse = internalThreshold;
|
||||
|
||||
|
|
@ -408,6 +422,13 @@ export default {
|
|||
} else {
|
||||
// user came from an external source, however, the externalParms may have been reset on service-zip, property-questions, etc...
|
||||
if (getBoolFromString(store.getters.externalParameterQuote?.isInsurance)) {
|
||||
// prettier-ignore
|
||||
{
|
||||
if (store.getters.applicationUser.loggingOption) {
|
||||
console.log(new Date() + "quote.vue tab select EXTERNAL ISINSURANCE");
|
||||
}
|
||||
}
|
||||
|
||||
// did user intentionally select insurance?
|
||||
vm.isInsuranceSelected = true;
|
||||
vm.servicePackage = store.getters.externalParameterQuote.servicePackage;
|
||||
|
|
@ -427,6 +448,13 @@ export default {
|
|||
} else {
|
||||
if (externalThreshold) thresholdToUse = externalThreshold;
|
||||
|
||||
// prettier-ignore
|
||||
{
|
||||
if (store.getters.applicationUser.loggingOption) {
|
||||
console.log(new Date() + "quote.vue tab select NOT EXTERNAL");
|
||||
}
|
||||
}
|
||||
|
||||
vm.isInsuranceSelected = getIsInsuranceSelectedValue(
|
||||
vm.availableLineItems,
|
||||
thresholdToUse
|
||||
|
|
|
|||
Loading…
Reference in a new issue