Controllo data documento futura
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
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.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240404174428 extends BaseMigration implements MigrationModelInterface{
|
||||
public class Migration_20240404174428 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up()throws Exception {
|
||||
if(isHistoryDB())
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("w_ddocu_rc", "SETUP", "CHECK_DATA_REG_FUTURA", "S",
|
||||
"Se impostata a S quando si inserisce un documento con data registrazione o data documento futura chiede conferma", null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down()throws Exception{
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +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_20240404174611 extends BaseMigration implements MigrationModelInterface{
|
||||
public class Migration_20240404174611 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up()throws Exception {
|
||||
if(isHistoryDB())
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(
|
||||
IntegryCustomerDB.Salpar_VgAlimenti))
|
||||
return;
|
||||
|
||||
updateSetupValue("w_ddocu_rc", "SETUP", "CHECK_DATA_REG_FUTURA", "N");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down()throws Exception{
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user