Carrello con scontistica aggiornata
This commit is contained in:
@@ -415,11 +415,13 @@ export const useProducts = defineStore('Products', {
|
||||
if (order.quantity === 0)
|
||||
order.quantity = 1
|
||||
|
||||
neworder = this.createOrderByProduct(product, order)
|
||||
if (order.idStorehouse) {
|
||||
neworder = this.createOrderByProduct(product, order)
|
||||
}
|
||||
}
|
||||
|
||||
if (neworder && !neworder.idStorehouse)
|
||||
return new Types.AxiosError(serv_constants.RIS_CODE_ERR, null, toolsext.ERR_GENERICO, 'Nessuno Store')
|
||||
// if (neworder && !neworder.idStorehouse)
|
||||
// return new Types.AxiosError(serv_constants.RIS_CODE_ERR, null, toolsext.ERR_GENERICO, 'Nessuno Store')
|
||||
|
||||
console.log('addToCart', 'userid=', userStore.my._id, neworder)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user