This commit is contained in:
2023-07-21 23:01:56 +03:00
parent fa5a8a9001
commit d0cdaa85b6
18 changed files with 863 additions and 178 deletions
+14 -5
View File
@@ -2,13 +2,21 @@
using Currencies;
public enum AccountTypeEnum
{
debit,
credit,
transit,
other,
}
public class Account
{
public Guid Id { get; set; }
public string CurrencyGlobalId { get; set; } = null!;
public CurrencyGlobal? CurrencyGlobal { get; set; }
public string Name { get; set; } = null!;
//public bool IsRest { get; set; }
public AccountTypeEnum Type { get; set; }
public IEnumerable<AccountAccess>? AccessRights { get; set; }
public IEnumerable<Motion>? Motions { get; set; }
public IEnumerable<AccountAccountCategory>? Categories { get; set; }
@@ -26,10 +34,11 @@ public struct AccountSimple
{
public Guid Id { get; set; }
public string Name { get; set; }
public string CurrencyId { get; set; }
public string CurrencyShortName { get; set; }
public decimal CurrencyRate { get; set; }
public string? CurrencyName { get; set; }
public string? CurrencyShortName { get; set; }
public decimal? CurrencyRate { get; set; }
public int? CurrencyQuantity { get; set; }
public decimal? TotalPlus { get; set; }
public decimal? TotalMinus { get; set; }
public decimal? Rest { get; set; }
public decimal? Balance { get; set; }
}