/// <summary> /// Converts the invoice xml into SaleOrder object. /// </summary> /// <param name="xmlInvoice">The xml that represents the invoices.</param> /// <param name="context">The CRT context.</param> /// <returns>The Sales Orders.</returns> /// <exception cref="XmlException">Thrown when xmlInvoice does not represent a valid XML text.</exception> public static SalesOrder GetSalesOrderFromXml(string xmlInvoice, RequestContext context) { SalesOrder order = InvoiceHelper.ConvertXmlToSaleOrder(xmlInvoice, context); return(order); }