Aggiunta opzione di riassegnazione costo da distinta tramire formula
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20251006125427 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("w_mriassegna_costo_dlg", "SETUP", "CALCOLO_COSTO_DA_DISTINTA", "A+B+C+D",
|
||||
"Formula calcolo costo da distinta base: A = Costo Materiali B = Costo manodopera C = Costo manodopera magazzino D = Costo servizi", false, null, false, false,
|
||||
false, false, false, null, false, null);
|
||||
|
||||
executeStatement("delete from stb_gest_setup where gest_name = 'w_mriassegna_costo_dlg' and key_section = 'FLAG_COSTO_DISTINTA_NO_MDO'");
|
||||
executeStatement("delete from stb_gest_setup where gest_name = 'w_mriassegna_costo_dlg' and key_section = 'FLAG_COSTO_DISTINTA_NO_SERVIZI'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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_20251006151622 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.Maggio_MaggioSrl))
|
||||
return;
|
||||
|
||||
updateSetupValue("w_mriassegna_costo_dlg", "SETUP", "CALCOLO_COSTO_DA_DISTINTA", "A",
|
||||
"Formula calcolo costo da distinta base: A = Costo Materiali B = Costo manodopera C = Costo manodopera magazzino D = Costo servizi", false, null, false, false, false,
|
||||
false, false, null, false, null);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM stb_gest_setup_depo\n" +
|
||||
"WHERE gest_name = 'w_mriassegna_costo_dlg'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'CALCOLO_COSTO_DA_DISTINTA'"
|
||||
);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM wtb_gest_setup_user\n" +
|
||||
"WHERE gest_name = 'w_mriassegna_costo_dlg'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'CALCOLO_COSTO_DA_DISTINTA'"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user