private bool AdexLineItemIsReceivable() { return(true); if (m_lineItem.PurchaseOrder.Order.OrderType == OrderType.ADEX) { SalesOrder so = m_lineItem.PurchaseOrder.Order.GetContract <SalesOrder>() as SalesOrder; if (so != null) { SalesLineItem sli = so.GetLineByPart(m_lineItem.Part); if (sli.ProcessedQty <= m_lineItem.ProcessedQty) { m_error = "This line cannot be received against until more units are shipped for this part."; return(false); } } } return(true); }