Merge branch 'develop' into feature/JDK11
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -438,7 +438,9 @@ public class DocumentiDirettiService {
|
||||
}
|
||||
|
||||
if ((fatturaPedaneCliente || fatturaVettore) &&
|
||||
dtbDoct.getDtbDocImb().stream().anyMatch(x -> x.getTipoReso() != 2 && !x.getNumImbCons().equals(x.getNumImbResi()))
|
||||
dtbDoct.getDtbDocImb().stream().
|
||||
filter(x -> x.getOperation() != OperationType.DELETE )
|
||||
.anyMatch(x -> x.getTipoReso() != 2 && !x.getNumImbCons().equals(x.getNumImbResi()))
|
||||
) {
|
||||
final String gestName = "DTB_DOCT";
|
||||
final String section = "FATTURA_PEDANE";
|
||||
@@ -471,6 +473,7 @@ public class DocumentiDirettiService {
|
||||
}
|
||||
|
||||
String codAnagPed, listino = null;
|
||||
|
||||
if (fatturaVettore) {
|
||||
if (UtilityString.isNullOrEmpty(dtbDoct.getCodFornTrasp()))
|
||||
throw new Exception("Codice fornitore del trasporto non presente sul documento");
|
||||
@@ -520,7 +523,7 @@ public class DocumentiDirettiService {
|
||||
listino = dtbDoct.getListino();
|
||||
}
|
||||
|
||||
List<DtbDocImb> imballi = dtbDoct.getDtbDocImb().stream().filter(x -> x.getTipoReso() != 2).collect(Collectors.toList());
|
||||
List<DtbDocImb> imballi = dtbDoct.getDtbDocImb().stream().filter(x -> x.getOperation() != OperationType.DELETE && x.getTipoReso() != 2).collect(Collectors.toList());
|
||||
Map<Boolean, List<DtbDocImb>> gruppoImballi = imballi.stream().collect(groupingBy(x -> x.getNumImbCons() > x.getNumImbResi()));
|
||||
for (Map.Entry<Boolean, List<DtbDocImb>> item : gruppoImballi.entrySet()) {
|
||||
String codDtipPed;
|
||||
|
||||
Reference in New Issue
Block a user