public static List <CostCentre> GetCostCentres()
        {
            List <CostCentre> list = null;

            if (application != null)
            {
                Sage.Accounting.SystemManager.CostCentres costcentres = Sage.Accounting.SystemManager.CostCentresFactory.Factory.CreateNew();
                list = costcentres.GetList().Cast <CostCentre>().ToList();
            }

            return(list);
        }
        public static List <CostCentre> GetCostCentresModifiedAfter(DateTime dt)
        {
            List <CostCentre> list = new List <CostCentre>();

            if (application != null)
            {
                Sage.Accounting.SystemManager.CostCentres costcentres = Sage.Accounting.SystemManager.CostCentresFactory.Factory.CreateNew();
                List <CostCentre> temp = costcentres.GetList().Cast <CostCentre>().ToList();

                foreach (CostCentre costcentre in temp)
                {
                    if (costcentre.DateTimeUpdated > dt)
                    {
                        list.Add(costcentre);
                    }
                }
            }

            return(list);
        }