missing code for recal copy logic
This commit is contained in:
parent
03d18ba6a8
commit
3e91e0e7dc
1 changed files with 5 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
<script>
|
||||
import { getStringWithCustomValues, processIfStatements } from '@/helpers/cms-content-helper';
|
||||
import { getGlassList } from '@/helpers/damage-helper';
|
||||
import { isRecalOrder } from '@/helpers/recal-helper';
|
||||
import reviewBlock from '@/layouts/payment-method/review-dropdown/review-block/review-block.vue';
|
||||
|
||||
export default {
|
||||
|
|
@ -34,12 +35,16 @@ export default {
|
|||
customValueMap() {
|
||||
return {
|
||||
glassList: this.glassList,
|
||||
isRecalibrationOnOrder: this.isRecalibrationOnOrder
|
||||
};
|
||||
},
|
||||
glassList() {
|
||||
const glassPieces = this.mainStore.lineItems.glassParts?.map((part) => part.partType.toLowerCase()) ?? [];
|
||||
return getGlassList(glassPieces);
|
||||
},
|
||||
isRecalibrationOnOrder() {
|
||||
return isRecalOrder(this.mainStore.order.lineItems);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getCmsContentWithCustomValues(widgetName, widgetField) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue