Table
RentalTemplateLineClassRule
Rental template line class rules
Links a rental template line to a rental class or rental category. Each record is identified by the template line, the type of relation and the related class or category. It also stores whether the item is added to the final invoice.
- Table name
RentalTemplateLineClassRule- Module
Rental management- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
Rental- Primary index
None- Replacement key
TemplateOrderClassIdx- Key fields
TemplateLine, ClassCode, ClassRelation- Model
RentalManagement
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TemplateLineThe rental template line this rule is attached to, linked by its system record ID. | Int64RentalTemplateLineRecId | Yes | RentalTemplateLine.RecId | None |
ClassCodeTells whether the relation points to a single class (Table), a group, or all classes. | EnumRentalClassTableGroupAllTableGroupAll (enum) | No | None | |
ClassRelationThe rental class or rental category that the template line is linked to. | String (20)RentalRateClassRelation | No | RentalCategory.CategoryIdRentalClassTable.ClassId | None |
AddToFinalInvoiceShows whether adding to the final invoice is prompted or required. | EnumRentalAddToFinalInvoice (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | 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 | |
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)
TemplateOrderClassIdxReplacement keyTemplateLine,ClassCode,ClassRelationUnique, alternate key.
Relations (3)
Each relation joins RentalTemplateLineClassRule to another table on the fields shown.
TemplateLine→RentalTemplateLineJoin on
TemplateLine = RentalTemplateLine.RecIdMany RentalTemplateLineClassRule records → exactly one RentalTemplateLine record
RentalClassTable→RentalClassTableJoin on
ClassCode = null,ClassRelation = RentalClassTable.ClassIdMany RentalTemplateLineClassRule records → zero or one RentalClassTable record
RentalCategory→RentalCategoryJoin on
ClassCode = TableGroupAll::GroupId,ClassRelation = RentalCategory.CategoryIdMany RentalTemplateLineClassRule records → zero or one RentalCategory record
Get this data out
No public entity reads from RentalTemplateLineClassRule. Its data is only reachable through the application, a custom entity or a database export.
Need help with RentalTemplateLineClassRule in a report, an integration or a migration? Talk to Dr Dynamics.