fix: refs #8030 redmine revision updates
Changes recomended by the reviewer Refs: #8030
This commit is contained in:
parent
fb7208d898
commit
5c8f42a3ae
|
@ -32,8 +32,8 @@ BEGIN
|
||||||
SUM(IFNULL(pd.absIncreasing,0)) absIncreasing,
|
SUM(IFNULL(pd.absIncreasing,0)) absIncreasing,
|
||||||
SUM(IFNULL(pd.ratIncreasing,0)) ratIncreasing,
|
SUM(IFNULL(pd.ratIncreasing,0)) ratIncreasing,
|
||||||
pd.warehouseFk
|
pd.warehouseFk
|
||||||
FROM vn.item i
|
FROM item i
|
||||||
JOIN tmp.priceDelta pd
|
JOIN priceDelta pd
|
||||||
ON pd.itemTypeFk = i.typeFk
|
ON pd.itemTypeFk = i.typeFk
|
||||||
AND (pd.minSize IS NULL OR pd.minSize <= i.`size`)
|
AND (pd.minSize IS NULL OR pd.minSize <= i.`size`)
|
||||||
AND (pd.maxSize IS NULL OR pd.maxSize >= 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
|
JOIN tmp.ticketComponentCalculate tcc ON tcc.itemFk = tc.itemFk AND tcc.warehouseFk = tc.warehouseFk
|
||||||
GROUP BY tc.itemFk, 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)
|
INSERT INTO tmp.ticketComponent(warehouseFk, itemFk, componentFk, cost)
|
||||||
SELECT
|
SELECT
|
||||||
tcb.warehouseFk,
|
tcb.warehouseFk,
|
||||||
|
|
Loading…
Reference in New Issue