feat(reports): inventory valuation report.

feat(reports): sales by items report.
feat(reports): purchases by items report.
This commit is contained in:
a.bouhuolia
2021-03-29 10:51:24 +02:00
parent 9a204282a2
commit 2d6d642f3b
19 changed files with 1106 additions and 30 deletions

View File

@@ -0,0 +1,43 @@
import {
INumberFormatQuery,
} from './FinancialStatements';
export interface ISalesByItemsReportQuery {
fromDate: Date | string;
toDate: Date | string;
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 interface ISalesByItemsSheetStatement {
items: ISalesByItemsItem[],
total: ISalesByItemsTotal
};