mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
add server to monorepo.
This commit is contained in:
36
packages/server/src/interfaces/TransactionsByVendors.ts
Normal file
36
packages/server/src/interfaces/TransactionsByVendors.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import {
|
||||
ITransactionsByContactsAmount,
|
||||
ITransactionsByContactsTransaction,
|
||||
ITransactionsByContactsFilter,
|
||||
} from './TransactionsByContacts';
|
||||
|
||||
export interface ITransactionsByVendorsAmount
|
||||
extends ITransactionsByContactsAmount {}
|
||||
|
||||
export interface ITransactionsByVendorsTransaction
|
||||
extends ITransactionsByContactsTransaction {}
|
||||
|
||||
export interface ITransactionsByVendorsVendor {
|
||||
vendorName: string;
|
||||
openingBalance: ITransactionsByVendorsAmount;
|
||||
closingBalance: ITransactionsByVendorsAmount;
|
||||
transactions: ITransactionsByVendorsTransaction[];
|
||||
}
|
||||
|
||||
export interface ITransactionsByVendorsFilter
|
||||
extends ITransactionsByContactsFilter {
|
||||
vendorsIds: number[];
|
||||
}
|
||||
|
||||
export type ITransactionsByVendorsData = ITransactionsByVendorsVendor[];
|
||||
|
||||
export interface ITransactionsByVendorsStatement {
|
||||
data: ITransactionsByVendorsData;
|
||||
}
|
||||
|
||||
export interface ITransactionsByVendorsService {
|
||||
transactionsByVendors(
|
||||
tenantId: number,
|
||||
filter: ITransactionsByVendorsFilter
|
||||
): Promise<ITransactionsByVendorsStatement>;
|
||||
}
|
||||
Reference in New Issue
Block a user