Controllo su ass, commessa a ordini acquisto textiles

This commit is contained in:
2024-09-12 15:36:10 +02:00
parent 6c54599f1a
commit 772c69f7dc
2 changed files with 64 additions and 0 deletions

View File

@@ -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_20240912153452 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
createSetup("W_DORDI_RC", "SETUP", "DISATTIVA_ASS_COMM_TESTATA_ORD_ACQ", "N",
"Valido solo per le aziende tessili: se impostata a S allora nel caricare un ordine di acquiesto non valorizza automaticamente il codice commessa di testata (Anno stag) quando si carica il primo articolo nell'ordine", false, null, false, false,
false, false, false, null, false, null);
}
@Override
public void down() throws Exception {
}
}

View File

@@ -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_20240912153507 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
if (!isCustomerDb(IntegryCustomerDB.FolliesGroup_FolliesGroup))
return;
updateSetupValue("W_DORDI_RC", "SETUP", "DISATTIVA_ASS_COMM_TESTATA_ORD_ACQ", "S",
"Valido solo per le aziende tessili: se impostata a S allora nel caricare un ordine di acquiesto non valorizza automaticamente il codice commessa di testata (Anno stag) quando si carica il primo articolo nell'ordine", false, null, false, false, false,
false, false, null, false, null);
executeStatement("DELETE\n" +
"FROM stb_gest_setup_depo\n" +
"WHERE gest_name = 'W_DORDI_RC'\n" +
" AND section = 'SETUP'\n" +
" AND key_section = 'DISATTIVA_ASS_COMM_TESTATA_ORD_ACQ'"
);
executeStatement("DELETE\n" +
"FROM wtb_gest_setup_user\n" +
"WHERE gest_name = 'W_DORDI_RC'\n" +
" AND section = 'SETUP'\n" +
" AND key_section = 'DISATTIVA_ASS_COMM_TESTATA_ORD_ACQ'"
);
}
@Override
public void down() throws Exception {
}
}