spedizione: bugfix calcolo qta residua in picking da collo

This commit is contained in:
Valerio Castellana 2022-05-27 09:45:35 +02:00
parent 05314803bc
commit 33a01b2c15

View File

@ -757,6 +757,9 @@ public class SpedizioneViewModel {
this.getPickingList().postValue(pickingList); this.getPickingList().postValue(pickingList);
} else { } else {
MtbColt refMtbColt = matchedItem.getRefMtbColt(); MtbColt refMtbColt = matchedItem.getRefMtbColt();
if (matchedItem.getMtbColts() != null && matchedItem.getMtbColts().size() == 1) {
refMtbColt = matchedItem.getMtbColts().get(0);
}
MtbColr refMtbColr = refMtbColt != null ? refMtbColt.getMtbColr().get(0) : null; MtbColr refMtbColr = refMtbColt != null ? refMtbColt.getMtbColr().get(0) : null;
this.dispatchOrdineRow(matchedItem, refMtbColt, refMtbColr, refMtbColr == null); this.dispatchOrdineRow(matchedItem, refMtbColt, refMtbColr, refMtbColr == null);
} }