Table

PurchTableHistory_W

Purchase order history

Holds country-specific extra data for purchase order history records. It includes India fields for import, invoice registration, nature of assessee and withholding tax groups, and a Russia field for the advance holder. Each row links to a purchase order history record.

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

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CustomsImportOrder_INYes/No flag showing whether this is an import order, used for India.Enum
NoYesId
NoYes (enum)
NoNone
CustomsInvoiceRegistered_INYes/No flag showing whether the invoice is registered, 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, linked to the worker record, used for Russia.String (20)
EmplAccount_RU
NoEmployeeTable_RU.EmployeeIdNone
NatureOfAssessee_INType of assessee. Values are Company, HUF, Firm, Individual, AOP, BOI, Local authority and Others.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
PurchTableHistoryLink to the purchase order history record that this row extends.Int64
RefRecId
YesPurchTableHistory.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
TCSGroup_INTax collected at source (TCS) group, linked to a withholding tax group.String
TaxWithholdGroup
NoTaxWithholdGroupHeading.TaxWithholdGroupNone
TDSGroup_INTax deducted at source (TDS) group, linked to a withholding tax group.String
TaxWithholdGroup
NoTaxWithholdGroupHeading.TaxWithholdGroupNone

Indexes (1)

Relations (4)

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

  • EmployeeTable_RU → EmployeeTable_RU

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

    Many PurchTableHistory_W records → exactly one EmployeeTable_RU record

  • PurchTableHistory → PurchTableHistory

    Join on PurchTableHistory = PurchTableHistory.RecId

    Zero or one PurchTableHistory_W record → exactly one PurchTableHistory record

  • TaxWithholdGroupHeading → TaxWithholdGroupHeading

    Join on TCSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroup

    Many PurchTableHistory_W records → exactly one TaxWithholdGroupHeading record

  • TaxWithholdGroupHeadingTDS_IN → TaxWithholdGroupHeading

    Join on TDSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroup

    Many PurchTableHistory_W records → exactly one TaxWithholdGroupHeading record

Get this data out

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

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

Email sales@drdynamics.co.uk