mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
import {
|
|
IFinancialSheetCommonMeta,
|
|
INumberFormatQuery,
|
|
} from './FinancialStatements';
|
|
import { IFinancialTable } from './Table';
|
|
|
|
export interface ISalesByItemsReportQuery {
|
|
fromDate: Date | string;
|
|
toDate: Date | string;
|
|
itemsIds: number[];
|
|
numberFormat: INumberFormatQuery;
|
|
noneTransactions: boolean;
|
|
onlyActive: boolean;
|
|
}
|
|
|
|
export interface ISalesByItemsSheetMeta extends IFinancialSheetCommonMeta {
|
|
formattedFromDate: string;
|
|
formattedToDate: string;
|
|
formattedDateRange: string;
|
|
}
|
|
|
|
export interface ISalesByItemsItem {
|
|
id: number;
|
|
name: string;
|
|
code: string;
|
|
quantitySold: number;
|
|
soldCost: number;
|
|
averageSellPrice: number;
|
|
|
|
quantitySoldFormatted: string;
|
|
soldCostFormatted: string;
|
|
averageSellPriceFormatted: string;
|
|
currencyCode: string;
|
|
}
|
|
|
|
export interface ISalesByItemsTotal {
|
|
quantitySold: number;
|
|
soldCost: number;
|
|
quantitySoldFormatted: string;
|
|
soldCostFormatted: string;
|
|
currencyCode: string;
|
|
}
|
|
|
|
export type ISalesByItemsSheetData = {
|
|
items: ISalesByItemsItem[];
|
|
total: ISalesByItemsTotal;
|
|
};
|
|
|
|
export interface ISalesByItemsSheet {
|
|
data: ISalesByItemsSheetData;
|
|
query: ISalesByItemsReportQuery;
|
|
meta: ISalesByItemsSheetMeta;
|
|
}
|
|
|
|
export interface ISalesByItemsTable extends IFinancialTable {
|
|
query: ISalesByItemsReportQuery;
|
|
meta: ISalesByItemsSheetMeta;
|
|
}
|