Table

CustFiscalDocumentNote_BR

Customer fiscal note

Holds customer fiscal notes, used for Brazil, such as debit or credit notes. Each note has a status, purpose, direction, issuer and total amount. It links to the customer, the fiscal document, the fiscal establishment and the reason reference.

Table name
CustFiscalDocumentNote_BR
Module
Accounts receivable
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccessKeyAccess key of the received electronic invoice document, linked to the received XML documents.String (45)
EFDocAccessKey_BR
NoEFDocumentReceivedXML_BR.AccesskeyNone
CanceledFiscalDocumentNoteCustomer fiscal note that this record cancels, as a system record ID.Int64
RefRecId
NoCustFiscalDocumentNote_BR.RecIdNone
ComplementedFiscalDocumentFiscal document that this note complements, as a system record ID.Int64
RefRecId
NoFiscalDocument_BR.RecIdNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCurrency code of the note.String (3)
CustCurrencyCode
NoCurrency.CurrencyCodeNone
CustFinalUserYes/No flag showing whether the customer is a final user.Enum
CustVendFinalUser_BR
NoYes (enum)
NoNone
CustTableCustomer account the note is for.String (20)
CustAccount
NoCustTable.AccountNumNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DebitCreditNoteTypeBusiness type of the debit or credit note, such as fine and interest, advance payment, inventory loss or return.Enum
FiscalDocumentBusinessType_BR (enum)
NoNone
DefaultDimensionDefault financial dimension values for the note.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
DirectionShows whether the document is incoming or outgoing.Enum
FiscalDocDirection_BR (enum)
NoNone
DocumentDateDate of the invoice.Date
DocumentDate
NoNone
FiscalDocumentNumberInvoice number of the fiscal document.String (50)
InvoiceId
NoNone
FiscalDocumentType_BRType of fiscal document.Int64
RefRecId
NoFiscalDocumentType_BR.RecIdNone
FiscalEstablishment_BRFiscal establishment linked to the note.Int64
FiscalEstablishmentRecId_BR
NoFiscalEstablishment_BR.RecIdNone
InclTaxYes/No flag showing whether prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
IssuerWho issued the fiscal document: the fiscal establishment or a third party.Enum
FiscalDocumentIssuer_BR (enum)
NoNone
LedgerVoucherVoucher number, which relates to posted sales tax records.String (20)
Voucher
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurposePurpose of the note, such as regular, tax complement, price complement, adjustment, return, debit note or credit note.Enum
FiscalDocumentPurpose_BR (enum)
NoNone
ReasonTableRef_BRReference to the reason record for the note.Int64
ReasonTableRefRecId
NoReasonTableRef.RecIdNone
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
StatusState of the note: open, posted, canceled or cancel in progress.Enum
FDDebitCreditNoteStatus_BR (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
ThirdPartyLogisticsPostalAddressPostal address, linked to the addresses table.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
TotalAmountTotal amount of the note in accounting currency.Real
AmountMST
NoNone

Indexes (5)

Relations (11)

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

  • ComplementedFiscalDocument → FiscalDocument_BR

    Join on ComplementedFiscalDocument = FiscalDocument_BR.RecId

    Many CustFiscalDocumentNote_BR records → exactly one FiscalDocument_BR record

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many CustFiscalDocumentNote_BR records → zero or one Currency record

  • CustTable → CustTable

    Join on CustTable = CustTable.AccountNum

    Many CustFiscalDocumentNote_BR records → exactly one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many CustFiscalDocumentNote_BR records → zero or one DimensionAttributeValueSet record

  • FiscalDocumentType → FiscalDocumentType_BR

    Join on FiscalDocumentType_BR = FiscalDocumentType_BR.RecId

    Many CustFiscalDocumentNote_BR records → exactly one FiscalDocumentType_BR record

  • FiscalEstablishment → FiscalEstablishment_BR

    Join on FiscalEstablishment_BR = FiscalEstablishment_BR.RecId

    Many CustFiscalDocumentNote_BR records → exactly one FiscalEstablishment_BR record

  • ReasonTableRef → ReasonTableRef

    Join on ReasonTableRef_BR = ReasonTableRef.RecId

    Many CustFiscalDocumentNote_BR records → zero or one ReasonTableRef record

  • ThirdPartyPostalAddress → LogisticsPostalAddress

    Join on ThirdPartyLogisticsPostalAddress = LogisticsPostalAddress.RecId

    Many CustFiscalDocumentNote_BR records → exactly one LogisticsPostalAddress record

  • EFDocumentReceivedXML_BR → EFDocumentReceivedXML_BR

    Join on AccessKey = EFDocumentReceivedXML_BR.Accesskey, FiscalEstablishment_BR = EFDocumentReceivedXML_BR.FiscalEstablishment_BR, EFDocumentReceivedXML_BR.Posted = NoYes::No

    Cardinality not set in the metadata.

  • CanceledFiscalDocumentNote → CustFiscalDocumentNote_BR

    Join on CanceledFiscalDocumentNote = CustFiscalDocumentNote_BR.RecId

    Many CustFiscalDocumentNote_BR records → exactly one CustFiscalDocumentNote_BR record

  • TaxTrans → TaxTrans

    Join on LedgerVoucher = TaxTrans.Voucher, DocumentDate = TaxTrans.TransDate

    Cardinality not set in the metadata.

Get this data out

No public entity reads from CustFiscalDocumentNote_BR. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk