Make sure MSR mobile fee is always added to order
Avoid coverage type and hidden fee restrictions
This commit is contained in:
parent
eb70c32680
commit
1ea73c3fba
2 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
const partNumberStrings = Object.freeze({
|
const partNumberStrings = Object.freeze({
|
||||||
RECYCLE_FEE: 'RECYCLE FEE',
|
RECYCLE_FEE: 'RECYCLE FEE',
|
||||||
LABOR2: 'LABOR2',
|
LABOR2: 'LABOR2',
|
||||||
|
RECAL_MOBILE: 'RECAL MOBILE'
|
||||||
});
|
});
|
||||||
|
|
||||||
export default partNumberStrings;
|
export default partNumberStrings;
|
||||||
|
|
|
||||||
|
|
@ -1968,8 +1968,10 @@ export const useMainStore = defineStore({
|
||||||
|
|
||||||
updateMobileFee(fee) {
|
updateMobileFee(fee) {
|
||||||
const isMobileFeeHidden = getExperimentSettingValue(this.experimentSettings, experimentSettings.ISS_FEATURE_TOGGLE_IS_MOBILE_FEE_HIDDEN) === 'true';
|
const isMobileFeeHidden = getExperimentSettingValue(this.experimentSettings, experimentSettings.ISS_FEATURE_TOGGLE_IS_MOBILE_FEE_HIDDEN) === 'true';
|
||||||
|
const isMSRFee = fee?.partNumber === partNumberStrings.RECAL_MOBILE;
|
||||||
// Mobile Fee is only added for NO COMP or ITAC and is NOT hidden
|
// Mobile Fee is only added for NO COMP or ITAC and is NOT hidden
|
||||||
if (fee && this.isVerified && (this.isNoComp || this.isITAC) && !isMobileFeeHidden) {
|
// MSR Fee is added for all orders
|
||||||
|
if ((fee && this.isVerified && (this.isNoComp || this.isITAC) && !isMobileFeeHidden) || isMSRFee) {
|
||||||
this.addPartTypeFeeItem(fee, partTypeStrings.MOBILE_FEE);
|
this.addPartTypeFeeItem(fee, partTypeStrings.MOBILE_FEE);
|
||||||
} else {
|
} else {
|
||||||
this.addPartTypeFeeItem(null, partTypeStrings.MOBILE_FEE);
|
this.addPartTypeFeeItem(null, partTypeStrings.MOBILE_FEE);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue