Fix anomalie
Some checks failed
WMS - Android (New)/pipeline/head Something is wrong with the build of this commit
Some checks failed
WMS - Android (New)/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@@ -16,10 +16,10 @@ public class GetColloInGiacResponseDTO {
|
||||
private String descrizioneLivelloAnomalia;
|
||||
|
||||
@SerializedName("escludiPickingVendita")
|
||||
private Boolean escludiPickingVendita;
|
||||
private Boolean escludiPickingVendita = false;
|
||||
|
||||
@SerializedName("escludiPickingLavorazione")
|
||||
private Boolean escludiPickingLavorazione;
|
||||
private Boolean escludiPickingLavorazione = false;
|
||||
|
||||
public MtbColt getMtbColt() {
|
||||
return mtbColt;
|
||||
|
||||
@@ -428,7 +428,7 @@ public class ProdVersamentoMaterialeViewModel {
|
||||
private void checkAnomaliaUl(GetColloInGiacResponseDTO colloInGiac) {
|
||||
if (colloInGiac.getEscludiPickingLavorazione()) {
|
||||
this.sendError(new AnomaliaUlException(colloInGiac));
|
||||
} else {
|
||||
} else if (colloInGiac.getMessageAnomalia() != null) {
|
||||
this.sendWarning(colloInGiac.getMessageAnomalia(), () -> {
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1884,8 +1884,9 @@ public class SpedizioneViewModel {
|
||||
this.sendError(new AnomaliaUlException(colloInGiac));
|
||||
} else if (colloInGiac.getEscludiPickingVendita() && mDefaultGestioneOfUL == GestioneEnum.VENDITA) {
|
||||
this.sendError(new AnomaliaUlException(colloInGiac));
|
||||
} else {
|
||||
this.onWarning(colloInGiac.getMessageAnomalia(), () -> {});
|
||||
} else if (colloInGiac.getMessageAnomalia() != null) {
|
||||
this.onWarning(colloInGiac.getMessageAnomalia(), () -> {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user