Table

PurchLine_W

Purchase order line information for countries

Adds country-specific data to a purchase order line. It holds fields used for Russia, Poland, Malaysia and Mexico, such as GTD number, posting profile, original invoice details and withholding type. It links to the purchase order line.

Table name
PurchLine_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 (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CountryRegionName_RUCountry or region of origin, used for Russia.String (255)
CustInvoiceCountryName_RU
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeviationQty_RUDeviation quantity, used for Russia.Real
PurchDeviationQty_RU
NoNone
InvoiceGTDId_RUGTD number, used for Russia.String (30)
CustFreeInvoiceGTDId_RU
NoNone
MarkupCode_RUCharges code, used for Russia.String
MarkupCodeVend_RU
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
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 price, used for Russia.Date
PriceAgreementDate_RU
NoNone
PurchLinePoints to the purchase order line that this record extends.Int64
RefRecId
YesPurchLine.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_WPoints to the returned posted vendor invoice line.Int64
RefReturnInvoiceTrans_W
NoVendInvoiceTrans.RecIdNone
SADInvoiceLineNo_PLPosition number on the invoice, used for Poland.Integer
PlSADInvoiceLineNo
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
WithholdingTypeCode_MXWithholding type code, used for Mexico.String (5)
CFDIWithholdingTypeCode_MX
NoCFDIWithholdingType_MX.CodeNone

Indexes (1)

Relations (5)

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

  • MarkupCodeVend → MarkupTable

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

    Many PurchLine_W records → zero or one MarkupTable record

  • PurchLine → PurchLine

    Join on PurchLine = PurchLine.RecId

    Zero or one PurchLine_W record → exactly one PurchLine record

  • VendInvoiceTrans_W → VendInvoiceTrans

    Join on RefReturnInvoiceTrans_W = VendInvoiceTrans.RecId

    Many PurchLine_W records → zero or one VendInvoiceTrans record

  • VendLedger_RU → VendLedger

    Join on PostingProfile_RU = VendLedger.PostingProfile

    Many PurchLine_W records → zero or one VendLedger record

  • CFDIWithholdingType_MX → CFDIWithholdingType_MX

    Join on WithholdingTypeCode_MX = CFDIWithholdingType_MX.Code

    Many PurchLine_W records → zero or one CFDIWithholdingType_MX record

Get this data out

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

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

Email sales@drdynamics.co.uk