Skip to main content

Record Amounts

This section describes the BfmRecordAmountsComponent component.

Composition

The BfmRecordAmountsComponent is composed of the following components:

Usage

You need to import it in your module and use it in your template.

record-amounts.component.ts
import { BfmRecordAmountsComponent } from '@celerofinancas/ui-cash-flow';

@Component({
standalone: true,
selector: 'record-amounts',
imports: [BfmRecordAmountsComponent],
templateUrl: './record-amounts.component.html',
})
export class CustomRecordAmountsComponent {}

Then, in your template, you can use the component like this:

record-amounts.component.html
<bfm-record-amounts 
[amountsForm]="amountsForm"
[companyPk]="'companyPkValue'"
[enableClassification]="true"
[hasCostCenter]="true"
/>

Inputs

The BfmRecordAmountsComponent component has the following inputs:

amountsForm

Amounts form group reference

TypeDefault
UntypedFormArraynew FormArray<any>([])

companyPk

Company PK

TypeDefault
string''

enableClassification

Enable classification

TypeDefault
booleanfalse

hasCostCenter

Has cost center

TypeDefault
booleanfalse

Events

The BfmRecordAmountsComponent component has the following events:

itemSelected

Event when item is selected

Type
EventEmitter<any>

modalEmitter

Event when modal is clicked

Type
EventEmitter<any>