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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ContractLineRental document line this best rate belongs to.Int64
RentalDocumentLineRecId
YesRentalDocumentLine.RecIdNone
CustAccountCustomer account for the contract line.String (20)
CustAccount
NoCustTable.AccountNumNone
DailyRateRate for one day of rental.Real
RentalRate
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DaysNumber of days on the line.Integer
Days
NoNone
EndSMUService meter reading of the fleet item at the end.Real
RentalItemSMU
NoNone
EndSMUReadingDateDate of the end service meter reading.Date
RentalSMUReadingDate
NoNone
HoursAllowedHours covered by the rate.Real
RentalHoursAllowed
NoNone
InvoicedAmountAmount invoiced so far.Real
RentalInvoicedAmount
NoNone
InvoicedToDate up to which invoice schedules exist.Date
RentalInvoicedToDate
NoNone
IsProrateShows whether the best rate uses a prorated amount.Enum
RentalProrateCalculation
NoYes (enum)
NoNone
IsSavedShows whether the best rate has been saved.Enum
NoYesId
NoYes (enum)
NoNone
IsSMUOvertimeInvoicingShows whether a price line is created for the SMU fee.Enum
NoYesId
NoYes (enum)
NoNone
LastDateTimeDate and time of the last rental.UtcDateTime
ToDateTime
NoNone
MonthlyRateRate for one month of rental.Real
RentalRate
NoNone
MonthsNumber of months on the line.Integer
Months
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
ReferenceDateStart date used for the best rate calculation.Date
RentalBestRateCalculationReferenceDate
NoNone
RentalClassTableRental class the best rate applies to.Int64
RentalClassTableRecId
NoRentalClassTable.RecIdNone
SMURateRate used for service meter units.Real
RentalRate
NoNone
StartDateStart date of the rental contract.Date
StartDate
NoNone
StartSMUService meter reading when the fleet item was shipped out.Real
RentalItemSMU
NoNone
StartSMUReadingDateDate of the start service meter reading.Date
RentalSMUReadingDate
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
WeeklyRateRate for one week of rental.Real
RentalRate
NoNone
WeeksNumber of weeks on the line.Integer
RentalWeeks
NoNone

Indexes (1)

  • RentalDocumentLineIdxReplacement key

    ContractLine

    Unique, alternate key.

Relations (4)

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

  • ClassTable → RentalClassTable

    Join on RentalClassTable = RentalClassTable.RecId

    Many RentalContractLineBestRate records → zero or one RentalClassTable record

  • Contract → RentalDocumentTable

    Join on RentalDocumentTable.DocumentType = RentalDocumentType::Contract

    Many RentalContractLineBestRate records → zero or one RentalDocumentTable record

  • ContractLine → RentalDocumentLine

    Join on ContractLine = RentalDocumentLine.RecId

    Zero or one RentalContractLineBestRate record → exactly one RentalDocumentLine record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

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

Email sales@drdynamics.co.uk