19 lines
828 B
C#
19 lines
828 B
C#
using General_Ledger_Service.DTOs.Reports;
|
|
using General_Ledger_Service.Models;
|
|
|
|
namespace General_Ledger_Service.Interfaces.Repositories
|
|
{
|
|
public interface IJournalEntryRepository
|
|
{
|
|
Task<JournalEntry?> GetJournalEntryByJournalNoAsync(string journalNo);
|
|
Task<int> CountJournalEntriesForYearAsync(int year);
|
|
Task<JournalEntry> AddJournalEntryAsync(JournalEntry entry);
|
|
|
|
Task AddJournalEntryLinesAsync(IEnumerable<JournalEntryLine> lines);
|
|
Task<List<GeneralLedgerLineDto>> GetGeneralLedgerLinesAsync(long accountId, DateOnly periodStart, DateOnly periodEnd);
|
|
Task<List<GeneralLedgerLineDto>> GetGeneralLedgerLinesForAllAccountsAsync(DateOnly periodStart, DateOnly periodEnd);
|
|
|
|
Task<JournalCorrection> AddJournalCorrectionAsync(JournalCorrection correction);
|
|
}
|
|
}
|