Table

PurchPriceTolerance

Price tolerance setup

Price tolerance setup for purchase invoice matching. Each record links an item, item group or all items to a vendor, vendor group or all vendors. It holds the allowed unit price percentage. The key combines the item code, item relation, account code and account relation.

Table name
PurchPriceTolerance
Module
Accounts payable
Table group
Parameter
Table type
Regular
Data per company
Yes
Configuration key
PurchInvoiceMatching
Primary index
RecId
Replacement key
ItemCodeRelAccountCodeRelIdx
Key fields
ItemCode, ItemRelation, AccountCode, AccountRelation
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemCodeTells whether the rule applies to one item, an item group or all items.Enum
ItemCode
TableGroupAll (enum)
NoPurchPriceToleranceEntityVendInvoicePriceToleranceEntity
ItemRelationItem or item price tolerance group the rule applies to. It depends on the item code.String (20)
InventItemRelation
NoInventItemPriceToleranceGroup.ItemPriceToleranceGroupIdInventTable.ItemIdPurchPriceToleranceEntityVendInvoicePriceToleranceEntity
AccountCodeTells whether the rule applies to one vendor, a vendor group or all vendors.Enum
TableGroupAll (enum)
NoPurchPriceToleranceEntityVendInvoicePriceToleranceEntity
AccountRelationVendor account or vendor price tolerance group the rule applies to. It depends on the account code.String (20)
InventCustVendRel
NoVendPriceToleranceGroup.VendPriceToleranceGroupIdVendTable.AccountNumPurchPriceToleranceEntityVendInvoicePriceToleranceEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
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
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
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
PercentToleranceAllowed difference in unit price, as a percentage.Real
PriceTolerancePercentage
NoPurchPriceToleranceEntityVendInvoicePriceToleranceEntity
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

Indexes (1)

Relations (4)

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

  • InventTable → InventTable

    Join on ItemCode = TableGroupAll::Table, ItemRelation = InventTable.ItemId

    Many PurchPriceTolerance records → zero or one InventTable record

  • ItemToleranceGroup → InventItemPriceToleranceGroup

    Join on ItemCode = TableGroupAll::GroupId, ItemRelation = InventItemPriceToleranceGroup.ItemPriceToleranceGroupId

    Many PurchPriceTolerance records → zero or one InventItemPriceToleranceGroup record

  • VendTable → VendTable

    Join on AccountCode = TableGroupAll::Table, AccountRelation = VendTable.AccountNum

    Many PurchPriceTolerance records → zero or one VendTable record

  • VendToleranceGroup → VendPriceToleranceGroup

    Join on AccountCode = TableGroupAll::GroupId, AccountRelation = VendPriceToleranceGroup.VendPriceToleranceGroupId

    Many PurchPriceTolerance records → zero or one VendPriceToleranceGroup record

Get this data out

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

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

Email sales@drdynamics.co.uk