mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
TypeScript
import {
|
|
INumberFormatQuery,
|
|
} from './FinancialStatements';
|
|
|
|
export interface IProfitLossSheetQuery {
|
|
basis: string,
|
|
fromDate: Date | string,
|
|
toDate: Date | string,
|
|
numberFormat: INumberFormatQuery,
|
|
noneZero: boolean,
|
|
noneTransactions: boolean,
|
|
accountsIds: number[],
|
|
displayColumnsType: 'total' | 'date_periods',
|
|
displayColumnsBy: string,
|
|
};
|
|
|
|
export interface IProfitLossSheetTotal {
|
|
amount: number,
|
|
formattedAmount: string,
|
|
currencyCode: string,
|
|
date?: Date|string,
|
|
};
|
|
|
|
export interface IProfitLossSheetAccount {
|
|
id: number,
|
|
index: number,
|
|
name: string,
|
|
code: string,
|
|
parentAccountId: number,
|
|
hasTransactions: boolean,
|
|
total: IProfitLossSheetTotal,
|
|
totalPeriods: IProfitLossSheetTotal[],
|
|
};
|
|
|
|
export interface IProfitLossSheetAccountsSection {
|
|
name: string,
|
|
entryNormal: 'credit' | 'debit',
|
|
accounts: IProfitLossSheetAccount[],
|
|
total: IProfitLossSheetTotal,
|
|
totalPeriods?: IProfitLossSheetTotal[],
|
|
};
|
|
|
|
export interface IProfitLossSheetTotalSection {
|
|
total: IProfitLossSheetTotal,
|
|
totalPeriods?: IProfitLossSheetTotal[],
|
|
};
|
|
|
|
export interface IProfitLossSheetStatement {
|
|
income: IProfitLossSheetAccountsSection,
|
|
costOfSales: IProfitLossSheetAccountsSection,
|
|
expenses: IProfitLossSheetAccountsSection,
|
|
otherExpenses: IProfitLossSheetAccountsSection,
|
|
otherIncome: IProfitLossSheetAccountsSection,
|
|
netIncome: IProfitLossSheetTotalSection;
|
|
operatingProfit: IProfitLossSheetTotalSection;
|
|
grossProfit: IProfitLossSheetTotalSection;
|
|
}; |