예제 #1
0
 /// <summary>
 /// Get Item Price Excluding Tax
 /// </summary>
 /// <param name="item">The line item</param>
 /// <param name="quantity">The line item quantity</param>
 /// <returns>Item price excluding tax</returns>
 private static decimal GetPriceExcludingTax(ILineItem item, decimal quantity)
 {
     return((item.PlacedPrice - (item.TryGetDiscountValue(x => x.OrderAmount) + item.TryGetDiscountValue(x => x.EntryAmount)) / item.Quantity) * quantity);
 }