fix BA a KV nefunkcni vecerni prodej
Some checks failed
CI and deploy / migration-check (push) Failing after 24s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-05-24 10:49:35 +02:00
parent ce571a93fa
commit bd06779fe5
4 changed files with 141 additions and 7 deletions

View File

@@ -698,7 +698,8 @@ begin
and (
case
when v_purchase_pricing_mode = 'fixed' then
wk.sell_price > wk.buy_price + v_degrad_czk_kwh
-- Večerní peak: vyvést i když sell < fixní buy (KV1), pokud je to denní maximum výkupu.
true
else
wk.sell_price > v_ref_buy_czk_kwh + v_degrad_czk_kwh
end