b2a1eb8e5b
- Added StockKeepingUnitFormComponent for creating and editing stock keeping units. - Introduced StockKeepingUnitsComponent for listing stock keeping units with pagination. - Integrated form fields for code, name, VAT, and SKU type in the stock keeping unit form. - Created API routes for stock keeping units with CRUD operations. - Updated input components to handle numeric and price types with Persian/Arabic digit normalization. - Enhanced key-value component to support tag display instead of badge. - Adjusted layout styles for sidebar menu. - Added AGENT.md for repository-specific coding guidelines and practices. - Implemented good management form with file upload and category selection.
19 lines
543 B
TypeScript
19 lines
543 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
import { InputComponent } from '../input/input.component';
|
|
|
|
@Component({
|
|
selector: 'field-vat',
|
|
template: `<app-input
|
|
label="مالیات بر ارزش افزوده"
|
|
[control]="control"
|
|
[name]="name"
|
|
type="number"
|
|
/>`,
|
|
imports: [ReactiveFormsModule, InputComponent],
|
|
})
|
|
export class VatComponent {
|
|
@Input({ required: true }) control = new FormControl<number | string>('');
|
|
@Input() name = 'VAT';
|
|
}
|