risolto qtaminima "|" era sbagliato, corretto: product.minBuyQty || 1
This commit is contained in:
@@ -95,7 +95,7 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function addsubqty(addqty: boolean, subqty: boolean) {
|
||||
async function addsubqty(addqty: boolean, subqty: boolean) {
|
||||
if (products.isQtyAvailableByOrder(props.order)) {
|
||||
if (addqty) {
|
||||
if (props.order.quantity >= 100)
|
||||
@@ -121,7 +121,7 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
products.addSubQtyToItem({
|
||||
return await products.addSubQtyToItem({
|
||||
addqty,
|
||||
subqty,
|
||||
order: props.order,
|
||||
|
||||
Reference in New Issue
Block a user