Personalizzazione stampa lipe per visualizzare o meno il credito anno precedente (attivata visualizzazione solo per Carelli)

This commit is contained in:
2024-09-27 09:58:01 +02:00
parent 08144fd5ea
commit 87597ab83b
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20240926171241 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
createSetupQuery("SI_NO", "SI_NO", "SELECT 'S' UNION ALL SELECT 'N'");
createSetup("LIQUIDAZIONE_IVA", "CREDITO_ANNO_PREC", "VISUALIZZA_LIPE", "N",
"Visualizza il credito iva anno precedente nel capo VP9 nella Lipe", false, "SI_NO", false, false,
false, false, false, null, false, "SELECT 'S' UNION ALL SELECT 'N'");
}
@Override
public void down() throws Exception {
}
}

View File

@@ -0,0 +1,24 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.IntegryCustomer;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20240927093621 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
if(isCustomer(IntegryCustomer.Carelli)) {
updateSetupValue("LIQUIDAZIONE_IVA", "CREDITO_ANNO_PREC", "VISUALIZZA_LIPE", "S");
}
}
@Override
public void down() throws Exception {
}
}