WIP MMCM
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user