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 descriptionType / EDT / enumMandatoryReferencesIn public entities
TemplateLineThe rental template line this rule is attached to, linked by its system record ID.Int64
RentalTemplateLineRecId
YesRentalTemplateLine.RecIdNone
ClassCodeTells whether the relation points to a single class (Table), a group, or all classes.Enum
RentalClassTableGroupAll
TableGroupAll (enum)
NoNone
ClassRelationThe rental class or rental category that the template line is linked to.String (20)
RentalRateClassRelation
NoRentalCategory.CategoryIdRentalClassTable.ClassIdNone
AddToFinalInvoiceShows whether adding to the final invoice is prompted or required.Enum
RentalAddToFinalInvoice (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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 (3)

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

  • TemplateLine → RentalTemplateLine

    Join on TemplateLine = RentalTemplateLine.RecId

    Many RentalTemplateLineClassRule records → exactly one RentalTemplateLine record

  • RentalClassTable → RentalClassTable

    Join on ClassCode = null, ClassRelation = RentalClassTable.ClassId

    Many RentalTemplateLineClassRule records → zero or one RentalClassTable record

  • RentalCategory → RentalCategory

    Join on ClassCode = TableGroupAll::GroupId, ClassRelation = RentalCategory.CategoryId

    Many 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.

Email sales@drdynamics.co.uk