create setup nella W_DCOLLI_RESO_DLG per impostare giorni e consegne

This commit is contained in:
2025-07-15 18:26:00 +02:00
parent b4ce3f8d27
commit c30c7ec369

View File

@@ -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 {
}
}