WIP: transactions by customers.

This commit is contained in:
a.bouhuolia
2021-05-07 23:49:38 +02:00
parent 5f2e90b234
commit b5ed7af7eb
16 changed files with 425 additions and 76 deletions

View File

@@ -0,0 +1,17 @@
export interface ILedger {
entries: ILedgerEntry[];
getEntries(): ILedgerEntry[];
whereContactId(contactId: number): ILedger;
whereFromDate(fromDate: Date | string): ILedger;
whereToDate(toDate: Date | string): ILedger;
}
export interface ILedgerEntry {
credit: number;
debit: number;
accountId?: number;
accountNormal: string;
contactId?: number;
date: Date | string;
}

View File

@@ -10,6 +10,7 @@ export interface ITransactionsByContactsTransaction {
date: string|Date,
credit: ITransactionsByContactsAmount;
debit: ITransactionsByContactsAmount;
accountName: string,
runningBalance: ITransactionsByContactsAmount;
currencyCode: string;
referenceNumber: string;

View File

@@ -49,4 +49,5 @@ export * from './ContactBalanceSummary';
export * from './TransactionsByCustomers';
export * from './TransactionsByContacts';
export * from './TransactionsByVendors';
export * from './Table';
export * from './Table';
export * from './Ledger';