502c592f56
- Updated form component to use 'unitPrice' instead of 'fee'. - Adjusted product charge row form fields and templates to reflect the new naming. - Modified receipt template and related components to utilize 'unitPrice'. - Changed models and interfaces to replace 'fee' with 'unitPrice'. - Updated supplier invoice and statistics components to align with the new naming convention. - Added new API routes for dashboard and statistics modules.
45 lines
880 B
TypeScript
45 lines
880 B
TypeScript
import { ICardexInventorySummary, ICardexProductSummary } from './types';
|
|
|
|
export interface ICardexRawResponse {
|
|
id: number;
|
|
type: string;
|
|
quantity: number;
|
|
unitPrice: number;
|
|
totalCost: number;
|
|
referenceType: string;
|
|
referenceId: string;
|
|
createdAt: string;
|
|
avgCost: number;
|
|
product: ICardexProductSummary;
|
|
inventory: ICardexInventorySummary;
|
|
supplier?: {
|
|
id: number;
|
|
firstName: string;
|
|
lastName: string;
|
|
};
|
|
customer?: {
|
|
id: number;
|
|
firstName: string;
|
|
lastName: string;
|
|
};
|
|
counterInventory?: ICardexInventorySummary;
|
|
}
|
|
|
|
export interface ICardexResponse extends ICardexRawResponse {
|
|
supplier?: {
|
|
id: number;
|
|
name: string;
|
|
};
|
|
customer?: {
|
|
id: number;
|
|
name: string;
|
|
};
|
|
}
|
|
|
|
export interface ICardexRequestPayload {
|
|
startDate?: string;
|
|
endDate?: string;
|
|
inventoryId?: number;
|
|
productId?: number;
|
|
}
|