minChz.|<_|

This commit is contained in:
2018-02-25 03:33:54 +01:00
parent 715eec6ade
commit 1efd8bc36d
30 changed files with 3182 additions and 95 deletions

View File

@ -10,9 +10,9 @@ namespace Yavsc.Models.Billing
using Yavsc.Models.Payment;
using Yavsc;
using Yavsc.Billing;
using Yavsc.Workflow;
using Yavsc.Abstract.Workflow;
public abstract class NominativeServiceCommand : IBaseTrackedEntity, IQuery, IIdentified<long>
public abstract class NominativeServiceCommand : IBaseTrackedEntity, INominativeQuery, IIdentified<long>
{
public string GetInvoiceId() { return GetType().Name + "/" + Id; }
@ -77,6 +77,10 @@ namespace Yavsc.Models.Billing
[ForeignKey("ActivityCode"),JsonIgnore,Display(Name="Domaine d'activité")]
public virtual Activity Context  { get; set ; }
public bool Rejected { get; set; }
public DateTime RejectedAt { get; set; }
public abstract System.Collections.Generic.List<IBillItem> GetBillItems();
public bool GetIsAcquitted()
@ -91,16 +95,12 @@ namespace Yavsc.Models.Billing
var bcode = Startup.BillingMap[type];
return $"facture-{bcode}-{Id}{ack}";
}
[Display(Name = "PaymentId")]
public string PaymentId { get; set; }
[ForeignKey("PaymentId"), Display(Name = "Acquittement de la facture")]
public virtual PayPalPayment Regularisation { get; set; }
[Required]
public string BillingCode
{
get; set;
}
}
}

View File

@ -402,7 +402,8 @@ Prestation.Gender == HairCutGenders.Women ?
Id = Id,
ActivityCode = ActivityCode,
Reason = reason,
Sender = Client.GetSender()
Sender = sender,
BillingCode = BillingCodes.Brush
};
return yaev;
}