Table
FBBookingPeriodFiscalDocument_BR
Booking period fiscal document relationships
Links fiscal documents, or Z reports, to a booking period. It records the fiscal situation, flags for which taxes the document has, and SPED record codes. Keyed by fiscal document, booking period and Z report. Used for Brazil.
- Table name
FBBookingPeriodFiscalDocument_BR- Module
Fiscal books brazil- Table group
Transaction- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
BookingPeriodFiscalDocumentIdx- Key fields
FiscalDocument_BR, FBBookingPeriod_BR, RetailZReport_BR- Model
Foundation
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
FiscalDocument_BRPoints to the fiscal document header. | Int64FiscalDocumentRecId_BR | Yes | FiscalDocument_BR.RecId | None |
FBBookingPeriod_BRPoints to the booking period. | Int64FBBookingPeriodRecId_BR | Yes | FBBookingPeriod_BR.RecId | None |
RetailZReport_BRPoints to the Z report record, where one applies. | Int64RefRecId | No | RetailZReport_BR.RecId | None |
FiscalSituationFiscal situation of the document, such as regular, canceled or denied. | EnumFBFiscalDocumentSituation_BR (enum) | No | None | |
HasCBSYes/No flag: the document has a CBS tax transaction. | EnumNoYes (enum) | No | None | |
HasCofinsYes/No flag: the document has a COFINS tax transaction. | EnumNoYes (enum) | No | None | |
HasIBSCityYes/No flag: the document has an IBS city tax transaction. | EnumNoYes (enum) | No | None | |
HasIBSStateYes/No flag: the document has an IBS state tax transaction. | EnumNoYes (enum) | No | None | |
HasIcmsYes/No flag: the document has an ICMS tax transaction. | EnumNoYes (enum) | No | None | |
HasIcmsDiffYes/No flag: the document has an ICMS-DIFF tax transaction. | EnumNoYes (enum) | No | None | |
HasIcmsStYes/No flag: the document has an ICMS-ST tax transaction. | EnumNoYes (enum) | No | None | |
HasInssYes/No flag: the document has an INSS tax transaction. | EnumNoYes (enum) | No | None | |
HasInssRetYes/No flag: the document has a retained INSS tax transaction. | EnumNoYes (enum) | No | None | |
HasIpiYes/No flag: the document has an IPI tax transaction. | EnumNoYes (enum) | No | None | |
HasIrrfYes/No flag: the document has an IRRF tax transaction. | EnumNoYes (enum) | No | None | |
HasISYes/No flag: the document has an IS tax transaction. | EnumNoYes (enum) | No | None | |
HasIssYes/No flag: the document has an ISS tax transaction. | EnumNoYes (enum) | No | None | |
HasPisYes/No flag: the document has a PIS tax transaction. | EnumNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SpedContribRecordSPED contributions record identifier. | String (5)FBSpedFileRecordIdentification_BR | No | None | |
SpedFiscalRecordSPED fiscal record identifier. | String (5)FBSpedFileRecordIdentification_BR | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ThirdPartyTypeType of the third party, such as person or organization. | EnumDirPartyType (enum) | No | None |
Indexes (3)
BookingPeriodFiscalDocumentIdxReplacement keyFiscalDocument_BR,FBBookingPeriod_BR,RetailZReport_BRUnique, alternate key.
BookingPeriodZReport_BRFBBookingPeriod_BR,RetailZReport_BRNot unique.
RetailZReportIdxNot unique.
Relations (3)
Each relation joins FBBookingPeriodFiscalDocument_BR to another table on the fields shown.
FBBookingPeriod_BR→FBBookingPeriod_BRJoin on
FBBookingPeriod_BR = FBBookingPeriod_BR.RecIdZero or one FBBookingPeriodFiscalDocument_BR record → exactly one FBBookingPeriod_BR record
FiscalDocument_BR→FiscalDocument_BRJoin on
FiscalDocument_BR = FiscalDocument_BR.RecIdZero or one FBBookingPeriodFiscalDocument_BR record → exactly one FiscalDocument_BR record
RetailZReport_BR→RetailZReport_BRJoin on
RetailZReport_BR = RetailZReport_BR.RecIdMany FBBookingPeriodFiscalDocument_BR records → zero or one RetailZReport_BR record
Get this data out
No public entity reads from FBBookingPeriodFiscalDocument_BR. Its data is only reachable through the application, a custom entity or a database export.
Need help with FBBookingPeriodFiscalDocument_BR in a report, an integration or a migration? Talk to Dr Dynamics.