yavsc/Yavsc/Models/Billing/ReductionCode.cs

33 lines
711 B
C#
Raw Normal View History

2016-08-30 23:04:13 +02:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2017-05-27 16:22:58 +02:00
using Yavsc.Billing;
2017-05-12 12:15:57 +02:00
2016-08-30 23:04:13 +02:00
namespace Yavsc.Models.Billing {
public class ReductionCode : IBillingClause
{
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public ReductionCode(string descr, decimal impact) {
Description = descr;
impacter = new FixedImpacter(impact);
}
public string Description
{
get;
set;
}
IBillingImpacter impacter;
public IBillingImpacter Impacter
{
get
{
return impacter ;
}
private set {
impacter = value;
}
}
}
2017-05-12 12:15:57 +02:00
}