using Complex.Domain.Commons; using System.ComponentModel.DataAnnotations; namespace Complex.Domain.Entities { [Auditable] public class Transaction : BaseEntity { public int? TransactionTitleId { set; get; } public IncomeCostTitle? TransactionTitle { set; get; } [MaxLength(10)] public string TransactionPersianDate { set; get; } public DateTime TransactionDate { set; get; } public long Amount { set; get; } = 0; public string? Description { set; get; } public Guid? CostCycleId { set; get; } //افزونگی برای شارژ //public Guid ChargeTypeId { set; get; } /// /// null یعنی شارژ /// //public int? ChargeTypeId { set; get; } public virtual CostCycle? CostCycle { set; get; } public Guid? UnitId { set; get; } public virtual Unit? Unit { set; get; } //public string? TrackingCode { set; get; } //public long Remaining { set; get; } = 0; /// ///شماره فیش. اگر با فیش چیزی واریز شده است /// public string? FicheId { set; get; } public Guid ComplexId { set; get; } public long UnitCostId { set; get; } public virtual UnitCost? UnitCost { set; get; } public string PersonId { set; get; } public Person Person { set; get; } } }