Fix su return in createUdc

This commit is contained in:
2024-02-21 11:36:29 +01:00
parent bd64c14e7c
commit 7b727538e7
2 changed files with 7 additions and 2 deletions

View File

@@ -149,7 +149,9 @@ public class WMSAccettazioneService {
}
if (createUDCRequestDTO.getOrders() == null) {
if (UtilityString.isNullOrEmpty(createUDCRequestDTO.getCodAnag())) {
boolean useCodAnagAziendale = setupGest.getSetupBoolean("PICKING", "SETUP", "FLAG_USE_COD_ANAG_AZIENDALE");
if (UtilityString.isNullOrEmpty(createUDCRequestDTO.getCodAnag()) && useCodAnagAziendale) {
String defaultCodAnag = wmsGenericService.retrieveInternalCodAnagFornitore();
udcMtbColt.setCodAnag(defaultCodAnag);
} else

View File

@@ -523,7 +523,9 @@ public class WMSLavorazioneService {
if (createUDCRequestDTO.getOrders() == null) {
if (UtilityString.isNullOrEmpty(createUDCRequestDTO.getCodAnag())) {
boolean useCodAnagAziendale = setupGest.getSetupBoolean("PICKING", "SETUP", "FLAG_USE_COD_ANAG_AZIENDALE");
if (UtilityString.isNullOrEmpty(createUDCRequestDTO.getCodAnag()) && useCodAnagAziendale) {
String defaultCodAnag = wmsGenericService.retrieveInternalCodAnagFornitore();
udcMtbColt.setCodAnag(defaultCodAnag);
} else
@@ -534,6 +536,7 @@ public class WMSLavorazioneService {
entityProcessor.processEntity(udcMtbColt, true, multiDBTransactionManager);
udcMtbColt.setOnlyPkMaster(false);
udcMtbColt.setOperation(OperationType.SELECT);
return udcMtbColt;
}