first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
using Fitness_core_BE.DTOs.Ledger;
using Microsoft.AspNetCore.Http;
namespace Fitness_core_BE.Interfaces.Services
{
// Basic P&L / ledger for the client portal. Derives income (approved member payments)
// and expenses (platform fees paid, staff payroll) from existing tables, and merges in
// manual ledger entries (LedgerEntry) for anything else (rent, utilities, misc income).
public interface IProfitLossService
{
Task<ProfitLossDto> GetProfitLossAsync(DateTime from, DateTime to, HttpContext httpContext);
Task<List<LedgerEntryDto>> GetManualEntriesAsync(DateTime from, DateTime to, HttpContext httpContext);
Task<LedgerEntryDto> AddManualEntryAsync(AddLedgerEntryRequest request, HttpContext httpContext);
Task DeleteManualEntryAsync(Guid id, HttpContext httpContext);
}
}