public IEnumerable ViewTransactions(PXAdapter adapter) { if (Items.Current != null) { TransactionInquiry graph = PXGraph.CreateInstance <TransactionInquiry>(); graph.Filter.Current.ProjectID = Items.Current.ProjectID; graph.Filter.Current.ProjectTaskID = Items.Current.ProjectTaskID; graph.Filter.Current.AccountGroupID = Items.Current.AccountGroupID; graph.Filter.Current.InventoryID = Items.Current.InventoryID == PMInventorySelectorAttribute.EmptyInventoryID ? null : Items.Current.InventoryID; throw new PXPopupRedirectException(graph, Messages.ViewTransactions, true); } return(adapter.Get()); }
public IEnumerable ViewTransactions(PXAdapter adapter) { if (ProjectStatus.Current != null) { TransactionInquiry target = PXGraph.CreateInstance <TransactionInquiry>(); target.Filter.Insert(new TransactionInquiry.TranFilter()); target.Filter.Current.AccountGroupID = ProjectStatus.Current.AccountGroupID; target.Filter.Current.ProjectID = ProjectStatus.Current.ProjectID; target.Filter.Current.ProjectTaskID = ProjectStatus.Current.ProjectTaskID; if (ProjectStatus.Current.InventoryID != null && !ProjectDefaultAttribute.IsNonProject(this, ProjectStatus.Current.InventoryID)) { target.Filter.Current.InventoryID = ProjectStatus.Current.InventoryID; } throw new PXPopupRedirectException(target, Messages.TransactionInquiry + " - " + Messages.ViewTransactions, false); } return(adapter.Get()); }