Table

PurchTableHistory_RU

Purchase order history

Holds extra purchase order history details used for Russia. It covers the agreement, consignee, shipper, inventory profile, VAT charge source and VAT operation code. Its key is PurchTableHistory, so each history record has at most one row.

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

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchTableHistoryLink to the purchase order history record that this row extends.Int64
RefRecId
YesPurchTableHistory.RecIdNone
AgreementHeaderExt_RULink to the agreement record.Int64
AgreementHeaderExtRecId_RU
NoAgreementHeaderExt_RU.RecIdNone
ConsigneeAccount_RUCustomer account of the consignee, the party receiving the goods.String (20)
CustAccountConsignee_RU
NoCustTable.AccountNumNone
ConsignorAccount_RUVendor account of the shipper.String (20)
VendAccountConsignor_RU
NoVendTable.AccountNumNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InventProfileId_RUInventory profile ID, linked to the inventory profiles.String
InventProfileId_RU
NoInventProfile_RU.InventProfileIdNone
InventProfileType_RUKind of activity. Values are Unspecified, Basic, Commission agent, Principal's agent and Bailee.Enum
InventProfileType_RU (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceAgreementDate_RUDate of the agreed price.Date
PriceAgreementDate_RU
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
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VATChargeSource_RUSource of the VAT charge. Values are From vendor funds and From own funds.Enum
VATChargeSource_RU (enum)
NoNone
VATOperationCode_RUVAT operation code, linked to the VAT operation codes.String
VATOperationCode_RU
NoVATOperationCodeTable_RU.OperationCodeNone

Indexes (2)

Relations (6)

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

  • AgreementHeaderExt_RU → AgreementHeaderExt_RU

    Join on AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecId

    Many PurchTableHistory_RU records → zero or one AgreementHeaderExt_RU record

  • CustTable → CustTable

    Join on ConsigneeAccount_RU = CustTable.AccountNum

    Many PurchTableHistory_RU records → exactly one CustTable record

  • InventProfile_RU → InventProfile_RU

    Join on InventProfileId_RU = InventProfile_RU.InventProfileId

    Many PurchTableHistory_RU records → exactly one InventProfile_RU record

  • PurchTableHistory → PurchTableHistory

    Join on PurchTableHistory = PurchTableHistory.RecId

    Zero or one PurchTableHistory_RU record → exactly one PurchTableHistory record

  • VATOperationCodeTable_RU → VATOperationCodeTable_RU

    Join on VATOperationCode_RU = VATOperationCodeTable_RU.OperationCode

    Many PurchTableHistory_RU records → exactly one VATOperationCodeTable_RU record

  • VendTable → VendTable

    Join on ConsignorAccount_RU = VendTable.AccountNum

    Many PurchTableHistory_RU records → exactly one VendTable record

Get this data out

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

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

Email sales@drdynamics.co.uk