Exemple #1
0
        /// <summary>
        /// Excises the tax affidavit calulate amount due.
        /// </summary>
        /// <param name="saleDate">The sale date.</param>
        /// <param name="paymentDate">The payment date.</param>
        /// <param name="exciseRateID">The excise rate ID.</param>
        /// <param name="taxCode">The tax code.</param>
        /// <param name="taxableSaleAmount">The taxable sale amount.</param>
        /// <returns>returns dataset</returns>
        public static ExciseTaxAffidavitAmountDueData GetExciseTaxAffidavitCalulateAmountDue(DateTime saleDate, DateTime paymentDate, int exciseRateID, int taxCode, double taxableSaleAmount)
        {
            string exciseAffidavitAmountDueDataValue;
            ExciseTaxAffidavitAmountDueData exciseTaxAffidavitAmountDueData = new ExciseTaxAffidavitAmountDueData();

            exciseAffidavitAmountDueDataValue = smartClientService.GetExciseTaxAffidavitCalulateAmountDue(saleDate, paymentDate, exciseRateID, taxCode, taxableSaleAmount);
            exciseTaxAffidavitAmountDueData.ReadXml(Utilities.SharedFunctions.XmlParser(exciseAffidavitAmountDueDataValue));
            return(exciseTaxAffidavitAmountDueData);
        }
Exemple #2
0
        /// <summary>
        /// Excises the tax affidavit calulate amount due.
        /// </summary>
        /// <param name="saleDate">The sale date.</param>
        /// <param name="paymentDate">The payment date.</param>
        /// <param name="exciseRateId">The excise rate ID.</param>
        /// <param name="taxCode">The tax code.</param>
        /// <param name="taxableSaleAmount">The taxable sale amount.</param>
        /// <returns>AmountDue Calcualted Value </returns>
        public static ExciseTaxAffidavitAmountDueData GetExciseTaxAffidavitCalulateAmountDue(DateTime saleDate, DateTime paymentDate, int exciseRateId, int taxCode, double taxableSaleAmount)
        {
            ExciseTaxAffidavitAmountDueData exciseTaxAffidavitAmountDueData = new ExciseTaxAffidavitAmountDueData();
            Hashtable ht = new Hashtable();

            ht.Add("@SaleDate", saleDate);
            ht.Add("@PaymentDate", paymentDate);
            ht.Add("@ExciseRateID", exciseRateId);
            ht.Add("@TaxCode", taxCode);
            ht.Add("@TaxableSaleAmount", taxableSaleAmount);
            Utility.LoadDataSet(exciseTaxAffidavitAmountDueData.AmountDue, "f1105_pcget_ExciseTaxAffidavitAmountDue", ht);
            return(exciseTaxAffidavitAmountDueData);
        }