- aggiungo campo "sfuso"
- aggiunto totale al carrello
This commit is contained in:
@@ -919,10 +919,12 @@ module.exports.getmsgorderTelegram = async function (ordersCart) {
|
||||
if (ord.order.quantitypreordered > 0)
|
||||
qtynum += ord.order.quantitypreordered;
|
||||
|
||||
// if (ord.order.product.productInfo.weight)
|
||||
// qtynum *= ord.order.product.productInfo.weight;
|
||||
if (ord.order.product.productInfo.sfuso && ord.order.product.productInfo.weight)
|
||||
qtyrisult = qtynum * ord.order.product.productInfo.weight;
|
||||
else
|
||||
qtyrisult = qtynum + ' x ' + ord.order.product.productInfo.weight;
|
||||
|
||||
qtystr += qtynum + ' ' + tools.getUnitsMeasure(ord.order.product.productInfo.unit, true);
|
||||
qtystr += qtyrisult + ' ' + tools.getUnitsMeasure(ord.order.product.productInfo.unit, true);
|
||||
|
||||
if (ord.order.quantitypreordered > 0)
|
||||
qtystr += ' Pre-Ordinati';
|
||||
|
||||
Reference in New Issue
Block a user