mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
45 lines
917 B
TypeScript
45 lines
917 B
TypeScript
import {
|
|
INumberFormatQuery,
|
|
} from './FinancialStatements';
|
|
|
|
export interface ISalesByItemsReportQuery {
|
|
fromDate: Date | string;
|
|
toDate: Date | string;
|
|
itemsIds: number[],
|
|
numberFormat: INumberFormatQuery;
|
|
noneTransactions: boolean;
|
|
};
|
|
|
|
export interface ISalesByItemsSheetMeta {
|
|
organizationName: string,
|
|
baseCurrency: 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 ISalesByItemsSheetStatement = {
|
|
items: ISalesByItemsItem[],
|
|
total: ISalesByItemsTotal
|
|
} | {};
|
|
|