From 27ff4b1d69061e95a43468b3160e51873c641e6b Mon Sep 17 00:00:00 2001 From: MinaR Date: Thu, 18 Apr 2024 11:03:13 +0200 Subject: [PATCH] sistemata setup --- .../service/ImportListiniAcquistoApuliaCarrefourService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ems-engine/src/main/java/it/integry/ems/product/importaz/service/ImportListiniAcquistoApuliaCarrefourService.java b/ems-engine/src/main/java/it/integry/ems/product/importaz/service/ImportListiniAcquistoApuliaCarrefourService.java index f65898c20d..a423f6cd42 100644 --- a/ems-engine/src/main/java/it/integry/ems/product/importaz/service/ImportListiniAcquistoApuliaCarrefourService.java +++ b/ems-engine/src/main/java/it/integry/ems/product/importaz/service/ImportListiniAcquistoApuliaCarrefourService.java @@ -369,7 +369,7 @@ public class ImportListiniAcquistoApuliaCarrefourService { String existHeader = setup.get("EXIST_HEADER"); boolean importPrezzoNetto = UtilityHashMap.getValueIfExists(setup, "PREZZO_NETTO", "S").equalsIgnoreCase("S"); boolean setPercPremio = UtilityHashMap.getValueIfExists(setup, "SET_PERC_PREMIO", "S").equalsIgnoreCase("S"); - String valPremioString = UtilityHashMap.getValueIfExists(setup, "VAL_PREMIO"); + String percPremio = UtilityHashMap.getValueIfExists(setup, "PERC_PREMIO"); BigDecimal percMaggPrzBase = BigDecimal.ZERO; if (!UtilityString.isNullOrEmpty(setup.get("PERC_MAGG_PRZ_BASE"))) { percMaggPrzBase = new BigDecimal(setup.get("PERC_MAGG_PRZ_BASE")); @@ -567,7 +567,7 @@ public class ImportListiniAcquistoApuliaCarrefourService { String columnPercPremio = "CAST(0 AS NUMERIC)"; if (!importPrezzoNetto) if (setPercPremio) - columnPercPremio = "case when premi.cod_art_for IS not null AND premi.prz_acq_netto <> 0 then " + valPremioString +" ELSE 0 END "; + columnPercPremio = "case when premi.cod_art_for IS not null AND premi.prz_acq_netto <> 0 then " + percPremio +" ELSE 0 END "; else columnValPremio = "case when premi.cod_art_for IS not null AND premi.prz_acq_netto <> 0 then [COLUMN_PRZ_ACQ] - premi.prz_acq_netto ELSE 0 END ";