Assegnazione controllo disallineamento progressivi a tutti

This commit is contained in:
2025-03-17 09:36:25 +01:00
parent 7b04a57a22
commit afaff75409

View File

@@ -0,0 +1,37 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20250313154415 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
updateSetupValue("w_mvalmag_disp", "SETUP", "CHECK_DISALLINEAMENTI", "S",
"Se impostato a S vuol dire che prima della valorizzazione di magazzino deve controllare se ci sono disallineamenti tra la MTB_SART e MTB_MOVI", false, null, false, false, false,
false, false, null, false, null);
executeStatement("DELETE\n" +
"FROM stb_gest_setup_depo\n" +
"WHERE gest_name = 'w_mvalmag_disp'\n" +
" AND section = 'SETUP'\n" +
" AND key_section = 'CHECK_DISALLINEAMENTI'"
);
executeStatement("DELETE\n" +
"FROM wtb_gest_setup_user\n" +
"WHERE gest_name = 'w_mvalmag_disp'\n" +
" AND section = 'SETUP'\n" +
" AND key_section = 'CHECK_DISALLINEAMENTI'"
);
}
@Override
public void down() throws Exception {
}
}