|
|
|
|
@ -20,11 +20,18 @@ namespace Yavsc.Models.Haircut
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
// Bill description
|
|
|
|
|
public override string Description { get
|
|
|
|
|
string _description = null;
|
|
|
|
|
public override string Description
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
string type = ResourcesHelpers.GlobalLocalizer[this.GetType().Name];
|
|
|
|
|
string gender = ResourcesHelpers.GlobalLocalizer[this.Prestation.Gender.ToString()];
|
|
|
|
|
return $"{type} ({gender})";
|
|
|
|
|
return $"{_description} {type} ({gender})";
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_description = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -80,7 +87,8 @@ namespace Yavsc.Models.Haircut
|
|
|
|
|
bill.Add(new CommandLine { Name = "Shampoing", Description = "Shampoing", UnitaryCost = SelectedProfile.ShampooPrice });
|
|
|
|
|
|
|
|
|
|
// la coupe
|
|
|
|
|
if (Prestation.Cut) {
|
|
|
|
|
if (Prestation.Cut)
|
|
|
|
|
{
|
|
|
|
|
bill.Add(new CommandLine
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
@ -364,10 +372,14 @@ Prestation.Gender == HairCutGenders.Women ?
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// les soins
|
|
|
|
|
if (Prestation.Cares) {
|
|
|
|
|
bill.Add(new CommandLine { Name = "Soins",
|
|
|
|
|
if (Prestation.Cares)
|
|
|
|
|
{
|
|
|
|
|
bill.Add(new CommandLine
|
|
|
|
|
{
|
|
|
|
|
Name = "Soins",
|
|
|
|
|
Description = "Soins",
|
|
|
|
|
UnitaryCost = SelectedProfile.CarePrice });
|
|
|
|
|
UnitaryCost = SelectedProfile.CarePrice
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return bill;
|
|
|
|
|
@ -381,7 +393,8 @@ Prestation.Gender == HairCutGenders.Women ?
|
|
|
|
|
|
|
|
|
|
public virtual BrusherProfile SelectedProfile { get; set; }
|
|
|
|
|
|
|
|
|
|
public HairCutQueryEvent CreateEvent(string subTopic, string reason, string sender) {
|
|
|
|
|
public HairCutQueryEvent CreateEvent(string subTopic, string reason, string sender)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
string evdate = EventDate?.ToString("dddd dd/MM/yyyy à HH:mm") ?? "[pas de date spécifiée]";
|
|
|
|
|
string address = Location?.Address ?? "[pas de lieu spécifié]";
|
|
|
|
|
@ -393,10 +406,12 @@ Prestation.Gender == HairCutGenders.Women ?
|
|
|
|
|
((l.Count != 1) ? "*" + l.Count.ToString() : "")));
|
|
|
|
|
var yaev = new HairCutQueryEvent(subTopic)
|
|
|
|
|
{
|
|
|
|
|
Client = new ClientProviderInfo {
|
|
|
|
|
Client = new ClientProviderInfo
|
|
|
|
|
{
|
|
|
|
|
UserName = Client.UserName,
|
|
|
|
|
UserId = ClientId,
|
|
|
|
|
Avatar = Client.Avatar } ,
|
|
|
|
|
Avatar = Client.Avatar
|
|
|
|
|
},
|
|
|
|
|
Previsional = Previsional,
|
|
|
|
|
EventDate = EventDate,
|
|
|
|
|
Location = Location,
|
|
|
|
|
|