public virtual void ActionUnPosted() { GLReceiptEntities entity = (GLReceiptEntities)CurrentModuleEntity; ICReceiptsInfo objReceiptsInfo = (ICReceiptsInfo)CurrentModuleEntity.MainObject; objReceiptsInfo.ICReceiptPostedStatus = PostedTransactionStatus.UnPosted.ToString(); entity.UpdateMainObject(); GLHelper.UnPostedTransactions(this.CurrentModuleName, objReceiptsInfo.ICReceiptID, ModulePostingType.Accounting, ModulePostingType.Stock); InvalidateToolbar(); }
public GLReceiptModule(string moduleName, GLReceiptEntities entity) { CurrentModuleName = moduleName; CurrentModuleEntity = entity; CurrentModuleEntity.Module = this; }