Table

AssetLeaseLedgerToLeaseRelation

Ledger to lease relation

Links a ledger journal to a lease. Each row is keyed by the journal batch number and records the lease ID, the lease version, the type of lease journal and the payment schedule line it relates to. It also notes whether the entry was reversed.

Table name
AssetLeaseLedgerToLeaseRelation
Module
Asset leasing
Table group
Reference
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
JournalIdx
Replacement key
JournalIdx
Key fields
JournalNum
Model
AssetLeasing

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
JournalNumJournal batch number, pointing to a ledger journal record. This is the key.String (20)
LedgerJournalId
YesLedgerJournalTable.JournalNumAssetLeaseLedgerToLeaseRelationBiEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoAssetLeaseLedgerToLeaseRelationBiEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoAssetLeaseLedgerToLeaseRelationBiEntity
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoAssetLeaseLedgerToLeaseRelationBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoAssetLeaseLedgerToLeaseRelationBiEntityAssetLeaseAssetTransactionEntity
JournalTypeType of the ledger journal, such as Daily, Periodic or Post fixed assets.Enum
LedgerJournalType (enum)
NoAssetLeaseLedgerToLeaseRelationBiEntity
LeaseIdID of the lease linked to the journal, pointing to a lease record.String (40)
AssetLeaseLeaseId
YesAssetLeaseLeaseDetails.LeaseIdAssetLeaseLedgerToLeaseRelationBiEntity
LeaseJournalTypeKind of lease journal, such as Initial recognition, Invoice, Liability or Termination.Enum
AssetLeaseJournalType (enum)
NoAssetLeaseLedgerToLeaseRelationBiEntity
LeaseVersionVersion number of the lease that the journal relates to.Integer
Integer
NoAssetLeaseLedgerToLeaseRelationBiEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoAssetLeaseLedgerToLeaseRelationBiEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoAssetLeaseLedgerToLeaseRelationBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentLineRecIdRecord ID of the payment schedule line that the journal relates to.Int64
FatherRecId
NoAssetLeasePaymentScheduleLine.RecIdAssetLeaseLedgerToLeaseRelationBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoAssetLeaseLedgerToLeaseRelationBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoAssetLeaseLedgerToLeaseRelationBiEntity
ReversedYes/No flag showing whether the journal entry was reversed.Enum
AssetLeaseReverse
NoYes (enum)
NoAssetLeaseLedgerToLeaseRelationBiEntity
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
TxtShort text note on the journal entry.String (60)
Name
NoAssetLeaseLedgerToLeaseRelationBiEntity

Indexes (2)

Relations (3)

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

  • AssetLeasePaymentScheduleLine → AssetLeasePaymentScheduleLine

    Join on PaymentLineRecId = AssetLeasePaymentScheduleLine.RecId

    Many AssetLeaseLedgerToLeaseRelation records → zero or one AssetLeasePaymentScheduleLine record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalNum = LedgerJournalTable.JournalNum

    Zero or one AssetLeaseLedgerToLeaseRelation record → exactly one LedgerJournalTable record

  • AssetLeaseLeaseDetails → AssetLeaseLeaseDetails

    Join on LeaseId = AssetLeaseLeaseDetails.LeaseId

    Many AssetLeaseLedgerToLeaseRelation records → zero or one AssetLeaseLeaseDetails record

Get this data out

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

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

Email sales@drdynamics.co.uk