reduce premium for low volume nursery

This commit is contained in:
Paul Trowbridge 2025-01-30 09:43:20 -05:00
parent bd8fde9474
commit 20e5e4fc42

View File

@ -69,9 +69,9 @@ lq AS MATERIALIZED (
-- if more than a pallet use the target price
ELSE CASE WHEN units_each >= 8*mpck THEN (lq.upperpricelimit + lq.lowerpricelimit) / 2
-- 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
ELSE lq.upperpricelimit * 1.15
ELSE lq.upperpricelimit * 1.05
END END END
ELSE
CASE WHEN i.pricegroup ~ '(Hanger|Dish)' THEN