17 lines
836 B
C#
17 lines
836 B
C#
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);
|
|
}
|
|
}
|