예제 #1
0
        public static List <TaxCode> GetVatRates()
        {
            List <TaxCode> list = null;

            if (application != null)
            {
                Sage.Accounting.TaxModule.TaxCodes codes = Sage.Accounting.TaxModule.TaxCodesFactory.Factory.CreateNew();
                list = codes.GetList().Cast <Sage.Accounting.TaxModule.TaxCode>().ToList();
            }

            return(list);
        }
예제 #2
0
        public static List <TaxCode> GetVatRatesModifiedAfter(DateTime dt)
        {
            List <TaxCode> list = new List <TaxCode>();

            if (application != null)
            {
                Sage.Accounting.TaxModule.TaxCodes codes = Sage.Accounting.TaxModule.TaxCodesFactory.Factory.CreateNew();
                List <TaxCode> temp = codes.GetList().Cast <Sage.Accounting.TaxModule.TaxCode>().ToList();

                foreach (TaxCode code in temp)
                {
                    if (code.DateTimeUpdated > dt)
                    {
                        list.Add(code);
                    }
                }
            }

            return(list);
        }