modificata logica di attribuzione codice listno in importazione listini apulia
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20250505191546 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("delete from stb_gest_setup where key_section like 'TIPO_LISTINO%' and value = 'APULD' and section = 'APULIA_CARREFOUR'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -500,10 +500,10 @@ public class ImportListiniAcquistoApuliaCarrefourService {
|
||||
+ "CASE "
|
||||
+ " WHEN tabS.cod_listino IS NOT NULL THEN tabS.cod_listino "
|
||||
+ " WHEN tmp.cod_listino IS NOT NULL THEN tmp.cod_listino "
|
||||
+ " WHEN tmp.cod_listino IS NULL AND atb_list.cod_alis IS NOT NULL AND iSnULL(part_iva_forn, '') <> '' THEN atb_list.cod_alis "
|
||||
+ " WHEN tmp.cod_listino IS NULL AND linea ='RIF' AND atb_list.cod_alis IS NOT NULL AND iSnULL(part_iva_forn, '') <> '' THEN atb_list.cod_alis "
|
||||
+ " ELSE 'APULD' "
|
||||
+ "END AS cod_alis, "
|
||||
+ "CASE WHEN tmp.cod_listino is not null THEN 'N' ELSE 'S' END as flag_list_rif, "
|
||||
+ "IIF( linea = 'RIF' , 'S' , 'N') as flag_list_rif, "
|
||||
+ "tabp.settore "
|
||||
+ "FROM " + tableAggPrz + " tabP LEFT OUTER JOIN "
|
||||
+ "(SELECT REPLACE(key_section, 'TIPO_LISTINO:', '') AS tipo_listino, "
|
||||
|
||||
Reference in New Issue
Block a user