Table

PurchTableHistory_BR

Purchase order history

Holds extra purchase order history details used for Brazil. It stores the CFPS code, operation type, a link to a vendor invoice journal and some Yes/No flags. Each row extends a purchase order history record.

Table name
PurchTableHistory_BR
Module
Accounts payable
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CFPSId_BRCFPS code, a short four-character code.String (4)
CFPSId_BR
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InvoiceRefRecId_BRLink to the vendor invoice journal record.Int64
RefRecId
NoVendInvoiceJour.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurchTableHistoryLink to the purchase order history record that this row extends.Int64
RefRecId
YesPurchTableHistory.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
SalesPurchOperationType_BRLink to the operation type record.Int64
RefRecId
NoSalesPurchOperationType_BR.RecIdNone
ServiceCodeOnDlvAddress_BRYes/No flag for using the service code at the delivery address.Enum
TaxServiceCodeOnDlvAddress_BR
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxDirectImport_BRYes/No flag for direct import. The exact meaning is not stated in the metadata.low confidenceEnum
NoYes (enum)
NoNone
VendFinalUser_BRYes/No flag showing whether the vendor is a final user.Enum
CustVendFinalUser_BR
NoYes (enum)
NoNone

Indexes (2)

Relations (3)

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

  • InvoiceRefRecId_BR → VendInvoiceJour

    Join on InvoiceRefRecId_BR = VendInvoiceJour.RecId

    Many PurchTableHistory_BR records → zero or one VendInvoiceJour record

  • PurchTableHistory → PurchTableHistory

    Join on PurchTableHistory = PurchTableHistory.RecId

    Zero or one PurchTableHistory_BR record → exactly one PurchTableHistory record

  • SalesPurchOperationType_BR → SalesPurchOperationType_BR

    Join on SalesPurchOperationType_BR = SalesPurchOperationType_BR.RecId

    Many PurchTableHistory_BR records → zero or one SalesPurchOperationType_BR record

Get this data out

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

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

Email sales@drdynamics.co.uk