GESTIONE VENTILAZIONE SU PV E PERIODO
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20241213105213 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetupQuery("COD_PAGA_D", "Codice pagamento", " SELECT COD_PAGA + '|' + DESCRIZIONE \n" +
|
||||
" FROM gtb_paga\n" +
|
||||
" WHERE flag_attivo = 'S'");
|
||||
|
||||
executeStatement(" UPDATE stb_gest_setup \n" +
|
||||
" SET query_default = 'COD_PAGA_D'\n" +
|
||||
" WHERE gest_name = 'VTB_DIST_INCAT' AND section = 'COD_PAGA'");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
}
|
||||
}
|
||||
@@ -602,7 +602,7 @@ public class DocOrdCalTotaliRules extends QueryRules {
|
||||
}
|
||||
|
||||
if (insMovCont && (!"IVA COMPOSTA".equals(UtilityString.streNull(tipoIva)))) {
|
||||
listaCosti = addCosti(((DtbDocr) row), sconti, listaCosti, ((DtbDoct) testata).getCodJfas());
|
||||
listaCosti = addCosti(((DtbDocr) row), sconti, listaCosti, testata.getCodJfas());
|
||||
}
|
||||
|
||||
boolean prendiNeiTotali = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, "SELECT dbo.chk_ArtCalcTotali(" + UtilityDB.valueToString(codMart) + ")");
|
||||
|
||||
@@ -27,25 +27,25 @@ public class ExportCorrispettiviDTO {
|
||||
|
||||
public static class ContiTipiInca {
|
||||
@MapToTable("cod_mdep")
|
||||
String codMdep;
|
||||
private String codMdep;
|
||||
|
||||
@MapToTable("tipo_inca")
|
||||
String tipoInca;
|
||||
private String tipoInca;
|
||||
|
||||
@MapToTable("cod_ccon")
|
||||
String codCcon;
|
||||
private String codCcon;
|
||||
|
||||
@MapToTable("descrizione")
|
||||
String descrizione;
|
||||
private String descrizione;
|
||||
|
||||
@MapToTable("cod_ccon_storno")
|
||||
String codCconStorno;
|
||||
private String codCconStorno;
|
||||
|
||||
@MapToTable("cod_aliq")
|
||||
String codAliq;
|
||||
private String codAliq;
|
||||
|
||||
@MapToTable("perc_aliq")
|
||||
BigDecimal percAliq;
|
||||
private BigDecimal percAliq;
|
||||
|
||||
public String getCodMdep() {
|
||||
return codMdep;
|
||||
|
||||
@@ -97,10 +97,10 @@ public class RegCorrispettivoService {
|
||||
" dtb_doct.num_doc,\n" +
|
||||
" dtb_doct.tot_imponib + dtb_doct.tot_iva AS tot_doc,\n" +
|
||||
" CAST(CASE\n" +
|
||||
" WHEN ctb_ireg.flag_iva_da_ventilare = 'N' THEN 'N'\n" +
|
||||
" WHEN ctb_ireg.flag_iva_da_ventilare = 'N' THEN 0\n" +
|
||||
" ELSE IIF(\n" +
|
||||
" dtb_doct.data_reg BETWEEN ISNULL(mtb_depo.data_iniz_vent, dtb_doct.data_reg) AND ISNULL(mtb_depo.data_fine_vent, CAST(GETDATE() AS DATE)),\n" +
|
||||
" 'S', 'N') END AS BIT) flag_iva_da_ventilare,\n" +
|
||||
" 1, 0) END AS BIT) flag_iva_da_ventilare,\n" +
|
||||
" mtb_depo.descrizione,\n" +
|
||||
" nvw_count_scontrini_doc.count_scontrini,\n" +
|
||||
" mtb_depo.cod_ccau,\n" +
|
||||
|
||||
Reference in New Issue
Block a user