Table

CFOPTable_BR

CFOP codes

List of CFOP codes used for Brazil, keyed by the CFOP ID. Each code has a name, direction (incoming or outgoing), location type and purpose. It links to fiscal document source texts and to a delivery CFOP.

Table name
CFOPTable_BR
Module
Bank
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
CFOPIdx
Key fields
CFOPId
Model
FiscalBooks

Fields (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CFOPIdCFOP code.String (5)
CustVendCFOPId_BR
YesCFOPCodesEntityCFOPCodesEntitySalesOrderLineV3Entityand 19 more
ConsiderInCIAPYes/No flag for taking the code into account in CIAP.Enum
NoYes (enum)
NoCFOPCodesEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustVendCFOPNameAliasSearch name of the CFOP code.String (60)
CustVendCFOPNameAlias_BR
NoCFOPCodesEntity
CustVendLocationWhere the partner is: same state, other state or outside the country.Enum
CustVendLocation_BR (enum)
NoCFOPCodesEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryCFOPTable_BRDelivery CFOP code linked to this code.Int64
RefRecId
NoCFOPTable_BR.RecIdCFOPCodesEntity
DirectionWhether the code is for incoming or outgoing documents.Enum
FiscalDocDirection_BR (enum)
NoCFOPCodesEntity
FiscalDocumentTextIDFiscal document source text linked to the code.String
FiscalDocumentTextID_BR
NoFiscalDocumentSourceText_BR.TextIDCFOPCodesEntity
FiscalRefLegalTxtIdFiscal reference text ID linked to the code.String
FiscalDocumentTextID_BR
NoFiscalDocumentSourceText_BR.TextIDCFOPCodesEntity
FiscalRefMandatoryYes/No flag showing whether a fiscal reference is required.Enum
NoYes (enum)
NoCFOPCodesEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameName of the CFOP code.String (150)
CustVendCFOPName_BR
YesCFOPCodesEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurposePurpose of the code, such as shipment, transfer or return order.Enum
CFOPPurpose_BR (enum)
NoCFOPCodesEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RetailFiscalRefLegalTxtIdFiscal document source text used to print fiscal references at the POS terminal.String
RetailFiscalRefLegalTxtId_BR
NoFiscalDocumentSourceText_BR.TextIDCFOPCodesEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (4)

Each relation joins CFOPTable_BR to another table on the fields shown.

  • DeliveryCFOPId → CFOPTable_BR

    Join on DeliveryCFOPTable_BR = CFOPTable_BR.RecId

    Many CFOPTable_BR records → zero or one CFOPTable_BR record

  • FiscalDocumentSourceText → FiscalDocumentSourceText_BR

    Join on FiscalDocumentTextID = FiscalDocumentSourceText_BR.TextID

    Many CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record

  • FiscalRefSourceText → FiscalDocumentSourceText_BR

    Join on FiscalRefLegalTxtId = FiscalDocumentSourceText_BR.TextID

    Many CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record

  • RetailFiscalRefLegalTxt → FiscalDocumentSourceText_BR

    Join on RetailFiscalRefLegalTxtId = FiscalDocumentSourceText_BR.TextID

    Many CFOPTable_BR records → zero or one FiscalDocumentSourceText_BR record

Get this data out

Tables are not exposed directly. These public entities read from CFOPTable_BR; use one of them in Power BI, Power Platform or a data management project.

Need help with CFOPTable_BR in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk