fix for bug with total

This commit is contained in:
ZareMate 2025-12-30 18:34:40 +01:00
parent 81acf736b1
commit 5a04dcade4

View File

@ -388,7 +388,7 @@ module.exports = function (app, wss, pool) {
const shopId = response.data.shopId;
if (!shopList[shopId]) shopList[shopId] = [];
shopList[shopId].push({ name: item.id, _requestCount: item.quantity });
total += price * item.quantity;
total += price * (item.quantity / item.sellQuantity);
}
// Send via WebSocket