This commit is contained in:
Paul Schneider 2017-05-30 23:42:04 +02:00
commit 22d476ebce
10 changed files with 28 additions and 24 deletions

View file

@ -14,8 +14,10 @@ namespace Yavsc.Models.Billing
public abstract class NominativeServiceCommand : IBaseTrackedEntity, IQuery, IIdentified<long>
{
public string GetInvoiceId() { return GetType().Name + "/" + Id; }
public abstract long Id { get; set; }
public abstract string Description { get; set; }
public abstract string GetDescription ();
[Required()]
public bool Consent { get; set; }

View file

@ -13,13 +13,13 @@ namespace Yavsc.Models.Haircut
{
// Bill description
public override string Description
public override string GetDescription()
{
get;
set;
var type = Startup.GlobalLocalizer[this.GetType().Name];
var gender = Startup.GlobalLocalizer[this.Prestation.Gender.ToString()];
return $"{type} ({gender})";
}
= "Prestation en coiffure à domicile";
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
override public long Id { get; set; }

View file

@ -24,13 +24,11 @@ namespace Yavsc.Models.Haircut
public class HairMultiCutQuery : NominativeServiceCommand
{
// Bill description
public override string Description
// Bill description
public override string GetDescription()
{
get;
set;
} = "Prestation en coiffure à domicile [commande groupée]";
return "Prestation en coiffure à domicile [commande groupée]";
}
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
override public long Id { get; set; }

View file

@ -42,12 +42,10 @@ namespace Yavsc.Models.Workflow
[Display(Name="GiveAnExplicitReason")]
public string Reason { get; set; }
public override string Description
public override string GetDescription ()
{
get;
set;
} = "Rendez-vous";
return "Rendez-vous";
}
public RdvQuery()
{