Changes between Version 17 and Version 18 of AdvancedReports


Ignore:
Timestamp:
05/04/24 14:35:18 (7 months ago)
Author:
216049
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v17 v18  
    145145  WHEN sum_b IS NOT NULL THEN COALESCE(sum_b::int, 0)
    146146  ELSE 0
    147 END
     147end as total_income
    148148from (
    149149select
     
    152152from kazna k
    153153where k.kz_plateno = true and (k.kz_datum between (make_date(extract(year from (now() - '1 years'::interval))::int, 1, 1)) and
    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)))
     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)))
    157157)  sum_kz,
    158158(
     
    161161join tipbilet tb on tb.tb_id = b.tb_id
    162162where b.b_datum_na_kupuvanje between (make_date(extract(year from (now() - '1 years'::interval))::int, 1, 1)) and
    163                                                                         (make_date(extract(year from (now() - '1 years'::interval))::int, 12, 31))
     163                                                                        (make_date(extract(year from (now() - '1 years'::interval))::int, 12, 31))
    164164)  sum_b
    165 )
    166 
     165)
    167166  }}}
    168167}}}