Table

RentalDamageHistory

Damage history

Holds one record for each damage logged against a fleet item in rental management. Each record is keyed by the damage history ID. It links to the fleet item, the fleet item movements involved, the damage code, the decision and recovery status, and an assigned worker. It also holds the customer's share and the invoice details for the repair.

Table name
RentalDamageHistory
Module
Rental management
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Rental
Primary index
None
Replacement key
RentalItemDamageHistoryIdx
Key fields
DamageHistoryId
Model
RentalManagement

Fields (29)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DamageHistoryIdUnique ID of the damage history record.String (20)
RentalDamageHistoryId
NoNone
AssignedToPoints to the worker who is assigned to deal with this damage record.Int64
HcmWorkerRecId
NoHcmWorker.RecIdNone
CommitmentDateCommitment date recorded for this damage.Date
RentalItemDamageCommitmentDate
NoNone
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
CustomerResponsibilityAmountAmount of the repair cost that the customer has agreed to bear.Real
RentalItemDamageCustResponsibility
NoNone
DamageCodePoints to the damage code that classifies this damage.Int64
RentalDamageCodeRecId
NoRentalDamageCode.RecIdNone
DamageDecisionPoints to the damage decision code recorded for this damage.Int64
RentalDamageDecisionCodeRecId
NoRentalDamageDecisionCode.RecIdNone
DamageDescriptionFree-text description of the damage, up to 200 characters.String (200)
RentalDescription200
NoNone
DamageInvoicedAmountAmount billed on the repair invoice, in accounting currency.Real
RentalItemDamageInvoicedAmount
NoNone
DamageInvoicedOnID of the invoice that carries the repair charge.String (50)
InvoiceId
NoNone
DamageStatusShows whether the damage is still active or has been repaired.Enum
RentalDamageStatus (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
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
RecoveryStatusPoints to the recovery status that shows how far cost recovery has progressed.Int64
RentalDamageRecoveryStatusRecId
NoRentalDamageRecoveryStatus.RecIdNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RentalItemMovementAgreementRelationAgreement number taken from the fleet item movement tied to this damage record.String (21)
RentalAgreementRelation
NoNone
RentalItemMovementTablePoints to the fleet item movement linked to this damage record.Int64
RentalItemMovementRecId
NoRentalItemMovementTable.RecIdNone
RentalItemTablePoints to the fleet item that was damaged.Int64
RentalItemRecId
NoRentalItemTable.RecIdNone
RepairDateDate and time when the damage was repaired.UtcDateTime
RentalRepairDate
NoNone
ResponsibleAgreementNumber of the agreement held responsible, taken from the responsible fleet item movement.String (21)
RentalAgreementRelation
NoNone
ResponsibleCustVendAccountAccount of the customer or vendor on the responsible agreement.String (20)
CustVendAC
NoNone
ResponsibleRentalItemMovementTablePoints to the fleet item movement that is held responsible for the damage.Int64
RentalItemMovementRecId
NoRentalItemMovementTable.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
UserUser ID stored on the damage record. The metadata does not say which user role it records.low confidenceString
UserId
NoNone

Indexes (4)

Relations (7)

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

  • RentalDamageCode → RentalDamageCode

    Join on DamageCode = RentalDamageCode.RecId

    Many RentalDamageHistory records → zero or one RentalDamageCode record

  • RentalItemMovementTable → RentalItemMovementTable

    Join on RentalItemMovementTable = RentalItemMovementTable.RecId

    Many RentalDamageHistory records → zero or one RentalItemMovementTable record

  • RentalItemTable → RentalItemTable

    Join on RentalItemTable = RentalItemTable.RecId

    Many RentalDamageHistory records → zero or one RentalItemTable record

  • HcmWorker → HcmWorker

    Join on AssignedTo = HcmWorker.RecId

    Many RentalDamageHistory records → zero or one HcmWorker record

  • RentalDamageDecisionCode → RentalDamageDecisionCode

    Join on DamageDecision = RentalDamageDecisionCode.RecId

    Many RentalDamageHistory records → zero or one RentalDamageDecisionCode record

  • RentalDamageRecoveryStatus → RentalDamageRecoveryStatus

    Join on RecoveryStatus = RentalDamageRecoveryStatus.RecId

    Many RentalDamageHistory records → zero or one RentalDamageRecoveryStatus record

  • ResponsibleItemMovementTable → RentalItemMovementTable

    Join on ResponsibleRentalItemMovementTable = RentalItemMovementTable.RecId

    Many RentalDamageHistory records → zero or one RentalItemMovementTable record

Get this data out

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

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

Email sales@drdynamics.co.uk