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

@@ -9,8 +9,8 @@ export interface IBalanceSheetQuery {
fromDate: Date | string;
toDate: Date | string;
numberFormat: INumberFormatQuery;
noneZero: boolean;
noneTransactions: boolean;
noneZero: boolean;
basis: 'cash' | 'accural';
accountIds: number[];
}

View File

@@ -0,0 +1,42 @@
import {
INumberFormatQuery,
IFormatNumberSettings,
} from './FinancialStatements';
export interface IInventoryValuationReportQuery {
asDate: Date | string;
numberFormat: INumberFormatQuery;
noneTransactions: boolean;
};
export interface IInventoryValuationSheetMeta {
organizationName: string,
baseCurrency: string,
};
export interface IInventoryValuationItem {
id: number,
name: string,
code: string,
valuation: number,
quantity: number,
average: number,
valuationFormatted: string,
quantityFormatted: string,
averageFormatted: string,
currencyCode: string,
};
export interface IInventoryValuationTotal {
valuation: number,
quantity: number,
valuationFormatted: string,
quantityFormatted: string,
}
export interface IInventoryValuationStatement {
items: IInventoryValuationItem[],
total: IInventoryValuationTotal
};

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
};

View File

@@ -40,4 +40,6 @@ export * from './ARAgingSummaryReport';
export * from './APAgingSummaryReport';
export * from './Mailable';
export * from './InventoryAdjustment';
export * from './Setup'
export * from './Setup'
export * from './IInventoryValuationSheet';
export * from './SalesByItemsSheet';