Table

CPRediscountTableTR

Rediscount

Holds the header of a rediscount worksheet. It is keyed by version ID and current reference date. It stores the reference dates, related journal numbers, main accounts, exchange rate type and posted status.

Table name
CPRediscountTableTR
Module
Cross-module and platform
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
VersionReferenceDateIdx
Key fields
VersionId, CurrentReferenceDate, Partition
Model
Foundation

Fields (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
VersionIdIdentifier of the rediscount version.String
CPRediscountVersionIdTR
YesCPRediscountTableEntity
CurrentReferenceDateReference date of the current period.Date
TransDate
YesCPRediscountTableEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
CurrentPeriodJournalLedger journal number for the current period. The label calls it a payroll number, which looks misleading.low confidenceString (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumCPRediscountTableEntity
CurrentPeriodReverseJournalLedger journal number of the reversal for the current period.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumCPRediscountTableEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DetailLevelChooses whether results are shown in detail or as a summary.Enum
DetailSummary (enum)
NoCPRediscountTableEntity
ExchRateTypeExchange rate type used.String (20)
ExchangeRateTypeName
YesExchangeRateType.NameCPRediscountTableEntity
InterestExpenseMainAccountMain account for rediscount interest expense.Int64
MainAccountRecId
YesMainAccount.RecIdCPRediscountTableEntity
InterestIncomeMainAccountMain account for rediscount interest income.Int64
MainAccountRecId
YesMainAccount.RecIdCPRediscountTableEntity
JournalNameName of the ledger journal used.String
LedgerJournalNameId
YesLedgerJournalName.JournalNameCPRediscountTableEntity
NextPeriodJournalLedger journal number for the next period.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumCPRediscountTableEntity
NextPeriodReverseJournalLedger journal number of the reversal for the next period.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumCPRediscountTableEntity
NextReferenceDateReference date of the next period.Date
TransDate
YesCPRediscountTableEntity
NotesPayableMainAccountMain account for rediscounted notes payable.Int64
MainAccountRecId
YesMainAccount.RecIdCPRediscountTableEntity
NotesReceivableMainAccountMain account for rediscounted notes receivable.Int64
MainAccountRecId
YesMainAccount.RecIdCPRediscountTableEntity
PostedYes/No flag showing whether the rediscount is posted.Enum
Posted
NoYes (enum)
NoCPRediscountTableEntity
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (10)

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

  • LedgerJournalName → LedgerJournalName

    Join on JournalName = LedgerJournalName.JournalName

    One or more CPRediscountTableTR records → exactly one LedgerJournalName record

  • CurrentPeriodJournal → LedgerJournalTable

    Join on CurrentPeriodJournal = LedgerJournalTable.JournalNum

    Zero or one CPRediscountTableTR record → zero or one LedgerJournalTable record

  • NextPeriodJournal → LedgerJournalTable

    Join on NextPeriodJournal = LedgerJournalTable.JournalNum

    Zero or one CPRediscountTableTR record → zero or one LedgerJournalTable record

  • NextPeriodReverseJournal → LedgerJournalTable

    Join on NextPeriodReverseJournal = LedgerJournalTable.JournalNum

    Zero or one CPRediscountTableTR record → zero or one LedgerJournalTable record

  • CurrentPeriodReverseJournal → LedgerJournalTable

    Join on CurrentPeriodReverseJournal = LedgerJournalTable.JournalNum

    Zero or one CPRediscountTableTR record → zero or one LedgerJournalTable record

  • NotesReceivableMainAccount → MainAccount

    Join on NotesReceivableMainAccount = MainAccount.RecId

    Zero or one CPRediscountTableTR record → zero or one MainAccount record

  • InterestExpenseMainAccount → MainAccount

    Join on InterestExpenseMainAccount = MainAccount.RecId

    Zero or one CPRediscountTableTR record → zero or one MainAccount record

  • InterestIncomeMainAccount → MainAccount

    Join on InterestIncomeMainAccount = MainAccount.RecId

    Zero or one CPRediscountTableTR record → zero or one MainAccount record

  • NotesPayableMainAccount → MainAccount

    Join on NotesPayableMainAccount = MainAccount.RecId

    Zero or one CPRediscountTableTR record → zero or one MainAccount record

  • ExchangeRateType → ExchangeRateType

    Join on ExchRateType = ExchangeRateType.Name

    Zero or one CPRediscountTableTR record → exactly one ExchangeRateType record

Get this data out

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

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

Email sales@drdynamics.co.uk