FIX RYCHLOST EKONOMIKA
This commit is contained in:
@@ -15,7 +15,11 @@ as $fn$
|
||||
case when l.site_id is not null then l.green_bonus_czk else r.green_bonus_czk end as gb,
|
||||
coalesce(l.grid_import_cashflow_czk, r.grid_import_cashflow_czk) as gic,
|
||||
coalesce(l.grid_export_revenue_czk, r.grid_export_revenue_czk) as ger
|
||||
from ems.vw_economics_daily r
|
||||
from ems.fn_economics_daily_for_window(
|
||||
p_site_id,
|
||||
(p_month_start::timestamp at time zone 'Europe/Prague'),
|
||||
(p_month_end::timestamp at time zone 'Europe/Prague')
|
||||
) r
|
||||
left join ems.audit_day_lock l
|
||||
on l.site_id = r.site_id
|
||||
and l.day_local = r.day_local
|
||||
|
||||
Reference in New Issue
Block a user