using Complex.Domain.Commons;
using System.ComponentModel.DataAnnotations;
namespace Complex.Domain.Entities
{
///
/// مدیریت شارژ
///
[Auditable]//UnitCharge
public class CostCycle:BaseEntity
{
public Guid ComplexId { set; get; }
public virtual ComplexEntity Complex { set; get; }
public string Title { set; get; }
public DateOnly StartDate { set; get; }
public DateOnly EndDate { set; get; }
public long Amount { set; get; } = 0;
///
/// روز از ماه برای تشویقی
///
public int EncouragementDay { set; get; } = 0;
///
/// مبلغ اجاره با احتساب تشویقی
///
public long EncouragementAmount { set; get; } = 0;
///
/// اگر برای واحدهای خاصی بود
///
//public virtual List? UnitChargeCycles { set; get; }
public virtual ICollection Units { set; get; }
///
/// null یعنی شارژ
///
public int? IncomeCostTitleId { set; get; }
public virtual IncomeCostTitle? IncomeCostTitle { set; get; }
}
}