Example #1
0
 protected override void UpdateTotals()
 {
     TotalQuantity      = ItemsShowing.Sum(x => x.Quantity);
     TotalSales         = ItemsShowing.Sum(x => x.Amount);
     TotalCost          = ItemsShowing.Sum(x => x.Cost);
     TotalProfit        = ItemsShowing.Sum(x => x.Profit);
     AverageCostPercent = totalSales == 0 ? 0 : totalCost / totalSales;
 }
Example #2
0
 protected override void UpdateTotals()
 {
     TotalCost     = ItemsShowing.Sum(x => x.Cost);
     TotalRealCost = ItemsShowing.Sum(x => x.RealCost);;
 }
Example #3
0
 protected override void UpdateTotals()
 {
     TotalSales       = ItemsShowing.Sum(x => x.Amount);
     TotalClients     = ItemsShowing.Sum(x => x.Clients);
     SpendingByClient = totalClients == 0 ? 0 : totalSales / totalClients;
 }