fix for bug with total
This commit is contained in:
parent
81acf736b1
commit
5a04dcade4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user