Table
RentalRateHeader
Rental rate
Holds the header of a rental rate, identified by a rate ID. It sets which customers and rental classes the rate applies to, and a priority. It can also be limited by application, shift or location price factors.
- Table name
RentalRateHeader- Module
Rental management- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
Rental- Primary index
None- Replacement key
RateIdIdx- Key fields
RateId- Model
RentalManagement
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RateIdUnique ID of the rate. | String (20)RentalRateId | Yes | RentalRateHeaderEntityRentalRateLineEntity | |
AccountCodeHow customers are selected: a single account, a group or all customers. | EnumPostingProfileAccountCodeTableGroupAll (enum) | No | RentalRateHeaderEntity | |
AccountRelationThe customer account used when the account code points to a specific customer. | String (20)RentalRateAccountRelation | No | CustTable.AccountNum | RentalRateHeaderEntity |
ApplicationPriceFactorApplication price factor that limits the rate; blank means it applies to any application. | Int64RentalPriceFactorRecId | No | RentalPriceFactor.RecId | None |
ClassCodeHow classes are selected: a single class, a group or all. | EnumRentalClassTableGroupAllTableGroupAll (enum) | No | RentalRateHeaderEntity | |
ClassRelationThe rental class or category used when the class code points to a specific one. | String (20)RentalRateClassRelation | No | RentalCategory.CategoryIdRentalClassTable.ClassId | RentalRateHeaderEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LocationPriceFactorLocation price factor that limits the rate; blank means it applies to any location. | Int64RentalPriceFactorRecId | No | RentalPriceFactor.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 | |
ShiftPriceFactorShift price factor that limits the rate; blank means it applies to any shift. | Int64RentalPriceFactorRecId | No | RentalPriceFactor.RecId | None |
SortingPriority of the rate; lower values are matched first. | IntegerSorting | No | RentalRateHeaderEntity | |
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 | |
TypeWhether the record is a rate or a discount. | EnumRentalRateGroupTypeRentalRateType (enum) | No | RentalRateGroup.RateGroupType | RentalRateHeaderEntity |
Indexes (5)
RateIdIdxReplacement keyUnique, alternate key.
RateHeaderFilterIdxType,ClassCode,ClassRelation,AccountCode,AccountRelation,ApplicationPriceFactor,ShiftPriceFactor,LocationPriceFactor,SortingUnique.
ApplicationPriceFactorIdxNot unique.
ShiftPriceFactorIdxNot unique.
LocationPriceFactorIdxNot unique.
Relations (7)
Each relation joins RentalRateHeader to another table on the fields shown.
ApplicationPriceFactor→RentalPriceFactorJoin on
RentalPriceFactor.PriceFactorType = RentalPriceFactorType::Application,ApplicationPriceFactor = RentalPriceFactor.RecIdMany RentalRateHeader records → zero or one RentalPriceFactor record
CustTable→CustTableJoin on
AccountCode = null,AccountRelation = CustTable.AccountNumMany RentalRateHeader records → zero or one CustTable record
RateGroup→RentalRateGroupJoin on
Type = RentalRateGroup.RateGroupType,AccountCode = TableGroupAll::GroupId,AccountRelation = RentalRateGroup.RateGroupIdMany RentalRateHeader records → zero or one RentalRateGroup record
RentalCategory→RentalCategoryJoin on
ClassCode = TableGroupAll::GroupId,ClassRelation = RentalCategory.CategoryIdMany RentalRateHeader records → zero or one RentalCategory record
RentalClassTable→RentalClassTableJoin on
ClassCode = null,ClassRelation = RentalClassTable.ClassIdMany RentalRateHeader records → zero or one RentalClassTable record
ShiftPriceFactor→RentalPriceFactorJoin on
RentalPriceFactor.PriceFactorType = RentalPriceFactorType::Shift,ShiftPriceFactor = RentalPriceFactor.RecIdMany RentalRateHeader records → zero or one RentalPriceFactor record
LocationPriceFactor→RentalPriceFactorJoin on
RentalPriceFactor.PriceFactorType = RentalPriceFactorType::Location,LocationPriceFactor = RentalPriceFactor.RecIdMany RentalRateHeader records → zero or one RentalPriceFactor record
Get this data out
Tables are not exposed directly. These public entities read from RentalRateHeader; use one of them in Power BI, Power Platform or a data management project.
RentalRateHeaderEntity· 7 fields from this tableRentalRateLineEntity· 1 field from this table
Need help with RentalRateHeader in a report, an integration or a migration? Talk to Dr Dynamics.