Table

RentalSwapHistory

Swap history

Transaction table that records swaps of one fleet item for another on a rental contract. Each record shows the contract, customer, swap date, reason code, and the old and new fleet items. It is keyed by contract number, creation date and time, and old fleet item.

Table name
RentalSwapHistory
Module
Rental management
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Rental
Primary index
None
Replacement key
Contract
Key fields
ContractNumber, CreatedDateTime, OldRentalItem
Model
RentalManagement

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ContractNumberID of the rental contract or quotation; points to the rental document.low confidenceString (21)
RentalId
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
OldRentalItemFleet item that was replaced.Int64
RentalItemRecId
NoRentalItemTable.RecIdNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CustAccountCustomer account linked to the swap, pointing to the customer record.String (20)
CustAccount
NoCustTable.AccountNumNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
NewRentalItemFleet item that replaced the old one.Int64
RentalItemRecId
NoRentalItemTable.RecIdNone
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
SwapDateDate on which the fleet item was exchanged.Date
RentalSwapDate
NoNone
SwapReasonCodeReason code for the swap, pointing to a swap reason code record.Int64
RentalSwapReasonCodeRecId
NoRentalSwapReasonCode.RecIdNone
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

Indexes (1)

Relations (5)

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

  • RentalDocumentTable → RentalDocumentTable

    Join on ContractNumber = RentalDocumentTable.RentalId

    Many RentalSwapHistory records → zero or one RentalDocumentTable record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many RentalSwapHistory records → zero or one CustTable record

  • OldRentalItemTable → RentalItemTable

    Join on OldRentalItem = RentalItemTable.RecId

    Many RentalSwapHistory records → zero or one RentalItemTable record

  • NewRentalItemTable → RentalItemTable

    Join on NewRentalItem = RentalItemTable.RecId

    Many RentalSwapHistory records → zero or one RentalItemTable record

  • SwapReasonCode → RentalSwapReasonCode

    Join on SwapReasonCode = RentalSwapReasonCode.RecId

    Many RentalSwapHistory records → zero or one RentalSwapReasonCode record

Get this data out

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

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

Email sales@drdynamics.co.uk