2026-05-01 19:45:30 +03:30
|
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
import { InputComponent } from '../input/input.component';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'field-vat',
|
2026-05-06 22:01:20 +03:30
|
|
|
template: `<app-input
|
|
|
|
|
label="مالیات بر ارزش افزوده"
|
|
|
|
|
[control]="control"
|
|
|
|
|
[name]="name"
|
|
|
|
|
type="number"
|
|
|
|
|
/>`,
|
2026-05-01 19:45:30 +03:30
|
|
|
imports: [ReactiveFormsModule, InputComponent],
|
|
|
|
|
})
|
|
|
|
|
export class VatComponent {
|
|
|
|
|
@Input({ required: true }) control = new FormControl<number | string>('');
|
|
|
|
|
@Input() name = 'VAT';
|
|
|
|
|
}
|