From 0aa9ac202ba7cc6b0f9a78970d75af94c934baf2 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 19 May 2017 23:35:36 +0200 Subject: [PATCH] les commandes nominatives ont un identifiant de paiment --- Yavsc/Models/Billing/NominativeServiceCommand.cs | 5 +++++ YavscLib/Billing/IBillable.cs | 1 + YavscLib/Workflow/IQuery.cs | 1 + 3 files changed, 7 insertions(+) diff --git a/Yavsc/Models/Billing/NominativeServiceCommand.cs b/Yavsc/Models/Billing/NominativeServiceCommand.cs index cd097c4b..38713068 100644 --- a/Yavsc/Models/Billing/NominativeServiceCommand.cs +++ b/Yavsc/Models/Billing/NominativeServiceCommand.cs @@ -7,6 +7,7 @@ namespace Yavsc.Models.Billing { using Newtonsoft.Json; using Workflow; + using Yavsc.Models.Payment; using YavscLib; using YavscLib.Billing; using YavscLib.Workflow; @@ -75,5 +76,9 @@ namespace Yavsc.Models.Billing public virtual Activity Context  { get; set ; } public abstract System.Collections.Generic.List GetBillItems(); + public string PaymentId { get; set; } + + [ForeignKey("PaymentId"), Display(Name = "Acquittement de la facture")] + public virtual PaypalPayment Regularisation { get; set; } } } diff --git a/YavscLib/Billing/IBillable.cs b/YavscLib/Billing/IBillable.cs index 516ad9df..c54b6a9e 100644 --- a/YavscLib/Billing/IBillable.cs +++ b/YavscLib/Billing/IBillable.cs @@ -5,6 +5,7 @@ namespace YavscLib.Billing public interface IBillable { string Description { get; set; } List GetBillItems(); + long Id { get; set; } } } diff --git a/YavscLib/Workflow/IQuery.cs b/YavscLib/Workflow/IQuery.cs index 43ce6a8a..09f679be 100644 --- a/YavscLib/Workflow/IQuery.cs +++ b/YavscLib/Workflow/IQuery.cs @@ -6,5 +6,6 @@ namespace YavscLib.Workflow public interface IQuery: IBaseTrackedEntity, IBillable { QueryStatus Status { get; set; } + string PaymentId { get; set; } } }