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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ItemCodeTells whether the rule applies to one item, an item group or all items. | EnumItemCodeTableGroupAll (enum) | No | PurchPriceToleranceEntityVendInvoicePriceToleranceEntity | |
ItemRelationItem or item price tolerance group the rule applies to. It depends on the item code. | String (20)InventItemRelation | No | InventItemPriceToleranceGroup.ItemPriceToleranceGroupIdInventTable.ItemId | PurchPriceToleranceEntityVendInvoicePriceToleranceEntity |
AccountCodeTells whether the rule applies to one vendor, a vendor group or all vendors. | EnumTableGroupAll (enum) | No | PurchPriceToleranceEntityVendInvoicePriceToleranceEntity | |
AccountRelationVendor account or vendor price tolerance group the rule applies to. It depends on the account code. | String (20)InventCustVendRel | No | VendPriceToleranceGroup.VendPriceToleranceGroupIdVendTable.AccountNum | PurchPriceToleranceEntityVendInvoicePriceToleranceEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PercentToleranceAllowed difference in unit price, as a percentage. | RealPriceTolerancePercentage | No | PurchPriceToleranceEntityVendInvoicePriceToleranceEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
ItemCodeRelAccountCodeRelIdxReplacement keyItemCode,ItemRelation,AccountCode,AccountRelationUnique, alternate key.
Relations (4)
Each relation joins PurchPriceTolerance to another table on the fields shown.
InventTable→InventTableJoin on
ItemCode = TableGroupAll::Table,ItemRelation = InventTable.ItemIdMany PurchPriceTolerance records → zero or one InventTable record
ItemToleranceGroup→InventItemPriceToleranceGroupJoin on
ItemCode = TableGroupAll::GroupId,ItemRelation = InventItemPriceToleranceGroup.ItemPriceToleranceGroupIdMany PurchPriceTolerance records → zero or one InventItemPriceToleranceGroup record
VendTable→VendTableJoin on
AccountCode = TableGroupAll::Table,AccountRelation = VendTable.AccountNumMany PurchPriceTolerance records → zero or one VendTable record
VendToleranceGroup→VendPriceToleranceGroupJoin on
AccountCode = TableGroupAll::GroupId,AccountRelation = VendPriceToleranceGroup.VendPriceToleranceGroupIdMany 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.
PurchPriceToleranceEntity· 5 fields from this tableVendInvoicePriceToleranceEntity· 5 fields from this table
Need help with PurchPriceTolerance in a report, an integration or a migration? Talk to Dr Dynamics.