Example #1
0
        /// <summary>
        /// Method to get tax free tier level price difference
        /// </summary>
        /// <param name="tier">Tier id</param>
        /// <param name="level">Level id</param>
        /// <param name="cashPriceIncre">Cash price increment</param>
        /// <param name="creditPriceIncre">Credit price increment</param>
        /// <param name="bFound">Value found</param>
        /// <returns>True or false</returns>
        public bool TeGetTaxFreeTierLevelPriceDiff(short tier, short level, ref double cashPriceIncre, ref double creditPriceIncre, ref bool bFound)
        {
            bFound = false;

            var oRecs = _fuelPumpService.get_TierLevelPriceDiff((byte)tier, (byte)level);

            //eCategory and bFound are already set.
            if (oRecs != null)
            {
                cashPriceIncre   = CommonUtility.GetDoubleValue((oRecs.TaxExemptCashDiff));
                creditPriceIncre = CommonUtility.GetDoubleValue(oRecs.TaxExemptCreditDiff);
                bFound           = true;
            }
            else
            {
                return(false);
            }

            //There was no error, so set to true whether a taxfree price was found or not
            return(true);
        }
Example #2
0
 /// <summary>
 /// Method to get tier level price difference
 /// </summary>
 /// <param name="tier">Tier</param>
 /// <param name="level">Level</param>
 /// <returns>Tier level price difference</returns>
 public CTierLevelPriceDiff get_TierLevelPriceDiff(byte tier, byte level)
 {
     return(_fuelPumpService.get_TierLevelPriceDiff(tier, level));
 }