Documents - Darf Tax
This section describes the BfmDocumentsDarfTaxComponent component.
Composition
The BfmDocumentsDarfTaxComponent has no any composition components.
Usage
You need to import it in your module and use it in your template.
documents-darf-tax.component.ts
import { BfmDocumentsDarfTaxComponent } from '@celerofinancas/ui-cash-flow';
@Component({
standalone: true,
selector: 'documents-darf-tax',
imports: [BfmDocumentsDarfTaxComponent],
templateUrl: './documents-darf-tax.component.html',
})
export class DocumentsDarfTaxComponent {}
Then, in your template, you can use the component like this:
documents-darf-tax.component.html
<bfm-document-darf-tax-form [fieldsOptions]="fieldsOptions" />
Inputs
The BfmDocumentsDarfTaxComponent component has the following inputs:
fieldsOptions
Fields options list
| Type |
|---|
{label: string; formControlName: string;}[] |
Default value:
[
{
label: 'Nome ou razão social',
formControlName: 'name',
},
{
label: 'Telefone',
formControlName: 'phone',
},
{
label: 'Período de apuração',
formControlName: 'counting_period',
},
{
label: 'CPF ou CNPJ',
formControlName: 'cpf_cnpj',
},
{
label: 'Código da receita',
formControlName: 'recipe_code',
},
{
label: 'Valor da principal',
formControlName: 'main_value',
},
{
label: 'Valor da multa',
formControlName: 'fine_value',
},
{
label: 'Valor dos juros e/ou encargos',
formControlName: 'tax_value',
},
{
label: 'Número de referência',
formControlName: 'reference_number',
},
];
Events
The BfmDocumentsDarfTaxComponent component has no events.