Aggiunto controllo per aggiornamento data scadenza
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20251031162801 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.Levanplast_Levanplast))
|
||||
return;
|
||||
|
||||
updateSetupValue("W_ARICEZIONE_MERCE_INS_NEW_COLLO_DLG", "SETUP", "AGGIORNA_DATA_SCAD_PARTITA_MAG", "S",
|
||||
"Se impostata a S in fase di ricezione merce la data di scadenza della partita verrà aggiornata a data ricezione + gg_scad ove presente", false, null, false, false, false,
|
||||
false, false, null, false, null);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM stb_gest_setup_depo\n" +
|
||||
"WHERE gest_name = 'W_ARICEZIONE_MERCE_INS_NEW_COLLO_DLG'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'AGGIORNA_DATA_SCAD_PARTITA_MAG'"
|
||||
);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM wtb_gest_setup_user\n" +
|
||||
"WHERE gest_name = 'W_ARICEZIONE_MERCE_INS_NEW_COLLO_DLG'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'AGGIORNA_DATA_SCAD_PARTITA_MAG'"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,15 +1,35 @@
|
||||
package it.integry.ems.migration.model;import it.integry.ems.migration._base.BaseMigration;
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20251031163348 extends BaseMigration implements MigrationModelInterface{
|
||||
public class Migration_20251031163348 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up()throws Exception {
|
||||
if(isHistoryDB())
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
executeStatement("INSERT INTO stb_gest_setup VALUES (\n" +
|
||||
"\t'W_ARICEZIONE_MERCE_INS_NEW_COLLO_DLG',\n" +
|
||||
"\t'SETUP',\n" +
|
||||
"\t'AGGIORNA_DATA_SCAD_PARTITA_MAG',\n" +
|
||||
"\t'S',\n" +
|
||||
"\t'Se impostata a S in fase di ricezione merce la data di scadenza della partita verrà aggiornata a data ricezione + gg_scad ove presente',\n" +
|
||||
"\t'N',\n" +
|
||||
"\tNULL,\n" +
|
||||
"\t'N',\n" +
|
||||
"\t'2025-10-31 16:28:03.000',\n" +
|
||||
"\t'Database Administrator',\n" +
|
||||
"\t'N',\n" +
|
||||
"\t'N',\n" +
|
||||
"\t'N',\n" +
|
||||
"\t'N',\n" +
|
||||
"\tNULL,\n" +
|
||||
"\t0);\n");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down()throws Exception {
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user