Add recalibration-checking logic.
This commit is contained in:
parent
8daa078c29
commit
f87a64380b
1 changed files with 6 additions and 2 deletions
|
|
@ -232,9 +232,13 @@ export default {
|
||||||
return this.isGlassServiceableInshop;
|
return this.isGlassServiceableInshop;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
isDualOrStaticRecalibration() {
|
||||||
|
const supportingItems = store.getters.lineItems.supportingItems;
|
||||||
|
|
||||||
|
return supportingItems.some((item) => item.partNumber === "RECAL STATIC" || item.partNumber === "RECAL DUAL");
|
||||||
|
},
|
||||||
displayRecalibrationWarning() {
|
displayRecalibrationWarning() {
|
||||||
//TODO: Check lineItems for static or dual recalibration.
|
return this.isDualOrStaticRecalibration;
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
displayServiceableInshopOnly() {
|
displayServiceableInshopOnly() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue