Table

RentalSalesTableHistory

Rental sales order history

Extends archived sales order header records with rental details, such as the rental contract, job site, invoice schedule, load and notice to owner. It has one record per archived sales order and is keyed by the link to that record.

Table name
RentalSalesTableHistory
Module
Rental management
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Rental
Primary index
SalesTableHistoryIdx
Replacement key
SalesTableHistoryIdx
Key fields
SalesTableHistory
Model
RentalManagement

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTableHistoryLink to the archived sales order header that this record extends.Int64
RefRecId
YesSalesTableHistory.RecIdNone
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
RentalDocumentTableSystem record ID of the rental contract or quotation.Int64
RentalDocumentTableRecId
NoNone
RentalInvoiceScheduleTableSystem record ID of the invoice schedule.Int64
RentalInvoiceScheduleTableRecId
NoNone
RentalItemSystem record ID of the fleet item.Int64
RentalItemRecId
NoNone
RentalJobSiteSystem record ID of the job site.Int64
RentalJobSiteRecId
NoNone
RentalLoadSystem record ID of the related load.Int64
RentalLoadRecId
NoNone
RentalNoticeToOwnerSystem record ID of the notice to owner.Int64
RentalNoticeToOwnerRecId
NoNone
RentalPickupRentalLocationIdIdentifier of the fleet location where the item is picked up.String (100)
RentalPickupRentalLocationId
NoNone
RentalShipToWhere the goods are shipped: None, Address, Job site or Pickup fleet location.Enum
RentalShipTo (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

  • SalesTableHistoryIdxPrimary indexReplacement key

    SalesTableHistory

    Unique, alternate key.

Relations (1)

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

  • SalesTableHistory → SalesTableHistory

    Join on SalesTableHistory = SalesTableHistory.RecId

    Exactly one RentalSalesTableHistory record → zero or one SalesTableHistory record

Get this data out

No public entity reads from RentalSalesTableHistory. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk