Exemple #1
0
        /// <summary>
        /// Method to get all tax exempt system reasons
        /// </summary>
        /// <param name="oTeSystem">Tax exempt system</param>
        public void GetAllReasons(ref teSystem oTeSystem)
        {
            var gasReasons = _reasonService.GetTaxExemptReasons("FUEL");

            oTeSystem.GasReasons     = new TaxExemptReasons();
            oTeSystem.PropaneReasons = new TaxExemptReasons();
            oTeSystem.TobaccoReasons = new TaxExemptReasons();

            foreach (var taxExemptReason in gasReasons)
            {
                oTeSystem.GasReasons.AddReason(taxExemptReason, "");
            }


            var tobaccoReasons = _reasonService.GetTaxExemptReasons("TOBACCO");

            foreach (var taxExemptReason in tobaccoReasons)
            {
                oTeSystem.TobaccoReasons.AddReason(taxExemptReason, "");
            }


            var propaneReasons = _reasonService.GetTaxExemptReasons("PROPANE");

            foreach (var taxExemptReason in propaneReasons)
            {
                oTeSystem.PropaneReasons.AddReason(taxExemptReason, "");
            }
        }