Table
RentalContractLineBestRate
Contract line best rates
Stores best rate results for a rental contract line, with daily, weekly, monthly and SMU rates. It also holds the period length, invoiced amount, SMU readings and calculation settings. The key is the contract line, so each line has one row. It links to customers, rental classes and rental documents.
- Table name
RentalContractLineBestRate- Module
Rental management- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
Rental- Primary index
None- Replacement key
RentalDocumentLineIdx- Key fields
ContractLine- Model
RentalManagement
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ContractLineRental document line this best rate belongs to. | Int64RentalDocumentLineRecId | Yes | RentalDocumentLine.RecId | None |
CustAccountCustomer account for the contract line. | String (20)CustAccount | No | CustTable.AccountNum | None |
DailyRateRate for one day of rental. | RealRentalRate | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DaysNumber of days on the line. | IntegerDays | No | None | |
EndSMUService meter reading of the fleet item at the end. | RealRentalItemSMU | No | None | |
EndSMUReadingDateDate of the end service meter reading. | DateRentalSMUReadingDate | No | None | |
HoursAllowedHours covered by the rate. | RealRentalHoursAllowed | No | None | |
InvoicedAmountAmount invoiced so far. | RealRentalInvoicedAmount | No | None | |
InvoicedToDate up to which invoice schedules exist. | DateRentalInvoicedToDate | No | None | |
IsProrateShows whether the best rate uses a prorated amount. | EnumRentalProrateCalculationNoYes (enum) | No | None | |
IsSavedShows whether the best rate has been saved. | EnumNoYesIdNoYes (enum) | No | None | |
IsSMUOvertimeInvoicingShows whether a price line is created for the SMU fee. | EnumNoYesIdNoYes (enum) | No | None | |
LastDateTimeDate and time of the last rental. | UtcDateTimeToDateTime | No | None | |
MonthlyRateRate for one month of rental. | RealRentalRate | No | None | |
MonthsNumber of months on the line. | IntegerMonths | 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 | |
ReferenceDateStart date used for the best rate calculation. | DateRentalBestRateCalculationReferenceDate | No | None | |
RentalClassTableRental class the best rate applies to. | Int64RentalClassTableRecId | No | RentalClassTable.RecId | None |
SMURateRate used for service meter units. | RealRentalRate | No | None | |
StartDateStart date of the rental contract. | DateStartDate | No | None | |
StartSMUService meter reading when the fleet item was shipped out. | RealRentalItemSMU | No | None | |
StartSMUReadingDateDate of the start service meter reading. | DateRentalSMUReadingDate | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WeeklyRateRate for one week of rental. | RealRentalRate | No | None | |
WeeksNumber of weeks on the line. | IntegerRentalWeeks | No | None |
Indexes (1)
RentalDocumentLineIdxReplacement keyUnique, alternate key.
Relations (4)
Each relation joins RentalContractLineBestRate to another table on the fields shown.
ClassTable→RentalClassTableJoin on
RentalClassTable = RentalClassTable.RecIdMany RentalContractLineBestRate records → zero or one RentalClassTable record
Contract→RentalDocumentTableJoin on
RentalDocumentTable.DocumentType = RentalDocumentType::ContractMany RentalContractLineBestRate records → zero or one RentalDocumentTable record
ContractLine→RentalDocumentLineJoin on
ContractLine = RentalDocumentLine.RecIdZero or one RentalContractLineBestRate record → exactly one RentalDocumentLine record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany RentalContractLineBestRate records → zero or one CustTable record
Get this data out
No public entity reads from RentalContractLineBestRate. Its data is only reachable through the application, a custom entity or a database export.
Need help with RentalContractLineBestRate in a report, an integration or a migration? Talk to Dr Dynamics.