Exemple #1
0
        public List <ARSalesOrder> GetSalesOrderDetailsByCustomerId(string companyID, string customerId)
        {
            DataHelper          objHelper     = new DataHelper();
            List <ARSalesOrder> objSalesOrder = new List <ARSalesOrder>();

            try
            {
                objSalesOrder = objHelper.GetSalesOrderDetailsByCustomerId(companyID, customerId);
            }
            catch (Exception ex)
            {
                ARSalesOrder objARsalesOrder = new ARSalesOrder();
                objARsalesOrder.ErrorMsg = ex.Message.ToString();
            }
            return(objSalesOrder);
        }
Exemple #2
0
        public List <ARSalesOrder> GetSalesOrderDetails(string companyID, string invoiceNo)
        {
            List <ARSalesOrder> objARSalesOrder = new List <ARSalesOrder>();

            try
            {
                DataHelper objHelper = new DataHelper();
                objARSalesOrder = objHelper.GetSalesOrderDetails(companyID, invoiceNo);
            }
            catch (Exception ex)
            {
                ARSalesOrder arSalesOrder = new ARSalesOrder();
                objARSalesOrder.Add(arSalesOrder);
                arSalesOrder.ErrorMsg = ex.Message.ToString();
                return(objARSalesOrder);
            }
            return(objARSalesOrder);
        }