mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
add server to monorepo.
This commit is contained in:
47
packages/server/src/interfaces/ContactBalanceSummary.ts
Normal file
47
packages/server/src/interfaces/ContactBalanceSummary.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
import { INumberFormatQuery } from './FinancialStatements';
|
||||
|
||||
export interface IContactBalanceSummaryQuery {
|
||||
asDate: Date;
|
||||
numberFormat: INumberFormatQuery;
|
||||
percentageColumn: boolean;
|
||||
noneTransactions: boolean;
|
||||
noneZero: boolean;
|
||||
}
|
||||
|
||||
export interface IContactBalanceSummaryAmount {
|
||||
amount: number;
|
||||
formattedAmount: string;
|
||||
currencyCode: string;
|
||||
}
|
||||
export interface IContactBalanceSummaryPercentage {
|
||||
amount: number;
|
||||
formattedAmount: string;
|
||||
}
|
||||
|
||||
export interface IContactBalanceSummaryContact {
|
||||
total: IContactBalanceSummaryAmount;
|
||||
percentageOfColumn?: IContactBalanceSummaryPercentage;
|
||||
}
|
||||
|
||||
export interface IContactBalanceSummaryTotal {
|
||||
total: IContactBalanceSummaryAmount;
|
||||
percentageOfColumn?: IContactBalanceSummaryPercentage;
|
||||
}
|
||||
|
||||
export interface ICustomerBalanceSummaryData {
|
||||
customers: IContactBalanceSummaryContact[];
|
||||
total: IContactBalanceSummaryTotal;
|
||||
}
|
||||
|
||||
export interface ICustomerBalanceSummaryStatement {
|
||||
data: ICustomerBalanceSummaryData;
|
||||
columns: {};
|
||||
query: IContactBalanceSummaryQuery;
|
||||
}
|
||||
|
||||
export interface ICustomerBalanceSummaryService {
|
||||
customerBalanceSummary(
|
||||
tenantId: number,
|
||||
query: IContactBalanceSummaryQuery
|
||||
): Promise<ICustomerBalanceSummaryStatement>;
|
||||
}
|
||||
Reference in New Issue
Block a user