mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
WIP: transactions by customers.
This commit is contained in:
17
server/src/interfaces/Ledger.ts
Normal file
17
server/src/interfaces/Ledger.ts
Normal 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;
|
||||
}
|
||||
@@ -10,6 +10,7 @@ export interface ITransactionsByContactsTransaction {
|
||||
date: string|Date,
|
||||
credit: ITransactionsByContactsAmount;
|
||||
debit: ITransactionsByContactsAmount;
|
||||
accountName: string,
|
||||
runningBalance: ITransactionsByContactsAmount;
|
||||
currencyCode: string;
|
||||
referenceNumber: string;
|
||||
|
||||
@@ -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';
|
||||
Reference in New Issue
Block a user