Table
RentalTemplateLine
Rental template lines
Holds the lines of a rental template. Each line is identified by the template and a template line ID. Lines mainly describe miscellaneous charges, with amount or percent, calculation base, fee type and revenue category.
- Table name
RentalTemplateLine- Module
Rental management- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
Rental- Primary index
None- Replacement key
RentalTemplateLineIdx- Key fields
Template, TemplateLineId- Model
RentalManagement
Fields (27)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TemplateRental template that the line belongs to. | Int64RentalTemplateRecId | Yes | RentalTemplate.RecId | RentalTemplateLineEntityRentalMiscChargeExemptionEntity |
TemplateLineIdID of the template line. | StringRentalTemplateLineId | Yes | RentalTemplateLineEntityRentalMiscChargeExemptionEntity | |
AddDamageChargeToContractYes/No flag that adds the charge to the contract automatically as a damage charge. | EnumNoYesIdNoYes (enum) | No | RentalTemplateLineEntity | |
AmountFixed amount of the line. | RealAmount | No | RentalTemplateLineEntity | |
CalculationBaseWhat the charge is based on: rental fee, asking price or rental rate. | EnumRentalCalculationBase (enum) | No | RentalTemplateLineEntity | |
CalculationMethodWhether the line price is a normal unit amount or a percentage. | EnumRentalDocumentLineCalculationMethodRentalLineCalculationMethod (enum) | No | RentalTemplateLineEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultChargeYes/No flag marking the line as a default charge.low confidence | EnumRentalDefaultChargeNoYes (enum) | No | None | |
DimensionFinancial dimension set linked to the line. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | RentalTemplateLineEntity |
FinalInvoiceYes/No flag that applies the charge only on the final invoice schedule. | EnumRentalFinalInvoiceNoYes (enum) | No | RentalTemplateLineEntity | |
MaxAmountUpper limit of the amount for a percent-type line. | RealRentalMaxAmount | No | RentalTemplateLineEntity | |
MiscChargeDamageYes/No flag marking the charge as one used to record damage. | EnumRentalMiscChargeDamageNoYes (enum) | No | RentalTemplateLineEntity | |
MiscChargeFeeTypeFee type of the miscellaneous charge, such as transport, fuel or repair. | EnumRentalFeeType_MiscCharge (enum) | No | RentalTemplateLineEntity | |
MiscChargeTypeType of miscellaneous charge: header or line level, and recurring, once or supplemental. | EnumRentalMiscChargeType (enum) | No | RentalTemplateLineEntity | |
NoFeeYes/No flag that leaves the line out of fee calculation. | EnumNoYesIdNoYes (enum) | No | RentalTemplateLineEntity | |
NoFeeOnNegativeYes/No flag that stops an invoice line being created when the main line gives a negative schedule line. | EnumNoYesIdNoYes (enum) | No | RentalTemplateLineEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PercentPercentage used when the line is calculated as a percent. | RealPercent | No | RentalTemplateLineEntity | |
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 | |
RelatedToWhether the line relates to the contract header or a contract line. | EnumRentalRelatedTo (enum) | No | RentalTemplateLineEntity | |
RevenueCategoryRevenue category for the line. | Int64RentalRevenueCategoryRecId | Yes | RentalRevenueCategory.RecId | RentalTemplateLineEntity |
SMUBasedChargeYes/No flag showing that the charge depends on service meter unit (SMU) use. | EnumRentalSMUBasedChargeNoYes (enum) | No | RentalTemplateLineEntity | |
SMUMinHoursMinimum hours charged whatever the SMU use. | RealRentalSMUMinHours | No | RentalTemplateLineEntity | |
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 | |
TemplateLineNameShort name of the template line. | String (30)RentalTemplateLineName | No | RentalTemplateLineEntity |
Indexes (3)
RentalTemplateLineIdxReplacement keyUnique, alternate key.
DimensionIdxNot unique.
RevenueCategoryIdxNot unique.
Relations (3)
Each relation joins RentalTemplateLine to another table on the fields shown.
Dimension→DimensionAttributeValueSetJoin on
Dimension = DimensionAttributeValueSet.RecIdMany RentalTemplateLine records → zero or one DimensionAttributeValueSet record
RentalTemplate→RentalTemplateJoin on
Template = RentalTemplate.RecIdMany RentalTemplateLine records → exactly one RentalTemplate record
RevenueCategory→RentalRevenueCategoryJoin on
RevenueCategory = RentalRevenueCategory.RecIdMany RentalTemplateLine records → exactly one RentalRevenueCategory record
Get this data out
Tables are not exposed directly. These public entities read from RentalTemplateLine; use one of them in Power BI, Power Platform or a data management project.
RentalTemplateLineEntity· 20 fields from this tableRentalMiscChargeExemptionEntity· 2 fields from this table
Need help with RentalTemplateLine in a report, an integration or a migration? Talk to Dr Dynamics.