Enhance financial report accuracy by including closing journals in profit and loss calculations and trial balances; add idempotency check for journal entry creation.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace General_Ledger_Service.Interfaces.Repositories
|
||||
Task<Account> AddAsync(Account account);
|
||||
Task<List<TrialBalanceRowDto>> GetTrialBalanceAsync(DateOnly asOfDate);
|
||||
Task<List<BalanceSheetLeafRowDto>> GetBalanceSheetLeafRowsAsync(DateOnly asOfDate);
|
||||
Task<List<ProfitAndLossLeafRowDto>> GetProfitAndLossLeafRowsAsync(DateOnly periodStart, DateOnly periodEnd);
|
||||
Task<List<ProfitAndLossLeafRowDto>> GetProfitAndLossLeafRowsAsync(DateOnly periodStart, DateOnly periodEnd, bool includeClosing = false);
|
||||
Task<List<CashFlowWorkingCapitalChangeDto>> GetCashFlowWorkingCapitalChangesAsync(DateOnly periodStart, DateOnly periodEnd, long cashAccountRootId);
|
||||
Task<List<CashFlowLineDto>> GetCashFlowCategoryLinesAsync(string category, DateOnly periodStart, DateOnly periodEnd, long cashAccountRootId);
|
||||
Task<decimal> GetCashBalanceAsync(DateOnly asOfDate, long cashAccountRootId);
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace General_Ledger_Service.Interfaces.Repositories
|
||||
public interface IJournalEntryRepository
|
||||
{
|
||||
Task<JournalEntry?> GetJournalEntryByJournalNoAsync(string journalNo);
|
||||
Task<JournalEntry?> GetJournalEntryBySourceReferenceAsync(string sourceModule, string reference);
|
||||
Task<int> CountJournalEntriesForYearAsync(int year);
|
||||
Task<JournalEntry> AddJournalEntryAsync(JournalEntry entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user