dalsi fix home-01
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user