Table

RentalDocumentTable

Rental documents

Holds the headers of rental contracts and quotations, identified by rental ID and document type. A header stores the renter, invoice customer, currency, payment terms, dates, addresses and insurance. It also has statuses and rent-to-purchase option settings. The contract header entity and many line entities use it.

Table name
RentalDocumentTable
Module
Rental management
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
Rental
Primary index
None
Replacement key
RentalIdx
Key fields
RentalId, DocumentType
Model
RentalManagement

Fields (73)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RentalIdUnique ID of the rental contract or quotation.String (21)
RentalId
YesRentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineEntityand 8 more
DocumentTypeShows whether the record is a contract or a quotation.Enum
RentalDocumentType (enum)
NoNone
BusRelAccountProspect linked to the document.String (20)
smmBusRelAccount
NosmmBusRelTable.BusRelAccountNone
CompoundInterestYes/No setting. When on, interest that builds up is added to the reducing balance, so interest is charged on interest.Enum
RentalCompoundInterest
NoYes (enum)
NoNone
ContactPersonIdContact person linked to the document.String (20)
ContactPersonId
NoContactPerson.ContactPersonIdRentalContractHeaderEntityRentalQuotationHeaderEntity
ContractStatusStatus of the contract, such as created, active, on hold, closed or cancelled.Enum
RentalContractStatus (enum)
NoRentalContractHeaderEntityRentalContractLineItemDVEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency of the document.String (3)
CurrencyCode
YesCurrency.CurrencyCodeRentalContractHeaderEntityRentalQuotationHeaderEntity
CustomerPONumberCustomer's purchase order reference.String (30)
RentalCustomerPurchaseOrderNumber
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionFinancial dimension values set for the document.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdRentalContractHeaderEntityRentalQuotationHeaderEntity
DeliveryPostalAddressPostal address for delivery.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdRentalContractHeaderEntityRentalQuotationHeaderEntity
DieselCalculationYes/No setting that turns on diesel charges for inbound fleet item movements. The contract needs a fuel line, and the fuel type comes from the model.Enum
RentalDieselCalculation
NoYes (enum)
NoNone
DieselPriceDiesel price for each unit of volume.Real
RentalDieselPrice
NoNone
DocumentConvertedFromDocument that this one was converted from.Int64
RentalDocumentTableRecId
NoRentalDocumentTable.RecIdNone
DocumentConvertedToDocument that this one was converted to.Int64
RentalDocumentTableRecId
NoRentalDocumentTable.RecIdNone
EndDateEnd date of the document.Date
EndDate
NoRentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineItemDVEntity
EstimatedReturnDateTimeExpected date and time of return.UtcDateTime
RentalEstimatedReturnDateTime
NoRentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineItemDVEntity
FinTagFinancial tag linked to the document.Int64
FinTagRecId
NoFinTag.RecIdNone
FuelCalculationYes/No setting that turns on fuel charges for inbound fleet item movements. The contract needs a fuel line, and the fuel type comes from the model.Enum
RentalFuelCalculation
NoYes (enum)
NoNone
FuelPriceFuel price for each unit of volume.Real
RentalFuelPrice
NoNone
HasCashPaymentYes or No flag showing whether a cash payment was registered.Enum
RentalCustHasCashPayment
NoYes (enum)
NoNone
HeaderDiscPctDiscount percentage applied from the header.Real
RentalHeaderDiscPct
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
HeaderNotesGeneral notes for the contract.String (255)
RentalDocumentTableNotes
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
InterestCalcStartDateDate interest calculation starts.Date
RentalInterestCalcStartDate
NoNone
InvoiceAccountOther customer to send the invoice to, if any.String (20)
RentalInvoiceAccount
NoCustTable.AccountNumRentalContractHeaderEntityRentalQuotationHeaderEntity
InvoicedRentalItemFleet item that receives the invoiced value from this document.Int64
RentalItemRecId
NoRentalItemTable.RecIdNone
InvoiceFromDateFirst invoice-to date to create.Date
RentalInvoiceFrom
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
InvoiceInfoText to print on the invoice.String (600)
RentalInvoiceInfo
NoNone
InvoiceMethodInvoice method used for the document.Int64
RentalInvoiceMethodRecId
NoRentalInvoiceMethod.RecIdRentalContractHeaderEntityRentalQuotationHeaderEntity
InvoicePostalAddressPostal address for the invoice.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
InvoiceUntilDateLast invoice-to date to create.Date
RentalInvoiceUntilDate
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
IsRentalPurchaseOptionYes or No flag showing whether the document is a rental purchase option rather than rent-to-rent.Enum
RentalPurchaseOption
NoYes (enum)
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
ItemMovementReasonCodeReason code for fleet item movement.Int64
RentalItemMovementReasonCodeRecId
NoRentalItemMovementReasonCode.RecIdNone
JobSiteJob site linked to the document.Int64
RentalJobSiteRecId
NoRentalJobSite.RecIdRentalContractHeaderEntityRentalQuotationHeaderEntity
JobSitePostalAddressExtra job site address used when a pickup fleet location is chosen.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
LiabilityInsuranceLiability insurance record linked to the document.Int64
RentalInsuranceRecId
NoRentalInsurance.RecIdNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
NoticeToOwnerNotice to owner record linked to the document.Int64
RentalNoticeToOwnerRecId
NoRentalNoticeToOwner.RecIdNone
OnsiteContactInformationContact details for the person on site and delivery notes.String (255)
RentalOnsiteContactInformation
NoNone
OpportunityIdSales opportunity linked to the document.String
smmOpportunityId
NosmmOpportunityTable.OpportunityIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymTermIdTerms of payment for the document.String (100)
PaymTermId
NoPaymTerm.PaymTermIdRentalContractHeaderEntityRentalQuotationHeaderEntity
PickupRentalLocationIdFleet location where items are picked up.String (100)
RentalPickupRentalLocationId
NoRentalLocation.LocationIdRentalContractHeaderEntityRentalQuotationHeaderEntity
PrintDateDate the document was printed.Date
PrintDate
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
ProformaContractTotalAmountTotal from the last proforma invoice schedule run.Real
RentalProformaContractTotal
NoNone
PropertyInsuranceProperty insurance record linked to the document.Int64
RentalInsuranceRecId
NoRentalInsurance.RecIdNone
QuotationExpiryDateDate the quotation expires.Date
RentalExpiryDate
NoRentalQuotationHeaderEntity
QuotationReasonIdReason code for the quotation.String (20)
smmQuotationReasonId
NosmmQuotationReasonGroup.ReasonIdRentalQuotationHeaderEntity
QuotationStatusStatus of the quotation, such as created, sent, won or lost.Enum
RentalQuotationStatus (enum)
NoRentalQuotationHeaderEntity
QuotationTypeType of quotation: simple or reservations.Enum
RentalQuotationType
RentalSimpleReservation (enum)
NoRentalQuotationHeaderEntity
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
RentalLocationIdFleet location of the document.String (100)
RentalLocationId
NoRentalLocation.LocationIdRentalContractHeaderEntityRentalQuotationHeaderEntity
RentalPurchaseOptionInterestRecIdInterest calculation linked to the purchase option.Int64
RentalPurchaseOptionInterestCalculationRefRecId
NoRentalPurchaseOptionInterestCalculation.RecIdNone
RentalPurchaseOptionInterestTypeInterest type for the purchase option: none, fixed or prime plus.Enum
RentalPurchaseOptionInterestType (enum)
NoRentalContractHeaderEntity
RentalPurchaseOptionMaxTermMaximum term of the rental purchase option.Integer
RentalMaxTerm
NoRentalContractHeaderEntity
RentalPurchaseOptionMaxTermDateDate reached after the maximum term from the option start date.Date
RentalPurchaseOptionMaxTermDate
NoRentalContractHeaderEntity
RentalPurchaseOptionMinTermMinimum term of the rental purchase option.Integer
RentalMinTerm
NoRentalContractHeaderEntity
RentalPurchaseOptionMinTermDateDate reached after the minimum term from the option start date.Date
RentalPurchaseOptionMinTermDate
NoRentalContractHeaderEntity
RentalPurchaseOptionOrderNumberOrder number of the rent-to-purchase order.String (20)
RentalPurchaseOptionOrderNumber
NoRentalContractHeaderEntity
RentalPurchaseOptionStartDateDate when the rental purchase option begins on the quotation or contract.Date
RentalPurchaseOptionStartDate
NoRentalContractHeaderEntity
RentalPurchaseOptionTransferStatusStatus of the purchase option transfer request, from created to transferred.Enum
RentalPurchaseOptionTransferRequestStatus (enum)
NoRentalContractHeaderEntity
RentalTemplateRental template used for the document.Int64
RentalTemplateRecId
YesRentalTemplate.RecIdRentalContractHeaderEntityRentalQuotationHeaderEntity
RenterAccountCustomer account of the renter.String (20)
RentalRenterAccount
NoCustTable.AccountNumRentalContractHeaderEntityRentalQuotationHeaderEntity
SalesResponsibleWorker who took the sale.Int64
RentalResponsibleWorkerRecId
NoHcmWorker.RecIdNone
ShipToRule for the delivery address: address, customer, job site or pickup fleet location.Enum
RentalMainAddressRule (enum)
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
StartDateTimeDate and time when the rental agreement begins.UtcDateTime
RentalStartDateTime
YesRentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineItemDVEntity
SubjectShort subject text for the contract or quotation.String (50)
RentalSubject
NoRentalContractHeaderEntityRentalQuotationHeaderEntity
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
TaxGroupSales tax group of the document.String
TaxGroup
NoTaxGroupHeading.TaxGroupRentalContractHeaderEntityRentalQuotationHeaderEntity

