restores the bill

This commit is contained in:
2017-06-08 11:08:33 +02:00
parent a73744bd47
commit 7296f7177d
6 changed files with 23 additions and 19 deletions

View File

@ -78,10 +78,16 @@ namespace Yavsc.Models.Haircut
bill.Add(new CommandLine { Name = "Shampoing", UnitaryCost = SelectedProfile.ShampooPrice });
// la coupe
if (Prestation.Cut)
bill.Add(new CommandLine
if (Prestation.Cut) {
bill.Add(new CommandLine
{
Name = "Coupe",
Description = $"Coupe "+Startup.GlobalLocalizer[Prestation.Gender.ToString()]+ " "+
(Prestation.Gender == HairCutGenders.Women ?
Prestation.Length == HairLength.Long ? longhairsuffix :
Prestation.Length == HairLength.HalfLong ? halflonghairsuffix :
shorthairsuffix: null),
UnitaryCost =
Prestation.Gender == HairCutGenders.Women ?
Prestation.Length == HairLength.Long ? SelectedProfile.WomenLongCutPrice :
@ -90,6 +96,8 @@ Prestation.Gender == HairCutGenders.Women ?
SelectedProfile.ManCutPrice : SelectedProfile.KidCutPrice
});
}
// Les techniques
switch (Prestation.Tech)
{