- migliorata grafica prodotti

This commit is contained in:
Surya Paolo
2023-12-31 14:34:01 +01:00
parent 6313476d54
commit 3fb78ff39a

View File

@@ -749,12 +749,13 @@ module.exports.getmsgorderTelegram = async function (ordersCart) {
for (const ord of ordersCart.items) {
msg += '<br>';
let qtystr = ''
let qtynum = 0
if (ord.order.quantity > 0)
qtystr += ord.order.quantity;
qtynum += ord.order.quantity;
if (ord.order.quantitypreordered > 0)
qtystr += ord.order.quantitypreordered;
qtynum += ord.order.quantitypreordered;
qtystr += ' ' + tools.getUnitsMeasure(ord.order.product.productInfo.weight, true);
qtystr += qtynum + ' ' + tools.getUnitsMeasure(ord.order.product.productInfo.unit, true);
if (ord.order.quantitypreordered > 0)
qtystr += ord.order.quantitypreordered + ' Pre-Ordinati'