This commit is contained in:
Paul Schneider 2017-05-12 12:15:57 +02:00
commit 42c08797e3
44 changed files with 2798 additions and 350 deletions

View file

@ -5,7 +5,6 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Billing
{
using System;
using YavscLib.Billing;
public class CommandLine : ICommandLine {
@ -13,10 +12,14 @@ namespace Yavsc.Models.Billing
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
[Required,MaxLength(256)]
public string Name { get; set; }
[Required,MaxLength(512)]
public string Description { get; set; }
public int Count { get; set; }
[Display(Name="Nombre")]
public int Count { get; set; } = 1;
[DisplayFormat(DataFormatString="{0:C}")]
public decimal UnitaryCost { get; set; }
@ -31,7 +34,15 @@ namespace Yavsc.Models.Billing
get;
set;
} = "EUR";
[NotMapped]
public string Reference {
get {
return "CL/"+this.Id;
}
}
}
}

View file

@ -1,3 +1,5 @@
using YavscLib.Billing;
namespace Yavsc.Models.Billing   {
public class FixedImpacter : IBillingImpacter
{

View file

@ -9,7 +9,7 @@ namespace Yavsc.Models.Billing
using Workflow;
using YavscLib;
using YavscLib.Billing;
using YavscLib.Models.Workflow;
using YavscLib.Workflow;
public abstract class NominativeServiceCommand : IBaseTrackedEntity, IQuery, IIdentified<long>
{
@ -71,9 +71,6 @@ namespace Yavsc.Models.Billing
[ForeignKey("ActivityCode"),JsonIgnore,Display(Name="Domaine d'activité")]
public virtual Activity Context  { get; set ; }
public System.Collections.Generic.List<IBillItem> GetBillItems()
{
throw new NotImplementedException();
}
public abstract System.Collections.Generic.List<IBillItem> GetBillItems();
}
}

View file

@ -1,5 +1,7 @@
using YavscLib.Billing;
namespace Yavsc.Models.Billing   {
public class ProportionalImpacter : IBillingImpacter
public class ProportionalImpacter : IBillingImpacter
{
public decimal K { get; set; }
public decimal Impact(decimal orgValue)
@ -8,4 +10,4 @@ namespace Yavsc.Models.Billing   {
}
}
}
}

View file

@ -1,6 +1,8 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YavscLib.Billing;
namespace Yavsc.Models.Billing {
public class ReductionCode : IBillingClause
@ -28,4 +30,4 @@ public class ReductionCode : IBillingClause
}
}
}
}
}