Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
общее.описание:скидки:скидки.и.программы [2019/04/29 12:27]
a.korobka
общее.описание:скидки:скидки.и.программы [2019/05/08 10:21] (текущий)
Строка 28: Строка 28:
                where dtype=1                where dtype=1
                  and (disdate is null or disdate>​current_date)                  and (disdate is null or disdate>​current_date)
-                 and (f.filid is null or f.filid>​0 and coalesce(f.dis_in_schedule,​0)=0)+                 and (f.filid is null or f.filid>​0 and coalesce(f.dis_in_schedule,​0)=0) ​
                group by 1, 2, 3, 4, 6, 7) d                group by 1, 2, 3, 4, 6, 7) d
        order by 1        order by 1
Строка 63: Строка 63:
                      ​substring(ws.kodoper||'​ '​||ws.schname from 1 for 65) schname, comment                      ​substring(ws.kodoper||'​ '​||ws.schname from 1 for 65) schname, comment
                 from discountsprav d                 from discountsprav d
-                left join wschema ws on ws.schid=d.schid where dtype=3 and d.schid is not null) d+                left join wschema ws on ws.schid=d.schid ​ 
 +                left join user$pricestructure ps on ps.structid=ws.structid 
 +               where dtype=3 and d.schid is not null 
 +                 and ps.fdate>​= current_date) d
        where (fdate is null or fdate>​current_date)        where (fdate is null or fdate>​current_date)
        order by 1        order by 1

общее.описание/скидки/скидки.и.программы.1556530030.txt.gz · Последние изменения: 2019/04/29 12:27 — a.korobka