Modifiche per inventario
This commit is contained in:
parent
4634f2ce9c
commit
feb79ff95d
@ -83,12 +83,13 @@ public class SplashActivity extends BaseActivity implements MainContext.Listener
|
|||||||
|
|
||||||
private void initPermissions(Runnable onComplete) {
|
private void initPermissions(Runnable onComplete) {
|
||||||
PermissionsHelper.askPermissions(this, onComplete, permanentlyDenied -> {
|
PermissionsHelper.askPermissions(this, onComplete, permanentlyDenied -> {
|
||||||
if (permanentlyDenied) {
|
if (permanentlyDenied)
|
||||||
onError(new SpannableString(getText(R.string.permissions_permanently_denied)));
|
onError(new SpannableString(getText(R.string.permissions_permanently_denied)));
|
||||||
|
|
||||||
} else {
|
|
||||||
initPermissions(onComplete);
|
// else {
|
||||||
}
|
// initPermissions(onComplete);
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -39,9 +39,10 @@ public abstract class _BaseRESTConsumer {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (response.code() == 404) {
|
if (response.code() == 404) {
|
||||||
Log.e(logTitle, "Errore " + response.code() + ": risorsa non trovata (" + response.raw().request().url().toString() + ")");
|
Log.e(logTitle, "Errore " + response.code() + ": risorsa non trovata (" + response.raw().request().url() + ")");
|
||||||
onFailed.run(new Exception("Errore " + response.code() + ": risorsa non trovata (" + logTitle + ")"));
|
onFailed.run(new Exception("Errore " + response.code() + ": risorsa non trovata (" + response.raw().request().url() + ")"));
|
||||||
} else if (response.code() == 550)
|
}
|
||||||
|
else if (response.code() == 550)
|
||||||
onFailed.run(new NotValidLicenseException());
|
onFailed.run(new NotValidLicenseException());
|
||||||
else {
|
else {
|
||||||
Log.e(logTitle, "Status " + response.code() + ": " + response.message());
|
Log.e(logTitle, "Status " + response.code() + ": " + response.message());
|
||||||
|
|||||||
@ -206,7 +206,8 @@ public class PickingInventarioActivity extends BaseActivity implements PickingIn
|
|||||||
.setDataScad(dataScad)
|
.setDataScad(dataScad)
|
||||||
.setCanOverflowOrderQuantity(canOverflowOrderQuantity)
|
.setCanOverflowOrderQuantity(canOverflowOrderQuantity)
|
||||||
.setCanPartitaMagBeChanged(canPartitaMagBeChanged)
|
.setCanPartitaMagBeChanged(canPartitaMagBeChanged)
|
||||||
.setCanLUBeClosed(canLUBeClosed);
|
.setCanLUBeClosed(canLUBeClosed)
|
||||||
|
.setNumCnfEditable(false);
|
||||||
|
|
||||||
if (!mDialogInputQuantityV2View.isVisible())
|
if (!mDialogInputQuantityV2View.isVisible())
|
||||||
mDialogInputQuantityV2View.setDialogInputQuantityV2DTO(dialogInputQuantityV2DTO)
|
mDialogInputQuantityV2View.setDialogInputQuantityV2DTO(dialogInputQuantityV2DTO)
|
||||||
|
|||||||
@ -252,9 +252,9 @@ public class PickingInventarioViewModel extends ViewModel {
|
|||||||
this.sendOnItemDispatched(
|
this.sendOnItemDispatched(
|
||||||
pickingObjectDTO,
|
pickingObjectDTO,
|
||||||
pickingObjectDTO.getMtbAart(),
|
pickingObjectDTO.getMtbAart(),
|
||||||
initialNumCnf,
|
null, //initialNumCnf,
|
||||||
initialQtaCnf,
|
initialQtaCnf,
|
||||||
initialQtaTot,
|
null, //initialQtaTot,
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
|
|||||||
@ -1652,11 +1652,12 @@ public class SpedizioneViewModel {
|
|||||||
onOrderClosedPrintingDone();
|
onOrderClosedPrintingDone();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<DtbOrdt> closedOrders = Stream.of(this.mTestateOrdini).map(ord -> {
|
List<DtbOrdt> closedOrders = Stream.of(this.mTestateOrdini)
|
||||||
DtbOrdt ordV = new DtbOrdt();
|
.map(ord -> {
|
||||||
ordV.setDataOrd(ord.getDataOrdS()).setNumOrd(ord.getNumOrd()).setGestione(ord.getGestione()).setCodAnag(ord.getCodAnagOrd());
|
DtbOrdt ordV = new DtbOrdt();
|
||||||
return ordV;
|
ordV.setDataOrd(ord.getDataOrdS()).setNumOrd(ord.getNumOrd()).setGestione(ord.getGestione()).setCodAnag(ord.getCodAnagOrd());
|
||||||
}).toList();
|
return ordV;
|
||||||
|
}).toList();
|
||||||
|
|
||||||
dto.setPrintList(closedOrders);
|
dto.setPrintList(closedOrders);
|
||||||
printClosedOrders(dto, this::onOrderClosedPrintingDone, ex -> this.sendLUPrintError(ex, this::sendOnLoadingEnded));
|
printClosedOrders(dto, this::onOrderClosedPrintingDone, ex -> this.sendLUPrintError(ex, this::sendOnLoadingEnded));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user