refactoring
This commit is contained in:
@@ -9,7 +9,7 @@ public class Account
|
||||
public CurrencyGlobal? CurrencyGlobal { get; set; }
|
||||
public string Name { get; set; } = null!;
|
||||
public IEnumerable<AccountAccess>? AccessRights { get; set; }
|
||||
public IEnumerable<AccountMotion>? Motions { get; set; }
|
||||
public IEnumerable<Motion>? Motions { get; set; }
|
||||
public IEnumerable<AccountAccountCategory>? Categories { get; set; }
|
||||
}
|
||||
|
||||
|
||||
+8
-4
@@ -1,16 +1,20 @@
|
||||
namespace MyOffice.Data.Models.Accounts;
|
||||
|
||||
using MyOffice.Data.Models.Motions;
|
||||
using Items;
|
||||
|
||||
public class AccountMotion
|
||||
/// <summary>
|
||||
/// Account motion
|
||||
/// DateTime: 2023-01-01, Account: 'Debit card', Item.ItemGlobal: 'Primary salary', AmountPlus: 5000
|
||||
/// </summary>
|
||||
public class Motion
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public DateTime CreatedOn { get; set; }
|
||||
public DateTime DateTime { get; set; }
|
||||
public int MotionId { get; set; }
|
||||
public MotionAccount Motion { get; set; } = null!;
|
||||
public Guid AccountId { get; set; }
|
||||
public Account Account { get; set; } = null!;
|
||||
public int ItemId { get; set; }
|
||||
public Item Item { get; set; } = null!;
|
||||
public string? Description { get; set; }
|
||||
public decimal AmountPlus { get; set; }
|
||||
public decimal AmountMinus { get; set; }
|
||||
Reference in New Issue
Block a user