agiornamento, sistemazioni varie PCB
This commit is contained in:
@@ -56,18 +56,21 @@ class Cart {
|
||||
}
|
||||
|
||||
isSameStorehouse(itemorder) {
|
||||
if (this.items.length > 0) {
|
||||
const mystorehouse = this.items[0].order.idStorehouse
|
||||
return (mystorehouse ? mystorehouse._id.toString() === itemorder.idStorehouse : true);
|
||||
} else {
|
||||
return true;
|
||||
try {
|
||||
if (this.items.length > 0) {
|
||||
const mystorehouse = this.items[0].order.idStorehouse
|
||||
return (mystorehouse ? mystorehouse._id.toString() === itemorder.idStorehouse : true);
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
async addqty(itemorder) {
|
||||
|
||||
|
||||
const myitem = this.items.find((rec) => rec.order._id.toString() === itemorder._id)
|
||||
if (!!myitem) {
|
||||
let stepmin = myitem.order.product.minStepQty;
|
||||
|
||||
Reference in New Issue
Block a user