36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
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; }
|
|
}
|