Table

PurchLineHistory_W

Purchase order line information history for countries/regions

Holds country-specific extra data for purchase order line history records. It includes fields for Russia, Malaysia and Mexico. Each row links to a purchase line history record through the PurchLineHistory field.

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

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CountryRegionName_RUName of the country or region of origin, used for Russia.String (255)
CustInvoiceCountryName_RU
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeviationQty_RUQuantity deviation on the line, used for Russia.Real
PurchDeviationQty_RU
NoNone
InvoiceGTDId_RUCustoms declaration (GTD) number, used for Russia.String (30)
CustFreeInvoiceGTDId_RU
NoNone
MarkupCode_RUCharges code that applies to the line, used for Russia.String
MarkupCodeVend_RU
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostingProfile_RUVendor posting profile, used for Russia.String
VendPostingProfile
NoVendLedger.PostingProfileNone
PriceAgreementDate_RUDate of the agreed price, used for Russia.Date
PriceAgreementDate_RU
NoNone
PurchLineHistoryLink to the purchase line history record that this row extends.Int64
RefRecId
YesPurchLineHistory.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
RefInvoiceDate_MYDate of the original invoice, used for Malaysia.Date
TransDate
NoNone
RefInvoiceID_MYNumber of the original invoice, used for Malaysia.String (50)
InvoiceId
NoNone
RefReturnInvoiceTrans_WSystem record ID of the posted vendor invoice line that is being returned.Int64
RefReturnInvoiceTrans_W
NoVendInvoiceTrans.RecIdNone
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
WithholdingTypeCode_MXCode for the type of withholding, used for Mexico.String (5)
CFDIWithholdingTypeCode_MX
NoNone

Indexes (1)

Relations (4)

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

  • MarkupCodeVend → MarkupTable

    Join on MarkupTable.ModuleType = MarkupModuleType::Vend, MarkupCode_RU = MarkupTable.MarkupCode

    Many PurchLineHistory_W records → zero or one MarkupTable record

  • PurchLineHistory → PurchLineHistory

    Join on PurchLineHistory = PurchLineHistory.RecId

    Zero or one PurchLineHistory_W record → exactly one PurchLineHistory record

  • VendInvoiceTrans_W → VendInvoiceTrans

    Join on RefReturnInvoiceTrans_W = VendInvoiceTrans.RecId

    Many PurchLineHistory_W records → zero or one VendInvoiceTrans record

  • VendLedger_RU → VendLedger

    Join on PostingProfile_RU = VendLedger.PostingProfile

    Many PurchLineHistory_W records → zero or one VendLedger record

Get this data out

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

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

Email sales@drdynamics.co.uk