This commit is contained in:
2023-07-23 20:27:23 +03:00
parent d0cdaa85b6
commit 96eca795ab
62 changed files with 2934 additions and 847 deletions
+6 -11
View File
@@ -1,22 +1,16 @@
namespace MyOffice.Data.Models.Accounts;
using Currencies;
public enum AccountTypeEnum
{
debit,
credit,
transit,
other,
}
using MyOffice.Data.Models.Users;
public class Account
{
public Guid Id { get; set; }
public string CurrencyGlobalId { get; set; } = null!;
public CurrencyGlobal? CurrencyGlobal { get; set; }
public Guid? OwnerId { get; set; }
public User? Owner { get; set; }
public string Name { get; set; } = null!;
public AccountTypeEnum Type { get; set; }
public IEnumerable<AccountAccess>? AccessRights { get; set; }
public IEnumerable<Motion>? Motions { get; set; }
public IEnumerable<AccountAccountCategory>? Categories { get; set; }
@@ -34,8 +28,9 @@ public struct AccountSimple
{
public Guid Id { get; set; }
public string Name { get; set; }
public string? CurrencyName { get; set; }
public string? CurrencyShortName { get; set; }
public AccountAccessTypeEnum Type { 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; }