Merge branch 'master' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2024-10-11 09:45:21 +02:00
3 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
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_20241010154443 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
if (isCustomer(IntegryCustomer.Tosca))
executeStatement("INSERT INTO atb_forn (cod_anag, cod_atip, cod_banc, cod_paga, porto, mezzo, cod_aliq, cod_alis, cod_ccon_costi,\n" +
" cod_ccon_ricavi, cod_abi, cod_cab, agenzia_banca, rif_banca_forn, flag_stato, causale,\n" +
" cod_caus_rit, cod_divi, mm_decor, cod_clie, iban, cod_banc_azi, note_ordine, gg_chiudi_stralci,\n" +
" cod_bic, mesi_esclusi, cod_vvet, flag_forfettario, flag_autofattura)\n" +
"SELECT gtb_anag.cod_anag,\n" +
" N'01',\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" N'A',\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" 0,\n" +
" NULL,\n" +
" NULL,\n" +
" NULL,\n" +
" N'N',\n" +
" N'N'\n" +
"FROM gtb_anag\n" +
" LEFT OUTER JOIN vtb_clie ON gtb_anag.cod_anag = vtb_clie.cod_anag\n" +
" LEFT OUTER JOIN atb_forn ON gtb_anag.cod_anag = atb_forn.cod_anag\n" +
"WHERE vtb_clie.cod_anag IS NULL\n" +
" AND atb_forn.cod_anag IS NULL");
}
@Override
public void down() throws Exception {
}
}

View File

@@ -131,7 +131,6 @@ public class RossoGarganoProductionService {
.setCodVzon(cert.getCodVzon())
.setIndiceVariazione(cert.getIndiceVariazione())
.setTassoRiduzione(cert.getTassoRiduzione())
;

View File

@@ -276,6 +276,7 @@ public class ExchangeOrdiniImportService {
return;
}
switch (field.getOperation()) {
case INSERT_OR_UPDATE:
case INSERT:
AgribookNewFieldRequestDTO dto = new AgribookNewFieldRequestDTO();