fix: refs #8030 redmine revision updates

Changes recomended by the reviewer

Refs: #8030
This commit is contained in:
Pako Natek 2024-09-24 10:27:27 +02:00
parent fb7208d898
commit 5c8f42a3ae
1 changed files with 3 additions and 3 deletions

View File

@ -32,8 +32,8 @@ BEGIN
SUM(IFNULL(pd.absIncreasing,0)) absIncreasing,
SUM(IFNULL(pd.ratIncreasing,0)) ratIncreasing,
pd.warehouseFk
FROM vn.item i
JOIN tmp.priceDelta pd
FROM item i
JOIN priceDelta pd
ON pd.itemTypeFk = i.typeFk
AND (pd.minSize IS NULL OR pd.minSize <= i.`size`)
AND (pd.maxSize IS NULL OR pd.maxSize >= i.`size`)
@ -128,7 +128,7 @@ BEGIN
JOIN tmp.ticketComponentCalculate tcc ON tcc.itemFk = tc.itemFk AND tcc.warehouseFk = tc.warehouseFk
GROUP BY tc.itemFk, warehouseFk;
-- priceDelta Bonus del comprador a un rango de productos Refs: #8030
-- Bonus del comprador a un rango de productos
INSERT INTO tmp.ticketComponent(warehouseFk, itemFk, componentFk, cost)
SELECT
tcb.warehouseFk,