mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
WIP: customer balance report.
This commit is contained in:
45
server/src/interfaces/TransactionsByCustomers.ts
Normal file
45
server/src/interfaces/TransactionsByCustomers.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { INumberFormatQuery } from './FinancialStatements';
|
||||
|
||||
export interface ITransactionsByCustomersAmount {
|
||||
amount: number;
|
||||
formattedAmount: string;
|
||||
}
|
||||
|
||||
export interface ITransactionsByCustomersTransaction {
|
||||
date: string|Date,
|
||||
credit: ITransactionsByCustomersAmount;
|
||||
debit: ITransactionsByCustomersAmount;
|
||||
runningBalance: ITransactionsByCustomersAmount;
|
||||
referenceNumber: string;
|
||||
transactionNumber: string;
|
||||
}
|
||||
|
||||
export interface ITransactionsByCustomersCustomer {
|
||||
customerName: string;
|
||||
openingBalance: any;
|
||||
closingBalance: any;
|
||||
transactions: ITransactionsByCustomersTransaction[];
|
||||
}
|
||||
|
||||
export interface ITransactionsByCustomersFilter {
|
||||
fromDate: Date;
|
||||
toDate: Date;
|
||||
numberFormat: INumberFormatQuery;
|
||||
noneTransactions: boolean;
|
||||
noneZero: boolean;
|
||||
}
|
||||
|
||||
export interface ITransactionsByCustomersData {
|
||||
customers: ITransactionsByCustomersCustomer[];
|
||||
}
|
||||
|
||||
export interface ITransactionsByCustomersStatement {
|
||||
data: ITransactionsByCustomersData;
|
||||
}
|
||||
|
||||
export interface ITransactionsByCustomersService {
|
||||
transactionsByCustomers(
|
||||
tenantId: number,
|
||||
filter: ITransactionsByCustomersFilter
|
||||
): Promise<ITransactionsByCustomersStatement>;
|
||||
}
|
||||
Reference in New Issue
Block a user