Data entity
RentalContractLineEntity
Lines of rental contracts, keyed by rental ID and line number. It holds line type and status, rental class, quantity, amounts, dates, invoicing period, tax groups, job site and pickup location. It also holds rental rate type and notes.
- Entity name
RentalContractLineEntity- Public entity name
RentalContractLine- OData collection
RentalContractLines- Category
Document- Module
Rental management- Read-only
No- Data management enabled
Yes- Configuration key
Rental- Keys
RentalContractId, LineNumber- Staging table
RentalContractLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RentalContractLines- Dataverse virtual table
mserp_rentalcontractlineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RentalDocumentLine· rootRentalDocumentTable· InnerJoin toRentalDocumentLine· read-onlyRentalClassTable· OuterJoin toRentalDocumentLine· read-onlyRentalJobSite· OuterJoin toRentalDocumentLine· read-onlyParentRentalDocumentLine(tableRentalDocumentLine) · OuterJoin toRentalDocumentLine· read-only
Fields (39)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
RentalContractIdUnique ID of the rental contract or quotation. | String (21)RentalId | Yes | Yes | RentalDocumentTable.RentalId | |
LineNumberNumber of the line within the rental document. | RealLineNum | Yes | Yes | RentalDocumentLine.LineNum | |
LineTypeShows whether the rental line is a normal amount or a percentage of another amount. | Enum
| No | Yes | RentalDocumentLine.LineType | |
LineStatusCurrent status of the line: active, closed, call-offs or best rate calculation. | Enum
| No | Yes | RentalDocumentLine.LineStatus | |
RentalClassIdIdentifier of the rental class. | String (20)RentalClassId | No | Yes | RentalClassTable.ClassId | |
LineNameShort name of the rental line. | String (30)RentalName30 | No | Yes | RentalDocumentLine.Name | |
QuantityQuantity on the line. | RealQty | No | Yes | RentalDocumentLine.Qty | |
LineAmountAmount of the line. | RealAmount | No | Yes | RentalDocumentLine.Amount | |
MaximumAmountUpper limit for a percentage-based miscellaneous charge. | RealRentalMaxAmount | No | Yes | RentalDocumentLine.MaxAmount | |
IsMiscellaneousChargeYes or No flag marking a miscellaneous charge, such as delivery or fuel, instead of a rental fee. | EnumNoYesId
| No | Yes | RentalDocumentLine.IsMiscCharge | |
MiscellaneousChargeTypeKind of miscellaneous charge, such as recurring, once or supplemental, at header or line level. | Enum
| No | Yes | RentalDocumentLine.MiscChargeType | |
IsMainLineYes or No flag marking the main rental fee line. | EnumNoYesId
| No | Yes | RentalDocumentLine.IsMainLine | |
StartDateTimeStart date and time of the line. | UtcDateTimeStartDateTime | No | Yes | RentalDocumentLine.StartDateTime | |
EndDateTimeEnd date and time of the line. | UtcDateTimeEndDateTime | No | Yes | RentalDocumentLine.EndDateTime | |
InvoiceFromDateFirst invoice-to date to create. | DateRentalInvoiceFrom | Yes | Yes | RentalDocumentLine.InvoiceFromDate | |
InvoiceUntilDateLast invoice-to date to create. | DateRentalInvoiceUntilDate | No | Yes | RentalDocumentLine.InvoiceUntilDate | |
EstimatedReturnDateTimeExpected date and time of return. | UtcDateTimeRentalEstimatedReturnDateTime | No | Yes | RentalDocumentLine.EstReturnDateTime | |
SalesTaxGroupIdSales tax group of the line. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | RentalDocumentLine.TaxGroup |
ItemSalesTaxGroupIdItem sales tax group of the line. | StringTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | RentalDocumentLine.TaxItemGroup |
JobSiteIdUnique ID of the job site. | String (20)RentalJobSiteId | No | Yes | RentalJobSite.JobSiteId | |
ShipToRuleRule for the delivery address: address, customer, job site or pickup fleet location. | Enum
| No | Yes | RentalDocumentLine.ShipTo | |
PickupRentalLocationIdFleet location where the item is picked up. | String (100)RentalPickupRentalLocationId | No | Yes | RentalLocation.LocationId | RentalDocumentLine.PickupRentalLocationId |
RentalRateTypeType of rate used: default, customer group or customer. | Enum
| No | Yes | RentalDocumentLine.RentalRateType | |
LineNotesFree-text description of the line. | String (250)RentalDocumentLineNotes | No | Yes | RentalDocumentLine.LineNotes | |
PercentagePercentage value used on the line. | RealPercent | No | Yes | RentalDocumentLine.Percent | |
PurchasePricePurchase price of the rental line. | RealRentalDocumentLinePurchPrice | No | Yes | RentalDocumentLine.PurchPrice | |
IsExcludedFromFeeCalculationYes or No flag showing whether the line is left out of fee calculation. | EnumNoYesId
| No | Yes | RentalDocumentLine.NoFee | |
IsMiscellaneousChargeOnlyOnFinalInvoiceScheduleYes or No flag showing whether the charge applies only on the final invoice. | EnumRentalFinalInvoice
| No | Yes | RentalDocumentLine.FinalInvoice | |
CallOffDateCall-off date of the line. | DateRentalCallOffDate | No | Yes | RentalDocumentLine.CallOffDate | |
ServiceMeterUnitUsageMeter usage, as the difference between current and previous readings. | RealRentalUsage | No | Yes | RentalDocumentLine.SMUUsage | |
ServiceMeterUnitMinimumHoursMinimum hours charged whatever the meter usage. | RealRentalSMUMinHours | No | Yes | RentalDocumentLine.SMUMinHours | |
MiscChargeCalculationBaseBase used to calculate the line: rental fee, asking price or rental rate. | Enum
| No | Yes | RentalDocumentLine.CalculationBase | |
OvertimeBillingMethodHow overtime is billed: by period, last reading or end of contract. | Enum
| No | Yes | RentalDocumentLine.OvertimeBillingMethod | |
TemplateLineIdRental template line that the line came from. | StringRentalTemplateLineId | Yes | Yes | RentalDocumentLine.TemplateLineId | |
ParentLineNumberNumber of the line within the rental document. | RealLineNum | Yes | Yes | RentalDocumentLine.LineNum | |
RentalDocumentTableRecIdRental contract or quotation that the line belongs to. | Int64RentalDocumentTableRecId | Yes | No (private) | RentalDocumentTable.RecId | RentalDocumentLine.RentalDocumentTable |
RentalClassRecIdRental class of the line. | Int64RentalClassTableRecId | No | No (private) | RentalClassTable.RecId | RentalDocumentLine.RentalClass |
ParentDocumentLineRecIdParent line of this line. | Int64RentalDocumentLineRecId | No | No (private) | RentalDocumentLine.RecId | RentalDocumentLine.ParentDocumentLine |
JobSiteRecIdJob site linked to the line. | Int64RentalJobSiteRecId | No | No (private) | RentalJobSite.RecId | RentalDocumentLine.JobSite |
Foreign keys (7)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
SalesTaxGroupId→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many RentalDocumentLine records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
ItemSalesTaxGroupId→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many RentalDocumentLine records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
PickupRentalLocationId→RentalLocation.LocationId(key of RentalLocation)Many RentalDocumentLine records → zero or one RentalLocation record
RentalLocation details: see RentalLocationEntity, RentalContractHeaderEntity, RentalQuotationHeaderEntity
RentalDocumentTableRecId→RentalDocumentTable.RecId(key of RentalDocumentTable)Many RentalDocumentLine records → exactly one RentalDocumentTable record
RentalDocumentTable details: see RentalContractHeaderEntity, RentalQuotationHeaderEntity, RentalItemEntity
RentalClassRecId→RentalClassTable.RecId(key of RentalClassTable)Many RentalDocumentLine records → zero or one RentalClassTable record
RentalClassTable details: see RentalClassEntity, RentalContractLineItemEntity, RentalItemEntity
ParentDocumentLineRecId→RentalDocumentLine.RecId(key of RentalDocumentLine)Many RentalDocumentLine records → zero or one RentalDocumentLine record
RentalDocumentLine details: see RentalQuotationLineEntity, RentalContractLineItemEntity, RentalContractLinePriceEntity
JobSiteRecId→RentalJobSite.RecId(key of RentalJobSite)Many RentalDocumentLine records → zero or one RentalJobSite record
RentalJobSite details: see RentalJobSiteEntity, RentalContractHeaderEntity, RentalItemDVEntity
Need help with RentalContractLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.