create setup nella W_DCOLLI_RESO_DLG per impostare giorni e consegne
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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_20250715174816 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("W_DCOLLI_RESO_DLG", "SETUP", "LIMIT_DAYS", null,
|
||||
"Imposta il limite dei giorni entro il quale cercare le consegne", false, null, false, false,
|
||||
false, false, false, null, false, null);
|
||||
createSetup("W_DCOLLI_RESO_DLG", "SETUP", "LIMIT_CONSEGNE_PER_CLI", null,
|
||||
"imposta il limite di consegne da cercare", false, null, false, false,
|
||||
false, false, false, null, false, null);
|
||||
|
||||
if (isCustomerDb(IntegryCustomerDB.RossoGargano_RossoGargano)){
|
||||
|
||||
updateSetupValue("W_DCOLLI_RESO_DLG","SETUP","LIMIT_DAYS","30");
|
||||
updateSetupValue("W_DCOLLI_RESO_DLG","SETUP","LIMIT_CONSEGNE_PER_CLI","10");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user