Distribution_GL Initialization
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
namespace General_Ledger_Service.DTOs.Bank
|
||||
{
|
||||
// Combined read shape for GET /bank-accounts?accountType=Cash|Bank|Both - BankAccount and
|
||||
// CashAccount are separate tables (decided 2026-07-22), but a caller listing "cash and bank
|
||||
// accounts" together needs one flat, filterable list rather than two separate calls.
|
||||
public class CashAndBankAccountDto
|
||||
{
|
||||
public string AccountType { get; set; } = string.Empty; // "Cash" | "Bank"
|
||||
public long AccountId { get; set; }
|
||||
public string AccountName { get; set; } = string.Empty;
|
||||
public string? BankName { get; set; } // Bank only
|
||||
public string? CashAccountTypeName { get; set; } // Cash only
|
||||
public string? AccountNumber { get; set; }
|
||||
public long GlAccountId { get; set; }
|
||||
public string GlAccountCode { get; set; } = string.Empty;
|
||||
public string CurrencyCode { get; set; } = string.Empty;
|
||||
public DateTime CreatedAt { get; set; }
|
||||
// Cash only - Bank accounts carry no such protection yet.
|
||||
public bool? IsActive { get; set; }
|
||||
public bool? IsDefault { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user