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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchTableHistoryLink to the purchase order history record that this row extends. | Int64RefRecId | Yes | PurchTableHistory.RecId | None |
AgreementHeaderExt_RULink to the agreement record. | Int64AgreementHeaderExtRecId_RU | No | AgreementHeaderExt_RU.RecId | None |
ConsigneeAccount_RUCustomer account of the consignee, the party receiving the goods. | String (20)CustAccountConsignee_RU | No | CustTable.AccountNum | None |
ConsignorAccount_RUVendor account of the shipper. | String (20)VendAccountConsignor_RU | No | VendTable.AccountNum | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventProfileId_RUInventory profile ID, linked to the inventory profiles. | StringInventProfileId_RU | No | InventProfile_RU.InventProfileId | None |
InventProfileType_RUKind of activity. Values are Unspecified, Basic, Commission agent, Principal's agent and Bailee. | EnumInventProfileType_RU (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriceAgreementDate_RUDate of the agreed price. | DatePriceAgreementDate_RU | 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 | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
VATChargeSource_RUSource of the VAT charge. Values are From vendor funds and From own funds. | EnumVATChargeSource_RU (enum) | No | None | |
VATOperationCode_RUVAT operation code, linked to the VAT operation codes. | StringVATOperationCode_RU | No | VATOperationCodeTable_RU.OperationCode | None |
Indexes (2)
AgreementHeaderExt_RUIdxNot unique.
PurchTableHistoryIdxReplacement keyUnique, alternate key.
Relations (6)
Each relation joins PurchTableHistory_RU to another table on the fields shown.
AgreementHeaderExt_RU→AgreementHeaderExt_RUJoin on
AgreementHeaderExt_RU = AgreementHeaderExt_RU.RecIdMany PurchTableHistory_RU records → zero or one AgreementHeaderExt_RU record
CustTable→CustTableJoin on
ConsigneeAccount_RU = CustTable.AccountNumMany PurchTableHistory_RU records → exactly one CustTable record
InventProfile_RU→InventProfile_RUJoin on
InventProfileId_RU = InventProfile_RU.InventProfileIdMany PurchTableHistory_RU records → exactly one InventProfile_RU record
PurchTableHistory→PurchTableHistoryJoin on
PurchTableHistory = PurchTableHistory.RecIdZero or one PurchTableHistory_RU record → exactly one PurchTableHistory record
VATOperationCodeTable_RU→VATOperationCodeTable_RUJoin on
VATOperationCode_RU = VATOperationCodeTable_RU.OperationCodeMany PurchTableHistory_RU records → exactly one VATOperationCodeTable_RU record
VendTable→VendTableJoin on
ConsignorAccount_RU = VendTable.AccountNumMany 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.