risolto qtaminima "|" era sbagliato, corretto: product.minBuyQty || 1
This commit is contained in:
@@ -660,11 +660,11 @@ export const useProducts = defineStore('Products', {
|
||||
}
|
||||
} else {
|
||||
if (this.isQtyAvailableByProduct(product)) {
|
||||
order.quantity = product.minBuyQty | 1
|
||||
order.quantity = product.minBuyQty || 1
|
||||
order.quantitypreordered = 0
|
||||
} else {
|
||||
if (this.isInPreorderByProduct(product)) {
|
||||
order.quantitypreordered = product.minBuyQty | 1
|
||||
order.quantitypreordered = product.minBuyQty || 1
|
||||
order.quantity = 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user