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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RentalIdUnique ID of the rental contract or quotation. | String (21)RentalId | Yes | RentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineEntityand 8 more | |
DocumentTypeShows whether the record is a contract or a quotation. | EnumRentalDocumentType (enum) | No | None | |
BusRelAccountProspect linked to the document. | String (20)smmBusRelAccount | No | smmBusRelTable.BusRelAccount | None |
CompoundInterestYes/No setting. When on, interest that builds up is added to the reducing balance, so interest is charged on interest. | EnumRentalCompoundInterestNoYes (enum) | No | None | |
ContactPersonIdContact person linked to the document. | String (20)ContactPersonId | No | ContactPerson.ContactPersonId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
ContractStatusStatus of the contract, such as created, active, on hold, closed or cancelled. | EnumRentalContractStatus (enum) | No | RentalContractHeaderEntityRentalContractLineItemDVEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency of the document. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | RentalContractHeaderEntityRentalQuotationHeaderEntity |
CustomerPONumberCustomer's purchase order reference. | String (30)RentalCustomerPurchaseOrderNumber | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionFinancial dimension values set for the document. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
DeliveryPostalAddressPostal address for delivery. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
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. | EnumRentalDieselCalculationNoYes (enum) | No | None | |
DieselPriceDiesel price for each unit of volume. | RealRentalDieselPrice | No | None | |
DocumentConvertedFromDocument that this one was converted from. | Int64RentalDocumentTableRecId | No | RentalDocumentTable.RecId | None |
DocumentConvertedToDocument that this one was converted to. | Int64RentalDocumentTableRecId | No | RentalDocumentTable.RecId | None |
EndDateEnd date of the document. | DateEndDate | No | RentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineItemDVEntity | |
EstimatedReturnDateTimeExpected date and time of return. | UtcDateTimeRentalEstimatedReturnDateTime | No | RentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineItemDVEntity | |
FinTagFinancial tag linked to the document. | Int64FinTagRecId | No | FinTag.RecId | None |
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. | EnumRentalFuelCalculationNoYes (enum) | No | None | |
FuelPriceFuel price for each unit of volume. | RealRentalFuelPrice | No | None | |
HasCashPaymentYes or No flag showing whether a cash payment was registered. | EnumRentalCustHasCashPaymentNoYes (enum) | No | None | |
HeaderDiscPctDiscount percentage applied from the header. | RealRentalHeaderDiscPct | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
HeaderNotesGeneral notes for the contract. | String (255)RentalDocumentTableNotes | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
InterestCalcStartDateDate interest calculation starts. | DateRentalInterestCalcStartDate | No | None | |
InvoiceAccountOther customer to send the invoice to, if any. | String (20)RentalInvoiceAccount | No | CustTable.AccountNum | RentalContractHeaderEntityRentalQuotationHeaderEntity |
InvoicedRentalItemFleet item that receives the invoiced value from this document. | Int64RentalItemRecId | No | RentalItemTable.RecId | None |
InvoiceFromDateFirst invoice-to date to create. | DateRentalInvoiceFrom | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
InvoiceInfoText to print on the invoice. | String (600)RentalInvoiceInfo | No | None | |
InvoiceMethodInvoice method used for the document. | Int64RentalInvoiceMethodRecId | No | RentalInvoiceMethod.RecId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
InvoicePostalAddressPostal address for the invoice. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
InvoiceUntilDateLast invoice-to date to create. | DateRentalInvoiceUntilDate | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
IsRentalPurchaseOptionYes or No flag showing whether the document is a rental purchase option rather than rent-to-rent. | EnumRentalPurchaseOptionNoYes (enum) | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
ItemMovementReasonCodeReason code for fleet item movement. | Int64RentalItemMovementReasonCodeRecId | No | RentalItemMovementReasonCode.RecId | None |
JobSiteJob site linked to the document. | Int64RentalJobSiteRecId | No | RentalJobSite.RecId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
JobSitePostalAddressExtra job site address used when a pickup fleet location is chosen. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
LiabilityInsuranceLiability insurance record linked to the document. | Int64RentalInsuranceRecId | No | RentalInsurance.RecId | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
NoticeToOwnerNotice to owner record linked to the document. | Int64RentalNoticeToOwnerRecId | No | RentalNoticeToOwner.RecId | None |
OnsiteContactInformationContact details for the person on site and delivery notes. | String (255)RentalOnsiteContactInformation | No | None | |
OpportunityIdSales opportunity linked to the document. | StringsmmOpportunityId | No | smmOpportunityTable.OpportunityId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymTermIdTerms of payment for the document. | String (100)PaymTermId | No | PaymTerm.PaymTermId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
PickupRentalLocationIdFleet location where items are picked up. | String (100)RentalPickupRentalLocationId | No | RentalLocation.LocationId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
PrintDateDate the document was printed. | DatePrintDate | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
ProformaContractTotalAmountTotal from the last proforma invoice schedule run. | RealRentalProformaContractTotal | No | None | |
PropertyInsuranceProperty insurance record linked to the document. | Int64RentalInsuranceRecId | No | RentalInsurance.RecId | None |
QuotationExpiryDateDate the quotation expires. | DateRentalExpiryDate | No | RentalQuotationHeaderEntity | |
QuotationReasonIdReason code for the quotation. | String (20)smmQuotationReasonId | No | smmQuotationReasonGroup.ReasonId | RentalQuotationHeaderEntity |
QuotationStatusStatus of the quotation, such as created, sent, won or lost. | EnumRentalQuotationStatus (enum) | No | RentalQuotationHeaderEntity | |
QuotationTypeType of quotation: simple or reservations. | EnumRentalQuotationTypeRentalSimpleReservation (enum) | No | RentalQuotationHeaderEntity | |
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 | |
RentalLocationIdFleet location of the document. | String (100)RentalLocationId | No | RentalLocation.LocationId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
RentalPurchaseOptionInterestRecIdInterest calculation linked to the purchase option. | Int64RentalPurchaseOptionInterestCalculationRefRecId | No | RentalPurchaseOptionInterestCalculation.RecId | None |
RentalPurchaseOptionInterestTypeInterest type for the purchase option: none, fixed or prime plus. | EnumRentalPurchaseOptionInterestType (enum) | No | RentalContractHeaderEntity | |
RentalPurchaseOptionMaxTermMaximum term of the rental purchase option. | IntegerRentalMaxTerm | No | RentalContractHeaderEntity | |
RentalPurchaseOptionMaxTermDateDate reached after the maximum term from the option start date. | DateRentalPurchaseOptionMaxTermDate | No | RentalContractHeaderEntity | |
RentalPurchaseOptionMinTermMinimum term of the rental purchase option. | IntegerRentalMinTerm | No | RentalContractHeaderEntity | |
RentalPurchaseOptionMinTermDateDate reached after the minimum term from the option start date. | DateRentalPurchaseOptionMinTermDate | No | RentalContractHeaderEntity | |
RentalPurchaseOptionOrderNumberOrder number of the rent-to-purchase order. | String (20)RentalPurchaseOptionOrderNumber | No | RentalContractHeaderEntity | |
RentalPurchaseOptionStartDateDate when the rental purchase option begins on the quotation or contract. | DateRentalPurchaseOptionStartDate | No | RentalContractHeaderEntity | |
RentalPurchaseOptionTransferStatusStatus of the purchase option transfer request, from created to transferred. | EnumRentalPurchaseOptionTransferRequestStatus (enum) | No | RentalContractHeaderEntity | |
RentalTemplateRental template used for the document. | Int64RentalTemplateRecId | Yes | RentalTemplate.RecId | RentalContractHeaderEntityRentalQuotationHeaderEntity |
RenterAccountCustomer account of the renter. | String (20)RentalRenterAccount | No | CustTable.AccountNum | RentalContractHeaderEntityRentalQuotationHeaderEntity |
SalesResponsibleWorker who took the sale. | Int64RentalResponsibleWorkerRecId | No | HcmWorker.RecId | None |
ShipToRule for the delivery address: address, customer, job site or pickup fleet location. | EnumRentalMainAddressRule (enum) | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
StartDateTimeDate and time when the rental agreement begins. | UtcDateTimeRentalStartDateTime | Yes | RentalContractHeaderEntityRentalQuotationHeaderEntityRentalContractLineItemDVEntity | |
SubjectShort subject text for the contract or quotation. | String (50)RentalSubject | No | RentalContractHeaderEntityRentalQuotationHeaderEntity | |
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 | |
TaxGroupSales tax group of the document. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | RentalContractHeaderEntityRentalQuotationHeaderEntity |
Indexes (19)
RentalIdxReplacement keyUnique, alternate key.
DimensionAttributeValueSetIdxNot unique.
smmBusRelTableIdxNot unique.
DocumentConvertedFromIdxNot unique.
DocumentConvertedToIdxNot unique.
RenterAccountIdxNot unique.
InvoiceAccountIdxNot unique.
DocumentTypeRenterAccountIdxDocumentType,RenterAccount,RecIdNot unique.
ContractStatusIdxNot unique.
ReasonIdxDocumentType,QuotationReasonIdNot unique.
RentalJobSiteIdxNot unique.
PickupRentalLocationIdxNot unique.
DeliveryPostalAddressIdxNot unique.
TaxGroupHeadingIdxNot unique.
RentalInvoiceMethodIdxNot unique.
PaymTermIdxNot unique.
CurrencyIdxNot unique.
ContactPersonIdxNot unique.
SalesResponsibleIdxNot unique.
Relations (28)
Each relation joins RentalDocumentTable to another table on the fields shown.
InvoicedRentalItem→RentalItemTableJoin on
InvoicedRentalItem = RentalItemTable.RecIdMany RentalDocumentTable records → zero or one RentalItemTable record
DocumentConvertedFrom→RentalDocumentTableJoin on
DocumentConvertedFrom = RentalDocumentTable.RecIdMany RentalDocumentTable records → zero or one RentalDocumentTable record
DocumentConvertedTo→RentalDocumentTableJoin on
DocumentConvertedTo = RentalDocumentTable.RecIdMany RentalDocumentTable records → zero or one RentalDocumentTable record
RenterAccount→CustTableJoin on
RenterAccount = CustTable.AccountNumMany RentalDocumentTable records → zero or one CustTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany RentalDocumentTable records → zero or one DimensionAttributeValueSet record
RentalItemMovementReasonCode→RentalItemMovementReasonCodeJoin on
ItemMovementReasonCode = RentalItemMovementReasonCode.RecIdMany RentalDocumentTable records → zero or one RentalItemMovementReasonCode record
InvoiceAccount→CustTableJoin on
InvoiceAccount = CustTable.AccountNumMany RentalDocumentTable records → zero or one CustTable record
LiabilityInsurance→RentalInsuranceJoin on
LiabilityInsurance = RentalInsurance.RecIdMany RentalDocumentTable records → zero or one RentalInsurance record
NoticeToOwner→RentalNoticeToOwnerJoin on
NoticeToOwner = RentalNoticeToOwner.RecIdMany RentalDocumentTable records → zero or one RentalNoticeToOwner record
PropertyInsurance→RentalInsuranceJoin on
PropertyInsurance = RentalInsurance.RecIdMany RentalDocumentTable records → zero or one RentalInsurance record
RentalTemplate→RentalTemplateJoin on
RentalTemplate = RentalTemplate.RecIdMany RentalDocumentTable records → exactly one RentalTemplate record
smmBusRelTable→smmBusRelTableJoin on
BusRelAccount = smmBusRelTable.BusRelAccountMany RentalDocumentTable records → zero or one smmBusRelTable record
smmOpportunityTable→smmOpportunityTableJoin on
OpportunityId = smmOpportunityTable.OpportunityIdMany RentalDocumentTable records → zero or one smmOpportunityTable record
QuotationReason→smmQuotationReasonGroupJoin on
QuotationReasonId = smmQuotationReasonGroup.ReasonIdMany RentalDocumentTable records → zero or one smmQuotationReasonGroup record
JobSite→RentalJobSiteJoin on
JobSite = RentalJobSite.RecIdMany RentalDocumentTable records → zero or one RentalJobSite record
DeliveryPostalAddress→LogisticsPostalAddressJoin on
DeliveryPostalAddress = LogisticsPostalAddress.RecIdMany RentalDocumentTable records → zero or one LogisticsPostalAddress record
InvoicePostalAddress→LogisticsPostalAddressJoin on
InvoicePostalAddress = LogisticsPostalAddress.RecIdMany RentalDocumentTable records → zero or one LogisticsPostalAddress record
PickupRentalLoc→RentalLocationJoin on
PickupRentalLocationId = RentalLocation.LocationIdMany RentalDocumentTable records → zero or one RentalLocation record
TaxGroup→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany RentalDocumentTable records → zero or one TaxGroupHeading record
JobSitePostalAddress→LogisticsPostalAddressJoin on
JobSitePostalAddress = LogisticsPostalAddress.RecIdMany RentalDocumentTable records → zero or one LogisticsPostalAddress record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany RentalDocumentTable records → exactly one Currency record
InvoiceMethod→RentalInvoiceMethodJoin on
InvoiceMethod = RentalInvoiceMethod.RecIdMany RentalDocumentTable records → zero or one RentalInvoiceMethod record
PaymTerm→PaymTermJoin on
PaymTermId = PaymTerm.PaymTermIdMany RentalDocumentTable records → zero or one PaymTerm record
RentalPurchaseOptionInterestCalculation→RentalPurchaseOptionInterestCalculationJoin on
RentalPurchaseOptionInterestRecId = RentalPurchaseOptionInterestCalculation.RecIdMany RentalDocumentTable records → zero or one RentalPurchaseOptionInterestCalculation record
ContactPerson→ContactPersonJoin on
ContactPersonId = ContactPerson.ContactPersonIdMany RentalDocumentTable records → zero or one ContactPerson record
SalesResponsible→HcmWorkerJoin on
SalesResponsible = HcmWorker.RecIdMany RentalDocumentTable records → zero or one HcmWorker record
RentalLocation→RentalLocationJoin on
RentalLocationId = RentalLocation.LocationIdMany RentalDocumentTable records → zero or one RentalLocation record
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany 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.
RentalContractHeaderEntity· 35 fields from this tableRentalQuotationHeaderEntity· 30 fields from this tableRentalContractLineEntity· 1 field from this tableRentalContractLinePriceEntity· 1 field from this tableRentalItemEntity· 2 fields from this tableRentalQuotationLineEntity· 1 field from this tableRentalQuotationLinePriceEntity· 1 field from this tableRentalContractLineItemEntity· 1 field from this tableRentalQuotationLineItemEntity· 1 field from this tableRentalContractLineItemDVEntity· 5 fields from this table
Need help with RentalDocumentTable in a report, an integration or a migration? Talk to Dr Dynamics.