[LICOR]
aggiunto controllo su dataconsegna null in filtro per data consegna ordini spedizione
This commit is contained in:
parent
fa6ad5a150
commit
ff128a1de2
@ -107,7 +107,7 @@ public class VenditaFiltroOrdiniViewModel {
|
||||
|
||||
if (dataConsegna == null) currentDataConsPredicate.set(null);
|
||||
else {
|
||||
currentDataConsPredicate.set(o -> DateUtils.isSameDay(o.getDataConsD(), dataConsegna));
|
||||
currentDataConsPredicate.set(o -> o.getDataConsD() != null && DateUtils.isSameDay(o.getDataConsD(), dataConsegna));
|
||||
}
|
||||
}
|
||||
|
||||
@ -137,8 +137,7 @@ public class VenditaFiltroOrdiniViewModel {
|
||||
if (mtbGrupList == null || mtbGrupList.isEmpty()) {
|
||||
currentGruppoMercPredicate.set(null);
|
||||
this.selectedMtbGrup = new ArrayList<>();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
this.selectedMtbGrup = mtbGrupList;
|
||||
var mtbGrups = Stream.of(mtbGrupList).map(MtbGrup::getCodMgrp).toList();
|
||||
currentGruppoMercPredicate.set(o -> Stream.of(o.getAvailableClassMerc())
|
||||
@ -693,6 +692,7 @@ public class VenditaFiltroOrdiniViewModel {
|
||||
.sortBy(JtbComt::getCodJcom)
|
||||
.toList();
|
||||
}
|
||||
|
||||
public List<JtbComt> getAvailableCommesse(List<JtbComt> commesseFullList) {
|
||||
|
||||
if (currentIdViaggioPredicate.get() == null &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user