Files
psp_panel/src/app/shared/components/fields/unit_price.component.ts
T
ahasani cdd2bd6bee refactor: restructure order and payload components for improved functionality
- Updated `PosOrderSectionComponent` to emit `onSubmit` instead of `onSuccess` and removed payment form visibility logic.
- Deleted unused `payload-form.component.html` and `payload-form.component.ts`.
- Introduced `PayloadFormDialogComponent` to handle payload form logic and rapid invoice creation.
- Enhanced `PosGoldPayloadFormComponent` and `PosStandardPayloadFormComponent` to support rapid invoice submissions.
- Added `PosGoodCategoriesComponent` for better category management in the goods view.
- Implemented `FavoriteCTAComponent` for managing favorite goods with loading states.
- Created `PosGoodsGridViewComponent` and `PosGoodsListViewComponent` for displaying goods in grid and list formats respectively.
- Improved UI elements across various components for consistency and better user experience.
2026-05-24 12:42:21 +03:30

21 lines
571 B
TypeScript

import { Component, Input } from '@angular/core';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { InputComponent } from '../input/input.component';
@Component({
selector: 'field-unit-price',
template: `<app-input
label="مبلغ واحد"
[control]="control"
[name]="name"
[hint]="hint"
type="price"
/>`,
imports: [ReactiveFormsModule, InputComponent],
})
export class UnitPriceComponent {
@Input({ required: true }) control = new FormControl<string>('');
@Input() name = 'unit_price';
@Input() hint = '';
}