Beispiel #1
0
 public PriceCalculation(Arrangement arrangement, Limousine limousine, Client client, DateTime reservationDateStart, DateTime reservationDateEnd)
 {
     Hours             = arrangement.GetHours(reservationDateStart, reservationDateEnd, limousine.FirstHourPrice);
     Subtotal          = (int)arrangement.Price;
     ChargedDiscounts  = CalculateChargedDiscounts(Subtotal, client);
     TotalExclusiveVAT = Subtotal - ChargedDiscounts;
     VATAmount         = TotalExclusiveVAT * (Decimal)vatPercentage;
     Total             = TotalExclusiveVAT + VATAmount;
 }