public void SaveNewChanges(bool isAsync = false)
        {
            if (!isAsync)
            {
                if (!ConfirmDialog("Desea Guardar Los Cambios", "Guardar"))
                {
                    UndoChanges();
                    return;
                }
            }

            var needUpdate = GoodsReceiptHelper.SaveNewDetailsCommand(SelectedGoodsReceipt, SelectedGroup, SelectedMovement);

            if (needUpdate)
            {
                GoodsReceiptsDetails.ToList().ForEach(d => SelectedGoodsReceipt.IGN1_GoodsReceiptDetail.Add(d));
            }

            if (!isAsync)
            {
                ViewModelManager.CloseModal();
                ForceRefresh = true;
                RaisePropertyChanged("GoodsReceipts");
            }
        }
        void articleChooserViewModel_OnSelect(OITM_Articles obj)
        {
            IsModalVisible = false;

            var branch = obj.OITW_BranchArticles.FirstOrDefault();
            //var OnHand1 = branch == null ? 0 : branch.OnHand1;

            var detail = new IGN1_GoodsReceiptDetail()
            {
                ItemCode = obj.ItemCode,
                Quantity = ArticleChooserViewModel.Quantity,
                UnitMsr  = obj.InvntryUom,
                AcctCode = obj.AccCount,
                //OITM_Articles = obj
                Dscription = obj.ItemName,
            };


            ArticleChooserViewModel.CleanFields();

            GoodsReceiptsDetails.Add(detail);

            if (SelectedGoodsReceipt != null)
            {
                SelectedGoodsReceipt.IGN1_GoodsReceiptDetail.Add(detail);
            }

            IsEnabled = GoodsReceiptsDetails.Count == 0;
            RaisePropertyChanged("GoodsReceiptsDetails");
        }