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

This commit is contained in:
2025-12-04 11:25:26 +01:00

View File

@@ -155,7 +155,8 @@ public class WMSAccettazioneService {
}
//Check temporaneo per evitare problemi sui dati
if(udcMtbColt.getSerCollo().equalsIgnoreCase("UL") && !udcMtbColt.getBarcodeUl().startsWith("U"))
if(udcMtbColt.getSerCollo() != null && udcMtbColt.getSerCollo().equalsIgnoreCase("UL") &&
(udcMtbColt.getBarcodeUl() == null || !udcMtbColt.getBarcodeUl().startsWith("U")))
throw new Exception("Errore interno durante il salvataggio dell'UDC: il barcode dell'UDC non è valido per la serie UL.");
udcMtbColt.setOperation(OperationType.INSERT);