diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index eb8268551..838fbf256 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -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