public void SaveOrderHistoryAsConfirmation(OrderHistoryFile histFile)
        {
            NewRelic.Api.Agent.NewRelic.AddCustomParameter("ControlNumber", histFile.Header.ControlNumber);
            NewRelic.Api.Agent.NewRelic.AddCustomParameter("CustomerNumber", histFile.Header.CustomerNumber);
            NewRelic.Api.Agent.NewRelic.AddCustomParameter("BranchId", histFile.Header.BranchId);

            if (histFile.Header.OrderSystem == Core.Enumerations.Order.OrderSource.Entree)
            {
                ConfirmationFile confirmation = histFile.ToConfirmationFile();
                PurchaseOrder    po           = GetCsPurchaseOrderByNumber(histFile.Header.ControlNumber);

                if (po != null)
                {
                    // need to save away pre and post status info, then if different, add something to the messaging
                    LineItem[] currLineItems = new LineItem[po.LineItemCount];
                    LineItem[] origLineItems = new LineItem[po.LineItemCount];
                    po.OrderForms[0].LineItems.CopyTo(currLineItems, 0);
                    po.OrderForms[0].LineItems.CopyTo(origLineItems, 0);
                    string originalStatus = po.Status;

                    SetCsLineInfo(currLineItems, confirmation);

                    SetCsHeaderInfo(confirmation, po, currLineItems);

                    po.Save();
                }
            }
        }