Files
psp_panel/src/app/modules/cardex/models/io.d.ts
T
ahasani 502c592f56 feat: rename 'fee' to 'unitPrice' across purchase components and models
- 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.
2026-01-04 13:45:45 +03:30

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