paying
This commit is contained in:
parent
aa4cc44453
commit
22d476ebce
10 changed files with 28 additions and 24 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue