minor changes

This commit is contained in:
2017-07-15 03:49:06 +02:00
parent 4ab22d0e6a
commit 808eaa2513
7 changed files with 61 additions and 1287 deletions

View File

@ -70,10 +70,8 @@ namespace Yavsc.Models.Haircut
List<IBillItem> bill = new List<IBillItem>();
#if DEBUG
if (this.Prestation==null) throw new InvalidOperationException("Prestation");
if (this.SelectedProfile==null) throw new InvalidOperationException("SelectedProfile");
#endif
if (this.Prestation==null) throw new InvalidOperationException("Prestation property is null");
if (this.SelectedProfile==null) throw new InvalidOperationException("SelectedProfile property is null");
// Le shampoing
if (this.Prestation.Shampoo)
bill.Add(new CommandLine { Name = "Shampoing", Description="Shampoing", UnitaryCost = SelectedProfile.ShampooPrice });