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.
This commit is contained in:
2026-01-04 13:45:45 +03:30
parent 83c3d57866
commit 502c592f56
59 changed files with 582 additions and 105 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ export interface IPurchaseReceiptResponse extends IPurchaseReceiptRawResponse {}
export interface IPurchaseItemRawResponse {
id: number;
count: number;
fee: number;
unitPrice: number;
total: number;
productId: number;
}
@@ -34,7 +34,7 @@ export interface IPurchaseRequest {
export interface IPurchaseItemRequest {
productId: number;
count: number;
fee: number;
unitPrice: number;
total: number;
}
@@ -51,7 +51,7 @@ export interface IPurchaseForm {
export interface IPurchaseItemForm {
product: Maybe<IProductResponse>;
count: number;
fee: number;
unitPrice: number;
total: number;
description?: string;
}