This commit is contained in:
Jonathan Chevalier
2022-10-21 15:28:24 +02:00
parent 725a0228cd
commit 29e052c9f3
3 changed files with 7 additions and 8 deletions

View File

@@ -84,6 +84,7 @@ export const useMMCMStore = defineStore('counter', {
getters: {
fullAddress: (state) => state.street + ' ' + state.zipCode + ' ' + state.city,
deliveryMethod: (state) => state.productList.filter(p => p.id === state.idProduct)[0].name,
deliveryMethodCode: (state) => state.productList.filter(p => p.id === state.idProduct)[0].ref,
dateDeliveryString: (state) => new Date(state.dateDelivery).toLocaleDateString("fr-FR"),
dateCollectString: (state) => new Date(state.dateCollect).toLocaleDateString("fr-FR"),
minDateForDelivery: (state) => (state.productList.filter(p => p.id === state.idProduct)[0].ref === 'MMCM_EXPRESS') ? date.deliveryExpress : date.deliveryFacteur,