Distribution_GL Initialization
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using General_Ledger_Service.Models;
|
||||
|
||||
namespace General_Ledger_Service.DTOs.Accounts
|
||||
{
|
||||
public class AccountDetailResponse
|
||||
{
|
||||
public Account Account { get; set; } = null!;
|
||||
public string? AncestorBreadcrumb { get; set; }
|
||||
public List<AccountTreeNode>? DescendantTree { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using General_Ledger_Service.Models;
|
||||
|
||||
namespace General_Ledger_Service.DTOs.Accounts
|
||||
{
|
||||
public class AccountListResponse
|
||||
{
|
||||
public List<Account> Items { get; set; } = [];
|
||||
public int TotalCount { get; set; }
|
||||
public int? Page { get; set; }
|
||||
public int? PageSize { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace General_Ledger_Service.DTOs.Accounts
|
||||
{
|
||||
public class AccountTreeNode
|
||||
{
|
||||
public long AccountId { get; set; }
|
||||
public string AccountCode { get; set; } = string.Empty;
|
||||
public string AccountName { get; set; } = string.Empty;
|
||||
public long? ParentAccountId { get; set; }
|
||||
public int Depth { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace General_Ledger_Service.DTOs.Accounts
|
||||
{
|
||||
public class CreateAccountRequest
|
||||
{
|
||||
public string AccountName { get; set; } = string.Empty;
|
||||
public long? ParentAccountId { get; set; }
|
||||
public short AccountTypeId { get; set; }
|
||||
public bool IsControlAccount { get; set; }
|
||||
public bool IsPostable { get; set; } = true;
|
||||
public string? CurrencyCode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace General_Ledger_Service.DTOs.Accounts
|
||||
{
|
||||
public class ListAccountsRequest
|
||||
{
|
||||
public short? AccountTypeId { get; set; }
|
||||
public bool? IsActive { get; set; }
|
||||
public bool? IsPostable { get; set; }
|
||||
public int? Page { get; set; }
|
||||
public int? PageSize { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace General_Ledger_Service.DTOs.Accounts
|
||||
{
|
||||
public class UpdateAccountRequest
|
||||
{
|
||||
public string? AccountName { get; set; }
|
||||
public bool ParentAccountIdProvided { get; set; }
|
||||
public long? ParentAccountId { get; set; }
|
||||
public short? AccountTypeId { get; set; }
|
||||
public bool? IsControlAccount { get; set; }
|
||||
public bool? IsPostable { get; set; }
|
||||
public string? CurrencyCode { get; set; }
|
||||
public string? CashFlowCategory { get; set; }
|
||||
public string? IncomeStatementSection { get; set; }
|
||||
public string? BalanceSheetClassification { get; set; }
|
||||
public bool? IsTaxDeductible { get; set; }
|
||||
public bool? IsActive { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user