Fix su caricamento durante il chiudi ordini spedizione
This commit is contained in:
parent
a2ef35e353
commit
60e725f554
@ -855,11 +855,9 @@ public class SpedizioneActivity extends BaseActivity implements SpedizioneViewMo
|
||||
public void closeOrder() {
|
||||
this.fabPopupMenu.dismiss();
|
||||
|
||||
this.onLoadingStarted();
|
||||
executorService.execute(() -> {
|
||||
try {
|
||||
this.mViewmodel.closeOrder();
|
||||
this.onLoadingEnded();
|
||||
} catch (Exception e) {
|
||||
onError(e);
|
||||
}
|
||||
|
||||
@ -2127,7 +2127,10 @@ public class SpedizioneViewModel {
|
||||
|
||||
if (SettingsManager.iDB().isFlagPrintEtichetteOnOrderClose() || SettingsManager.iDB().isFlagPrintPackingListOnOrderClose()) {
|
||||
var printRequestResult = this.sendOnCloseOrderPrintRequest();
|
||||
|
||||
this.sendOnLoadingStarted();
|
||||
this.onCloseOrderPrintRequested(printRequestResult);
|
||||
this.sendOnLoadingEnded();
|
||||
}
|
||||
|
||||
if (this.mIsOrdTrasf && !UtilityString.isNullOrEmpty(SettingsManager.iDB().getCodDtipOrdTrasfV())) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user