Changes between Version 17 and Version 18 of AdvancedReports
- Timestamp:
- 05/04/24 14:35:18 (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v17 v18 145 145 WHEN sum_b IS NOT NULL THEN COALESCE(sum_b::int, 0) 146 146 ELSE 0 147 END 147 end as total_income 148 148 from ( 149 149 select … … 152 152 from kazna k 153 153 where k.kz_plateno = true and (k.kz_datum between (make_date(extract(year from (now() - '1 years'::interval))::int, 1, 1)) and 154 155 156 154 (make_date(extract(year from (now() - '1 years'::interval))::int, 12, 31))) 155 and (k.kz_datum_plateno between (make_date(extract(year from (now() - '1 years'::interval))::int, 1, 1)) and 156 (make_date(extract(year from (now() - '1 years'::interval))::int, 12, 31))) 157 157 ) sum_kz, 158 158 ( … … 161 161 join tipbilet tb on tb.tb_id = b.tb_id 162 162 where b.b_datum_na_kupuvanje between (make_date(extract(year from (now() - '1 years'::interval))::int, 1, 1)) and 163 163 (make_date(extract(year from (now() - '1 years'::interval))::int, 12, 31)) 164 164 ) sum_b 165 ) 166 165 ) 167 166 }}} 168 167 }}}