Table

RentalSalesTable

Rental sales order

Adds rental details to a sales order header, one record per sales order. It links to the rental contract, fleet item, job site, notice to owner, invoice schedule and load the order came from. It also holds the ship-to choice and pickup location.

Table name
RentalSalesTable
Module
Rental management
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
Rental
Primary index
SalesTableIdx
Replacement key
SalesTableIdx
Key fields
SalesTable
Model
RentalManagement

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTableThe sales order this rental record extends.Int64
SalesTableRefRecId
YesSalesTable.RecIdRentalSalesTableBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
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
RentalDocumentTableThe rental contract or quotation linked to the order.Int64
RentalDocumentTableRecId
NoRentalDocumentTable.RecIdRentalSalesTableBiEntity
RentalInvoiceScheduleTableThe invoice schedule linked to the order.Int64
RentalInvoiceScheduleTableRecId
NoRentalInvoiceScheduleTable.RecIdRentalSalesTableBiEntity
RentalItemThe fleet item on the order.Int64
RentalItemRecId
NoRentalItemTable.RecIdRentalSalesTableBiEntity
RentalJobSiteThe job site for the order.Int64
RentalJobSiteRecId
NoRentalJobSite.RecIdRentalSalesTableBiEntity
RentalLoadPoints to the load that the sales order originated from.Int64
RentalLoadRecId
NoRentalLoad.RecIdRentalSalesTableBiEntity
RentalNoticeToOwnerThe notice to owner linked to the order.Int64
RentalNoticeToOwnerRecId
NoRentalNoticeToOwner.RecIdRentalSalesTableBiEntity
RentalPickupRentalLocationIdThe fleet location used for pickup.String (100)
RentalPickupRentalLocationId
NoRentalLocation.LocationIdRentalSalesTableBiEntity
RentalShipToWhere to ship: none, an address, a job site or a pickup fleet location.Enum
RentalShipTo (enum)
NoRentalSalesTableBiEntity
SalesIdSales order number.String (20)
SalesId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

  • SalesTableIdxPrimary indexReplacement key

    SalesTable

    Unique, alternate key.

  • SalesIdIdx

    SalesId

    Unique.

Relations (8)

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

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Exactly one RentalSalesTable record → zero or one SalesTable record

  • RentalItem → RentalItemTable

    Join on RentalItem = RentalItemTable.RecId

    Many RentalSalesTable records → zero or one RentalItemTable record

  • RentalInvoiceScheduleTable → RentalInvoiceScheduleTable

    Join on RentalInvoiceScheduleTable = RentalInvoiceScheduleTable.RecId

    Many RentalSalesTable records → zero or one RentalInvoiceScheduleTable record

  • RentalJobSite → RentalJobSite

    Join on RentalJobSite = RentalJobSite.RecId

    Many RentalSalesTable records → zero or one RentalJobSite record

  • RentalNoticeToOwner → RentalNoticeToOwner

    Join on RentalNoticeToOwner = RentalNoticeToOwner.RecId

    Many RentalSalesTable records → zero or one RentalNoticeToOwner record

  • RentalDocumentTable → RentalDocumentTable

    Join on RentalDocumentTable = RentalDocumentTable.RecId, RentalDocumentTable.DocumentType = RentalDocumentType::Contract

    Many RentalSalesTable records → zero or one RentalDocumentTable record

  • RentalLoad → RentalLoad

    Join on RentalLoad = RentalLoad.RecId

    Many RentalSalesTable records → zero or one RentalLoad record

  • RentalPickupRentalLocation → RentalLocation

    Join on RentalPickupRentalLocationId = RentalLocation.LocationId

    Many RentalSalesTable records → zero or one RentalLocation record

Get this data out

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

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

Email sales@drdynamics.co.uk