namespace AccountsDAL.DTO.AccountsReports { // One row shape for all 4 VoucherSummaryGroupByBuilder GroupTypes. SubAccountId/Code/Name are // only populated by GroupType=3 (ControlAccount+Account pair) — left at their default for the // other 3 GroupTypes, harmless since Dapper only binds columns the query actually selects. public class VoucherSummaryReportDTO { public int Id { get; set; } public string Code { get; set; } = string.Empty; public string Name { get; set; } = string.Empty; public int SubAccountId { get; set; } public string SubAccountCode { get; set; } = string.Empty; public string SubAccountName { get; set; } = string.Empty; public int ActiveNumber { get; set; } public int UnApprovedNumber { get; set; } public decimal Debit { get; set; } public decimal Credit { get; set; } } }