Files
Complex/Complex.Domain/Entities/Transaction.cs
2026-06-02 20:48:16 +03:30

42 lines
1.4 KiB
C#

using Complex.Domain.Commons;
using System.ComponentModel.DataAnnotations;
namespace Complex.Domain.Entities
{
[Auditable]
public class Transaction : BaseEntity<long>
{
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; }
/// <summary>
/// null یعنی شارژ
/// </summary>
//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;
/// <summary>
///شماره فیش. اگر با فیش چیزی واریز شده است
/// </summary>
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; }
}
}