Exemple #1
0
 private static decimal GetPrice(Order order, decimal serviceAmount, decimal sum, decimal exchangeRate, bool taxIncluded)
 {
     var result = order.GetPrice();
     var tax = taxIncluded ? 0 : order.GetTaxAmount(false, sum, serviceAmount);
     if (serviceAmount != 0 && sum != 0) result += (result * serviceAmount) / sum;
     result += tax;
     result = result / exchangeRate;
     return result;
 }
Exemple #2
0
 private decimal GetPrice(Order order, decimal serviceAmount, decimal sum, decimal exchangeRate)
 {
     var result = order.GetPrice();
     if (serviceAmount != 0 && sum != 0) result += (result * serviceAmount) / sum;
     result = result / exchangeRate;
     return result;
 }
Exemple #3
0
 private static string GetKey(Order order)
 {
     return string.Format(Keyformat, order.MenuItemId, order.GetPrice());
 }