using System.Collections.Generic; namespace AccountsDAL.DTO.AccountsReports { // Profit & Loss Dashboard — legacy's "ProfitAndLossForDashboard" (AccountsReports.svc), a // period-bucketed waterfall (Revenue/COGS/GrossMargin/OtherIncome/OperatingExpenses/EBITDA/ // Depreciation/EBIT/Interest/IncomeTax/NetProfit + each *Percent sibling), reading from the // already-posted FFINANCE fact table (see the plan file's "Finance Dashboard Migration" // section) instead of legacy's repeated-grand-total-on-every-row shape — this is a clean // composite object (Items + Totals), same convention as CashFlowIndirectResultDTO. public class AccountProfitLossDashboardResultDTO { public List Items { get; set; } = new(); public AccountProfitLossDashboardTotalsDTO Totals { get; set; } = new(); } public class AccountProfitLossDashboardRowDTO { public string Periodtype { get; set; } = string.Empty; public int SlNo { get; set; } public System.DateTime FromDate { get; set; } public System.DateTime ToDate { get; set; } public decimal Revenue { get; set; } public decimal COGS { get; set; } public decimal COGSPercent { get; set; } public decimal GrossMargin { get; set; } public decimal GrossMarginPercent { get; set; } public decimal OtherIncome { get; set; } public decimal OtherIncomePercent { get; set; } public decimal GPAndOtherIncome { get; set; } public decimal GPAndOtherIncomePercent { get; set; } public decimal OperatingExpenses { get; set; } public decimal OperatingExpensesPercent { get; set; } public decimal EBITDA { get; set; } public decimal EBITDAPercent { get; set; } public decimal Depreciation { get; set; } public decimal DepreciationPercent { get; set; } public decimal EBIT { get; set; } public decimal EBITPercent { get; set; } public decimal Interest { get; set; } public decimal InterestPercent { get; set; } public decimal IncomeTax { get; set; } public decimal NetProfit { get; set; } public decimal NetProfitPercent { get; set; } } public class AccountProfitLossDashboardTotalsDTO { public decimal Revenue { get; set; } public decimal COGS { get; set; } public decimal GrossMargin { get; set; } public decimal OtherIncome { get; set; } public decimal GPAndOtherIncome { get; set; } public decimal OperatingExpenses { get; set; } public decimal EBITDA { get; set; } public decimal Depreciation { get; set; } public decimal EBIT { get; set; } public decimal Interest { get; set; } public decimal IncomeTax { get; set; } public decimal NetProfit { get; set; } } }