Table

PurchTable_W

Purchase orders information for countries or regions

Extra purchase order header data for several countries or regions, including India, Russia, Malaysia and Thailand. It links to the purchase order in PurchTable. Fields carry suffixes such as _IN, _RU, _MY and _TH to show the country.

Table name
PurchTable_W
Module
Accounts payable
Table group
WorksheetHeader
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
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustomsImportOrder_INYes/No flag showing the order is an import order, used for India.Enum
NoYesId
NoYes (enum)
NoNone
CustomsInvoiceRegistered_INYes/No flag for invoice registration, used for India.Enum
NoYesId
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EmplAccount_RUWorker who holds the advance, used for Russia. Points to EmployeeTable_RU.String (20)
EmplAccount_RU
NoEmployeeTable_RU.EmployeeIdNone
GSTApprovalNumber_MYGST approval number, used for Malaysia.String (20)
TaxGSTApprovalNumber_MY
NoPurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
InvoicePostalAddress_THSystem record ID of the invoice address, used for Thailand. Points to LogisticsPostalAddress.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdPurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
InvoiceType_MYType of invoice, such as GST invoice or self-billed invoice, used for Malaysia.Enum
InvoiceType_MY (enum)
NoPurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
NatureOfAssessee_INType of assessee, such as company, firm or individual, used for India.Enum
NatureOfAssessee_IN (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurchTableSystem record ID of the purchase order this data belongs to.Int64
RefRecId
NoPurchTable.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
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
TaxBranchSystem record ID of the tax branch for the order.Int64
TaxBranchRefRecId
NoTaxBranch.RecIdNone
TaxGSTImportDeclarationNo_MYImport declaration number for GST, used for Malaysia.String (20)
TaxGSTImportDeclarationNo_MY
NoPurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
TCSGroup_INWithholding tax group for TCS, used for India.String
TaxWithholdGroup
NoTaxWithholdGroupHeading.TaxWithholdGroupNone
TDSGroup_INWithholding tax group for TDS, used for India.String
TaxWithholdGroup
NoTaxWithholdGroupHeading.TaxWithholdGroupNone
WithIGSTPayment_INYes/No flag for with tax payment, used for India.Enum
NoYesId
NoYes (enum)
NoNone

Indexes (1)

Relations (6)

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

  • EmployeeTable_RU → EmployeeTable_RU

    Join on EmployeeTable_RU.AdvHolder = 1, EmplAccount_RU = EmployeeTable_RU.EmployeeId

    Many PurchTable_W records → zero or one EmployeeTable_RU record

  • PurchTable → PurchTable

    Join on PurchTable = PurchTable.RecId

    Zero or one PurchTable_W record → exactly one PurchTable record

  • TaxBranch → TaxBranch

    Join on TaxBranch = TaxBranch.RecId

    Many PurchTable_W records → zero or one TaxBranch record

  • TaxWithholdGroupHeadingTCS_IN → TaxWithholdGroupHeading

    Join on TCSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroup

    Many PurchTable_W records → zero or one TaxWithholdGroupHeading record

  • TaxWithholdGroupHeadingTDS_IN → TaxWithholdGroupHeading

    Join on TDSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroup

    Many PurchTable_W records → zero or one TaxWithholdGroupHeading record

  • InvoicePostalAddress_TH → LogisticsPostalAddress

    Join on InvoicePostalAddress_TH = LogisticsPostalAddress.RecId

    Many PurchTable_W records → zero or one LogisticsPostalAddress record

Get this data out

Tables are not exposed directly. These public entities read from PurchTable_W; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk