Sistemato invio variazioni nel caso in cui nello stesso giorno c'è un inizio e una fine promo
This commit is contained in:
@@ -679,14 +679,14 @@ public class VariazioniPVService {
|
||||
"Convert(varchar(15), assortimento.cod_mart) as cod_mart,\n " +
|
||||
"Convert(varchar(1), max(assortimento.tipo_variazione)) as tipo_variazione,\n " +
|
||||
"Convert(varchar(15), assortimento.cod_mart_view) as cod_mart_view,\n " +
|
||||
"Convert(varchar(1), assortimento.fine_promo) as fine_promo\n " +
|
||||
"Convert(varchar(1), max(assortimento.fine_promo)) as fine_promo\n " +
|
||||
" FROM (\n" + queryAssortimento + "\n) assortimento inner join mtb_aart on assortimento.cod_mart = mtb_aart.cod_mart\n " +
|
||||
" WHERE mtb_aart.flag_incl_listino = 'S' AND\n " +
|
||||
"mtb_aart.flag_stato = 'A' AND\n " +
|
||||
" EXISTS ( SELECT cod_barre from mvw_barcode WHERE mvw_barcode.cod_mart = mtb_aart.cod_mart )\n " +
|
||||
(UtilityString.isNullOrEmpty(whereCond) ? "" : " AND " + whereCond) +
|
||||
(UtilityString.isNullOrEmpty(filtroMenu) ? "" : " AND " + filtroMenu) +
|
||||
" GROUP BY assortimento.cod_vlis, assortimento.cod_mart, assortimento.cod_mart_view, assortimento.fine_promo";
|
||||
" GROUP BY assortimento.cod_vlis, assortimento.cod_mart, assortimento.cod_mart_view";
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user