Indexes (19)

Relations (28)

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

  • InvoicedRentalItem → RentalItemTable

    Join on InvoicedRentalItem = RentalItemTable.RecId

    Many RentalDocumentTable records → zero or one RentalItemTable record

  • DocumentConvertedFrom → RentalDocumentTable

    Join on DocumentConvertedFrom = RentalDocumentTable.RecId

    Many RentalDocumentTable records → zero or one RentalDocumentTable record

  • DocumentConvertedTo → RentalDocumentTable

    Join on DocumentConvertedTo = RentalDocumentTable.RecId

    Many RentalDocumentTable records → zero or one RentalDocumentTable record

  • RenterAccount → CustTable

    Join on RenterAccount = CustTable.AccountNum

    Many RentalDocumentTable records → zero or one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many RentalDocumentTable records → zero or one DimensionAttributeValueSet record

  • RentalItemMovementReasonCode → RentalItemMovementReasonCode

    Join on ItemMovementReasonCode = RentalItemMovementReasonCode.RecId

    Many RentalDocumentTable records → zero or one RentalItemMovementReasonCode record

  • InvoiceAccount → CustTable

    Join on InvoiceAccount = CustTable.AccountNum

    Many RentalDocumentTable records → zero or one CustTable record

  • LiabilityInsurance → RentalInsurance

    Join on LiabilityInsurance = RentalInsurance.RecId

    Many RentalDocumentTable records → zero or one RentalInsurance record

  • NoticeToOwner → RentalNoticeToOwner

    Join on NoticeToOwner = RentalNoticeToOwner.RecId

    Many RentalDocumentTable records → zero or one RentalNoticeToOwner record

  • PropertyInsurance → RentalInsurance

    Join on PropertyInsurance = RentalInsurance.RecId

    Many RentalDocumentTable records → zero or one RentalInsurance record

  • RentalTemplate → RentalTemplate

    Join on RentalTemplate = RentalTemplate.RecId

    Many RentalDocumentTable records → exactly one RentalTemplate record

  • smmBusRelTable → smmBusRelTable

    Join on BusRelAccount = smmBusRelTable.BusRelAccount

    Many RentalDocumentTable records → zero or one smmBusRelTable record

  • smmOpportunityTable → smmOpportunityTable

    Join on OpportunityId = smmOpportunityTable.OpportunityId

    Many RentalDocumentTable records → zero or one smmOpportunityTable record

  • QuotationReason → smmQuotationReasonGroup

    Join on QuotationReasonId = smmQuotationReasonGroup.ReasonId

    Many RentalDocumentTable records → zero or one smmQuotationReasonGroup record

  • JobSite → RentalJobSite

    Join on JobSite = RentalJobSite.RecId

    Many RentalDocumentTable records → zero or one RentalJobSite record

  • DeliveryPostalAddress → LogisticsPostalAddress

    Join on DeliveryPostalAddress = LogisticsPostalAddress.RecId

    Many RentalDocumentTable records → zero or one LogisticsPostalAddress record

  • InvoicePostalAddress → LogisticsPostalAddress

    Join on InvoicePostalAddress = LogisticsPostalAddress.RecId

    Many RentalDocumentTable records → zero or one LogisticsPostalAddress record

  • PickupRentalLoc → RentalLocation

    Join on PickupRentalLocationId = RentalLocation.LocationId

    Many RentalDocumentTable records → zero or one RentalLocation record

  • TaxGroup → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many RentalDocumentTable records → zero or one TaxGroupHeading record

  • JobSitePostalAddress → LogisticsPostalAddress

    Join on JobSitePostalAddress = LogisticsPostalAddress.RecId

    Many RentalDocumentTable records → zero or one LogisticsPostalAddress record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many RentalDocumentTable records → exactly one Currency record

  • InvoiceMethod → RentalInvoiceMethod

    Join on InvoiceMethod = RentalInvoiceMethod.RecId

    Many RentalDocumentTable records → zero or one RentalInvoiceMethod record

  • PaymTerm → PaymTerm

    Join on PaymTermId = PaymTerm.PaymTermId

    Many RentalDocumentTable records → zero or one PaymTerm record

  • RentalPurchaseOptionInterestCalculation → RentalPurchaseOptionInterestCalculation

    Join on RentalPurchaseOptionInterestRecId = RentalPurchaseOptionInterestCalculation.RecId

    Many RentalDocumentTable records → zero or one RentalPurchaseOptionInterestCalculation record

  • ContactPerson → ContactPerson

    Join on ContactPersonId = ContactPerson.ContactPersonId

    Many RentalDocumentTable records → zero or one ContactPerson record

  • SalesResponsible → HcmWorker

    Join on SalesResponsible = HcmWorker.RecId

    Many RentalDocumentTable records → zero or one HcmWorker record

  • RentalLocation → RentalLocation

    Join on RentalLocationId = RentalLocation.LocationId

    Many RentalDocumentTable records → zero or one RentalLocation record

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many RentalDocumentTable records → zero or one FinTag record

Get this data out

Tables are not exposed directly. These public entities read from RentalDocumentTable; use one of them in Power BI, Power Platform or a data management project.

Need help with RentalDocumentTable in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk