37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
namespace General_Ledger_Service.Models
|
|
{
|
|
public class Currency
|
|
{
|
|
public string CurrencyCode { get; set; } = string.Empty;
|
|
public string CurrencyName { get; set; } = string.Empty;
|
|
public string? Symbol { get; set; }
|
|
public short DecimalPlaces { get; set; }
|
|
public bool IsBaseCurrency { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|
|
|
|
public class CurrencyRoundingRule
|
|
{
|
|
public string CurrencyCode { get; set; } = string.Empty;
|
|
public string RoundingMethod { get; set; } = string.Empty;
|
|
public long? RoundingAccountId { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
public Currency Currency { get; set; } = null!;
|
|
public Account? RoundingAccount { get; set; }
|
|
}
|
|
|
|
public class ExchangeRate
|
|
{
|
|
public long RateId { get; set; }
|
|
public string CurrencyCode { get; set; } = string.Empty;
|
|
public DateOnly RateDate { get; set; }
|
|
public decimal RateToBase { get; set; }
|
|
public string RateSource { get; set; } = string.Empty;
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
public Currency Currency { get; set; } = null!;
|
|
}
|
|
}
|