fix(exports): stabilize published types and compatibility with updated dependencies
This commit is contained in:
@@ -410,7 +410,20 @@ export class Reports {
|
||||
isActive: true,
|
||||
});
|
||||
|
||||
const ledgerEntries = [];
|
||||
const ledgerEntries: Array<{
|
||||
accountNumber: string;
|
||||
accountName: string;
|
||||
accountType: string;
|
||||
entries: Array<{
|
||||
date: Date;
|
||||
reference: string;
|
||||
description: string;
|
||||
debit: number;
|
||||
credit: number;
|
||||
balance: number;
|
||||
}>;
|
||||
finalBalance: number;
|
||||
}> = [];
|
||||
|
||||
for (const account of accounts) {
|
||||
const transactions = await this.getAccountTransactions(
|
||||
@@ -420,7 +433,14 @@ export class Reports {
|
||||
|
||||
if (transactions.length > 0) {
|
||||
let runningBalance = 0;
|
||||
const accountEntries = [];
|
||||
const accountEntries: Array<{
|
||||
date: Date;
|
||||
reference: string;
|
||||
description: string;
|
||||
debit: number;
|
||||
credit: number;
|
||||
balance: number;
|
||||
}> = [];
|
||||
|
||||
for (const transaction of transactions) {
|
||||
const isDebit = transaction.debitAccount === account.accountNumber;
|
||||
|
||||
Reference in New Issue
Block a user