Aggiunto controllo su deposito in fase di picking uscita
This commit is contained in:
parent
645045b492
commit
9d48fec426
@ -690,10 +690,11 @@ public class SpedizioneViewModel {
|
||||
if (mtbColt != null && mtbColt.getMtbColr() != null && !mtbColt.getMtbColr().isEmpty()) {
|
||||
if (mtbColt.getSegno() != -1) {
|
||||
|
||||
boolean codMdepMatchPreviousPick = mCurrentMtbColt != null && (mtbColt.getMtbColr().isEmpty() || mCurrentMtbColt.getCodMdep().equalsIgnoreCase(mtbColt.getCodMdep()));
|
||||
boolean codMdepIsValid = SettingsManager.iDB().getAvailableCodMdep().stream()
|
||||
.anyMatch(x -> x.getCodMdep().equalsIgnoreCase(mtbColt.getCodMdep()));
|
||||
|
||||
if (codMdepIsValid) {
|
||||
if (codMdepIsValid && codMdepMatchPreviousPick) {
|
||||
searchArtFromUL(mtbColt);
|
||||
} else throw new InvalidCodMdepException();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user