reduce premium for low volume nursery
This commit is contained in:
parent
bd8fde9474
commit
20e5e4fc42
@ -69,9 +69,9 @@ lq AS MATERIALIZED (
|
|||||||
-- if more than a pallet use the target price
|
-- if more than a pallet use the target price
|
||||||
ELSE CASE WHEN units_each >= 8*mpck THEN (lq.upperpricelimit + lq.lowerpricelimit) / 2
|
ELSE CASE WHEN units_each >= 8*mpck THEN (lq.upperpricelimit + lq.lowerpricelimit) / 2
|
||||||
-- if more than a pallet use the target price
|
-- if more than a pallet use the target price
|
||||||
ELSE CASE WHEN units_each >= 4*mpck THEN lq.upperpricelimit
|
ELSE CASE WHEN units_each >= 2*mpck THEN lq.upperpricelimit
|
||||||
-- if more than a pallet use the target price
|
-- if more than a pallet use the target price
|
||||||
ELSE lq.upperpricelimit * 1.15
|
ELSE lq.upperpricelimit * 1.05
|
||||||
END END END
|
END END END
|
||||||
ELSE
|
ELSE
|
||||||
CASE WHEN i.pricegroup ~ '(Hanger|Dish)' THEN
|
CASE WHEN i.pricegroup ~ '(Hanger|Dish)' THEN
|
||||||
|
Loading…
Reference in New Issue
Block a user