CASH-69: Simplify logic
This commit is contained in:
parent
6eeddc6211
commit
38c16b434b
1 changed files with 5 additions and 12 deletions
|
|
@ -318,18 +318,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isMobileStaticRecalibrationApplicable() {
|
isMobileStaticRecalibrationApplicable() {
|
||||||
if (!this.isInsurance) {
|
return (
|
||||||
return (
|
this.isVehicleMobileStaticRecalibrationApplicable &&
|
||||||
this.isVehicleMobileStaticRecalibrationApplicable &&
|
this.mobileFeePart?.partNumber == MOBILE_STATIC_RECAL_FEE_PART_NUMBER &&
|
||||||
this.mobileFeePart?.partNumber == MOBILE_STATIC_RECAL_FEE_PART_NUMBER
|
(this.isInsurance ? this.mobileFeePart?.isInsurable : true)
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
return (
|
|
||||||
this.isVehicleMobileStaticRecalibrationApplicable &&
|
|
||||||
this.mobileFeePart?.partNumber == MOBILE_STATIC_RECAL_FEE_PART_NUMBER &&
|
|
||||||
this.mobileFeePart?.isInsurable
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mobileFeeApplies() {
|
mobileFeeApplies() {
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue