From 5a04dcade430d843a555ed08c84175a0d3399723 Mon Sep 17 00:00:00 2001 From: ZareMate <0.zaremate@gmail.com> Date: Tue, 30 Dec 2025 18:34:40 +0100 Subject: [PATCH] fix for bug with total --- users-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users-api.js b/users-api.js index 45259faa..435e5bd6 100644 --- a/users-api.js +++ b/users-api.js @@ -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