dalsi fix home-01
Some checks failed
CI and deploy / migration-check (push) Failing after 26s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-05-24 23:19:54 +02:00
parent 8bef1c6da6
commit b844a9182f
5 changed files with 27 additions and 3 deletions

View File

@@ -584,11 +584,13 @@ begin
sum(wk.buy_price * v_per_slot_charge_wh)
filter (
where wk.allow_grid_charge
and wk.buy_price >= 0
and (v_first_neg_sell_ord is null or wk.slot_ord < v_first_neg_sell_ord)
)
/ nullif(sum(v_per_slot_charge_wh)
filter (
where wk.allow_grid_charge
and wk.buy_price >= 0
and (v_first_neg_sell_ord is null or wk.slot_ord < v_first_neg_sell_ord)
), 0),
v_ref_buy_czk_kwh
@@ -952,6 +954,7 @@ begin
coalesce(sum(
case
when wk.allow_grid_charge
and wk.buy_price >= 0
and (
v_acquisition_cutoff is null
or wk.interval_start < v_acquisition_cutoff
@@ -963,6 +966,7 @@ begin
coalesce(sum(
case
when wk.allow_grid_charge
and wk.buy_price >= 0
and (
v_acquisition_cutoff is null
or wk.interval_start < v_acquisition_cutoff
@@ -974,6 +978,7 @@ begin
min(
case
when wk.allow_grid_charge
and wk.buy_price >= 0
and (
v_acquisition_cutoff is null
or wk.interval_start < v_acquisition_cutoff