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

This commit is contained in:
2025-12-02 15:46:40 +01:00

View File

@@ -703,6 +703,15 @@ public class DistribuzioneColliService {
List<EntityBase> saveResponse = entityProcessor.processEntityList(entityToSave, skipCommit);
//Rimuovo le righe eliminate dalle liste dei colli salvati
if (saveResponse != null) {
for (EntityBase entity : saveResponse) {
if (entity.getException() != null) throw entity.getException();
if (entity instanceof MtbColt)
((MtbColt) entity).getMtbColr().removeIf(mtbColr -> mtbColr.getOperation() == OperationType.DELETE);
}
}
if (saveResponse != null && !saveResponse.isEmpty()) {
for (EntityBase responseEntity : saveResponse) {