- preordinabili corretti + altro
This commit is contained in:
@@ -69,7 +69,7 @@ class Cart {
|
||||
async addqty(itemorder) {
|
||||
const myitem = this.items.find((rec) => rec.order._id.toString() === itemorder._id)
|
||||
if (!!myitem) {
|
||||
let stepmin = myitem.order.product.minStepQty | 1;
|
||||
let stepmin = myitem.order.product.minStepQty;
|
||||
let step = stepmin;
|
||||
if (this.isAvailableByOrder(myitem.order)) {
|
||||
if (myitem.order.quantity === 0)
|
||||
@@ -100,8 +100,8 @@ class Cart {
|
||||
}
|
||||
|
||||
qtaNextSub(myorder, myproduct) {
|
||||
let step = myproduct.minStepQty | 1
|
||||
let minqta = myproduct.minBuyQty | 1
|
||||
let step = myproduct.minStepQty
|
||||
let minqta = myproduct.minBuyQty
|
||||
if (myproduct.quantityAvailable > 0) {
|
||||
if (myorder.quantity === minqta)
|
||||
step = minqta
|
||||
|
||||
Reference in New Issue
Block a user