feat(expense): add expense, category, and monthly-statement DTOs
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
namespace ROLAC.API.DTOs.Expense;
|
||||
|
||||
public class MonthlyStatementDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int Year { get; set; }
|
||||
public int Month { get; set; }
|
||||
public decimal OpeningBalance { get; set; }
|
||||
public decimal TotalGiving { get; set; }
|
||||
public decimal TotalOtherIncome { get; set; }
|
||||
public decimal TotalExpenses { get; set; }
|
||||
public decimal CalculatedClosingBalance { get; set; }
|
||||
public decimal BankStatementBalance { get; set; }
|
||||
public decimal Difference { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
public bool IsFinalized { get; set; }
|
||||
}
|
||||
|
||||
public class CreateMonthlyStatementRequest
|
||||
{
|
||||
[Range(2000, 2100)] public int Year { get; set; }
|
||||
[Range(1, 12)] public int Month { get; set; }
|
||||
public decimal OpeningBalance { get; set; }
|
||||
public decimal TotalOtherIncome { get; set; }
|
||||
public decimal BankStatementBalance { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
}
|
||||
public class UpdateMonthlyStatementRequest
|
||||
{
|
||||
public decimal OpeningBalance { get; set; }
|
||||
public decimal TotalOtherIncome { get; set; }
|
||||
public decimal BankStatementBalance { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user