mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
62 lines
1.4 KiB
TypeScript
62 lines
1.4 KiB
TypeScript
import {
|
|
IFinancialSheetCommonMeta,
|
|
INumberFormatQuery,
|
|
} from './FinancialStatements';
|
|
import { IFinancialTable } from './Table';
|
|
|
|
export interface IInventoryValuationReportQuery {
|
|
asDate: Date | string;
|
|
numberFormat: INumberFormatQuery;
|
|
noneTransactions: boolean;
|
|
noneZero: boolean;
|
|
onlyActive: boolean;
|
|
itemsIds: number[];
|
|
|
|
warehousesIds?: number[];
|
|
branchesIds?: number[];
|
|
}
|
|
|
|
export interface IInventoryValuationSheetMeta
|
|
extends IFinancialSheetCommonMeta {
|
|
formattedAsDate: string;
|
|
formattedDateRange: 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 type IInventoryValuationStatement = {
|
|
items: IInventoryValuationItem[];
|
|
total: IInventoryValuationTotal;
|
|
};
|
|
export type IInventoryValuationSheetData = IInventoryValuationStatement;
|
|
|
|
export interface IInventoryValuationSheet {
|
|
data: IInventoryValuationStatement;
|
|
meta: IInventoryValuationSheetMeta;
|
|
query: IInventoryValuationReportQuery;
|
|
}
|
|
|
|
export interface IInventoryValuationTable extends IFinancialTable {
|
|
meta: IInventoryValuationSheetMeta;
|
|
query: IInventoryValuationReportQuery;
|
|
}
|