Table

PurchAgreementSubcontractor

Purchase agreement subcontractors

Lists subcontractors and co-contractors on a purchase agreement, used for public sector. Each record has a vendor, a type, a validity period, participation share and bank details. It has no declared key.

Table name
PurchAgreementSubcontractor
Module
Procurement and sourcing
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
PublicSector
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DescriptionFree-text description of the subcontractor entry.String (60)
Description
NoNone
EndDateDate when the subcontractor entry ends.Date
TransDate
NoNone
MaximumAmount_PSNMaximum amount for this subcontractor. Currency not stated in the metadata.Real
AmountCur
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PercentParticipationShare of the agreement, as a percentage, that this party takes part in.Real
Percent
NoNone
PurchAgreementHeaderPoints to the purchase agreement.Int64
RefRecId
YesPurchAgreementHeader.RecIdNone
PurchAgreementVendorType_PSNWhether the party is a co-contractor or a subcontractor.Enum
PurchAgreementVendorType_PSN (enum)
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
StartDateDate when the subcontractor entry starts.Date
TransDate
NoNone
SubcontractorIDAccount number of the subcontractor vendor.String (20)
VendAccount
YesVendTable.AccountNumNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VendAccount_PSNVendor account that owns the bank account. Used with the bank account ID and its company.String (20)
VendAccount
NoVendBankAccount.VendAccountNone
VendBankAccountDataAreaID_PSNCompany of the vendor bank account. Part of the link to the bank account record.String (4)
DataAreaId
NoVendBankAccount.dataAreaIdNone
VendBankAccountID_PSNID of the vendor bank account used for this subcontractor.String
BankAccountID
NoVendBankAccount.AccountIDNone
VendTableAccount number of the vendor on the agreement.String (20)
VendAccount
YesVendTable.AccountNumNone

Indexes (1)

Relations (4)

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

  • PurchAgreementHeader → PurchAgreementHeader

    Join on PurchAgreementHeader = PurchAgreementHeader.RecId

    Many PurchAgreementSubcontractor records → exactly one PurchAgreementHeader record

  • SubContractor → VendTable

    Join on SubcontractorID = VendTable.AccountNum

    Many PurchAgreementSubcontractor records → exactly one VendTable record

  • VendBankAccount → VendBankAccount

    Join on VendBankAccountDataAreaID_PSN = VendBankAccount.dataAreaId, VendBankAccountID_PSN = VendBankAccount.AccountID, VendAccount_PSN = VendBankAccount.VendAccount

    Many PurchAgreementSubcontractor records → zero or one VendBankAccount record

  • VendTable → VendTable

    Join on VendTable = VendTable.AccountNum

    Many PurchAgreementSubcontractor records → exactly one VendTable record

Get this data out

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

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

Email sales@drdynamics.co.uk