public void ProcessInventoryCount() { IsDetailsBusy = true; InventoryCountHelper.AddOrUpdate(SelectedInventoryCount); SaveChanges(); StoredCallbackProcessor.StartAlohaSync(ignoreAsync: true); StoredCallbackProcessor.UpdateStock(); InventoryCountHelper.Process(SelectedInventoryCount); RefreshItemSource(); }
public override void ExecuteDelete() { if (!ConfirmDelete()) { return; } InventoryCountHelper.Delete(SelectedInventoryCount); ForceDetailsRefresh = true; SaveChanges(); InventoryCountCollection.Remove(SelectedInventoryCount); RaisePropertyChanged("InventoryCountCollection"); }
private void SaveInventoryCount() { if (!ValidateChanges()) { return; } AsyncHelper.DoAsync(() => { IsBusy = true; InventoryCountHelper.AddOrUpdate(SelectedInventoryCount); SaveChanges(); IsBusy = false; RefreshItemSource(); }); ViewModelManager.CloseModal(); }