CASH-291 cannot recreate locally.  adding some debug info to try and determine in dev/sys or qa
This commit is contained in:
CarlNation 2025-02-21 14:28:16 -05:00
parent 6f9f49992e
commit 75345b9f9d

View file

@ -367,10 +367,18 @@ export default {
} }
} }
return ( const tierOnePrice = baseMixin.methods.getTierOnePackagePrice(lineItemsForCalculatingPrice);
baseMixin.methods.getTierOnePackagePrice(lineItemsForCalculatingPrice) > // prettier-ignore
insuranceThreshold {
); // compare base price vs arbitrary threshold (representing insurance price) 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; return null;
@ -397,6 +405,12 @@ export default {
} }
if (isExternalParameter === externalParameterStatus.NOT_SET) { 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 // there are no active or inactive external parameters; use internal threshold
if (internalThreshold) thresholdToUse = internalThreshold; if (internalThreshold) thresholdToUse = internalThreshold;
@ -408,6 +422,13 @@ export default {
} else { } else {
// user came from an external source, however, the externalParms may have been reset on service-zip, property-questions, etc... // 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)) { 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? // did user intentionally select insurance?
vm.isInsuranceSelected = true; vm.isInsuranceSelected = true;
vm.servicePackage = store.getters.externalParameterQuote.servicePackage; vm.servicePackage = store.getters.externalParameterQuote.servicePackage;
@ -427,6 +448,13 @@ export default {
} else { } else {
if (externalThreshold) thresholdToUse = externalThreshold; 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.isInsuranceSelected = getIsInsuranceSelectedValue(
vm.availableLineItems, vm.availableLineItems,
thresholdToUse thresholdToUse