Table

PurchCORPolicyTable

Confirmation of product receipt policies

Holds policies for confirming product receipt, in an obsolete area. Each policy is set by legal entity, category and vendor. For each of these, a code chooses either all values or one specific record.

Table name
PurchCORPolicyTable
Module
Obsolete
Table group
Group
Table type
Regular
Data per company
No
Configuration key
LogisticsBasic
Primary index
RecId
Replacement key
PolicyIdx
Key fields
LegalEntityCode, CategoryCode, VendorCode, LegalEntityRelation, CategoryRelation, VendorRelationDataAreaId, VendorRelation
Model
Foundation

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
LegalEntityCodeSays whether the policy covers all legal entities or one chosen legal entity.Enum
PurchCORLegalEntityCode
TableAll (enum)
NoNone
CategoryCodeSays whether the policy covers all categories or one chosen category.Enum
PurchCORCategoryCode
TableAll (enum)
NoNone
VendorCodeSays whether the policy covers all vendors or one chosen vendor.Enum
PurchCORVendorCode
TableAll (enum)
NoNone
LegalEntityRelationThe legal entity the policy applies to.String
PurchCORLegalEntityRelation
NoNone
CategoryRelationPoints to the product category the policy applies to.Int64
PurchCategory
NoEcoResCategory.RecIdNone
VendorRelationDataAreaIdCompany (legal entity) that owns the vendor account named in the policy.String
VendorRelationDataAreaId
NoVendTable.dataAreaIdNone
VendorRelationAccount number of the vendor the policy applies to.String (20)
PurchCORVendorRelation
NoVendTable.AccountNumNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (4)

Relations (3)

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

  • CategoryRelation_FK → EcoResCategory

    Join on CategoryRelation = EcoResCategory.RecId

    Many PurchCORPolicyTable records → zero or one EcoResCategory record

  • LegalEntityDataArea → DataArea

    Join on LegalEntityRelation = DataArea.id, DataArea.isVirtual = null

    Many PurchCORPolicyTable records → zero or one DataArea record

  • VendTable → VendTable

    Join on VendorRelationDataAreaId = VendTable.dataAreaId, VendorRelation = VendTable.AccountNum

    Many PurchCORPolicyTable records → zero or one VendTable record

Get this data out

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

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

Email sales@drdynamics.co.uk