From 21b7a5941ccbe0e5f1b3749fa17439fc02f81b4a Mon Sep 17 00:00:00 2001 From: FabioN Date: Thu, 16 Jan 2025 15:06:51 +0100 Subject: [PATCH] Auricchio --- .../ems/production/service/FLProductionService.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ems-engine/src/main/java/it/integry/ems/production/service/FLProductionService.java b/ems-engine/src/main/java/it/integry/ems/production/service/FLProductionService.java index c993d3e43c..c173cc99f4 100644 --- a/ems-engine/src/main/java/it/integry/ems/production/service/FLProductionService.java +++ b/ems-engine/src/main/java/it/integry/ems/production/service/FLProductionService.java @@ -398,8 +398,10 @@ public class FLProductionService { if ("S".compareTo(isDBcentrale) == 0) { - passaporto = getNextNumPassaporto(connDBCentrale, codCentroAziDBCentrale, flAggListinoProdDTO.getDataProd()); - passaportoDBCentrale = passaporto; +/* passaporto = getNextNumPassaporto(connDBCentrale, codCentroAziDBCentrale, flAggListinoProdDTO.getDataProd()); + passaportoDBCentrale = passaporto;*/ + + passaporto = flAggListinoProdDTO.getPassaporto(); } if (!UtilityString.isNullOrEmpty(flAggListinoProdDTO.getCodAlis())) { @@ -438,7 +440,7 @@ public class FLProductionService { String erroreMessage = mtbListData.getException().getMessage(); throw new Exception(erroreMessage); } else { - if ("N".compareTo(contoLavoro) == 0) { + if ("N".compareTo(contoLavoro) == 0 && isDBcentrale.compareTo("N") == 0) { /******************************************************* * AGGIORNAMENTO LISTINO FORNITORE DATABASE CENTRALE * ******************************************************/