This commit is contained in:
2023-07-21 21:06:45 +03:00
parent 2f108bef4f
commit fa5a8a9001
37 changed files with 2319 additions and 28 deletions
+14 -1
View File
@@ -8,6 +8,7 @@ public class Account
public string CurrencyGlobalId { get; set; } = null!;
public CurrencyGlobal? CurrencyGlobal { get; set; }
public string Name { get; set; } = null!;
//public bool IsRest { get; set; }
public IEnumerable<AccountAccess>? AccessRights { get; set; }
public IEnumerable<Motion>? Motions { get; set; }
public IEnumerable<AccountAccountCategory>? Categories { get; set; }
@@ -19,4 +20,16 @@ public class AccountDetailed
public decimal TotalPlus { get; set; }
public decimal TotalMinus { get; set; }
public decimal Rest => TotalPlus - TotalMinus;
}
}
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 decimal? TotalPlus { get; set; }
public decimal? TotalMinus { get; set; }
public decimal? Rest { get; set; }
}
+1
View File
@@ -18,4 +18,5 @@ public class Motion
public string? Description { get; set; }
public decimal AmountPlus { get; set; }
public decimal AmountMinus { get; set; }
public DateTime? DeletedOn { get; set; }
}