mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat(reports): inventory valuation report.
feat(reports): sales by items report. feat(reports): purchases by items report.
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
42
server/src/interfaces/IInventoryValuationSheet.ts
Normal file
42
server/src/interfaces/IInventoryValuationSheet.ts
Normal 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
|
||||
};
|
||||
|
||||
43
server/src/interfaces/SalesByItemsSheet.ts
Normal file
43
server/src/interfaces/SalesByItemsSheet.ts
Normal 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
|
||||
};
|
||||
|
||||
@@ -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';
|
||||
Reference in New Issue
Block a user