Distribution_GL Initialization

This commit is contained in:
2026-10-20 13:07:07 +05:30
commit 3f16e0cb44
194 changed files with 35659 additions and 0 deletions
+22
View File
@@ -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; }
}
}