Abilitazione per utente modifica prevista fatturazione
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,23 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241202121412 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("DTB_DOCT", "SETUP", "UPDATE_PREVISTA_FAT", null,
|
||||
"Aggiorna la spunta di prevista fatturazione anche su documenti già inviati allo SDI o di anni chiusi", false, null, false, false,
|
||||
true, false, false, null, false, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,15 +1,25 @@
|
||||
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.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241202131255 extends BaseMigration implements MigrationModelInterface{
|
||||
public class Migration_20241202131255 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up()throws Exception {
|
||||
if(isHistoryDB())
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.FolliesGroup_FolliesGroup))
|
||||
return;
|
||||
|
||||
executeStatement("insert into wtb_gest_setup_user (user_name, gest_name, section, key_section, value)\n" +
|
||||
"VALUES('GENNARO_ADMIN','DTB_DOCT','SETUP','UPDATE_PREVISTA_FAT','S')");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down()throws Exception {
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
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_20241202132526 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.Maggio_MaggioSrl) || isCustomerDb(IntegryCustomerDB.Maggio_GiovMaggio))
|
||||
return;
|
||||
|
||||
executeStatement("insert into wtb_gest_setup_user (user_name, gest_name, section, key_section, value)\n" +
|
||||
"VALUES('AMM2','DTB_DOCT','SETUP','UPDATE_PREVISTA_FAT','S')");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user