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
@@ -16,6 +16,7 @@
[required]="isRequired"
[invalid]="control.invalid && (control.touched || control.dirty)"
(input)="onInput($event)"
(onBlur)="blur.emit()"
/>
<p-inputgroup-addon>ریال</p-inputgroup-addon>
</p-inputgroup>
@@ -34,6 +35,7 @@
[required]="isRequired"
[invalid]="control.invalid && (control.touched || control.dirty)"
(input)="onInput($event)"
(onBlur)="blur.emit()"
/>
}
@if (hint) {
@@ -45,6 +45,7 @@ export class InputComponent {
@Input() showErrors = false;
@Input() hint?: string;
@Output() valueChange = new EventEmitter<string | number>();
@Output() blur = new EventEmitter<void>();
onInput(ev: Event) {
const v = (ev.target as HTMLInputElement).value;