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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
VersionIdIdentifier of the rediscount version. | StringCPRediscountVersionIdTR | Yes | CPRediscountTableEntity | |
CurrentReferenceDateReference date of the current period. | DateTransDate | Yes | CPRediscountTableEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
CurrentPeriodJournalLedger journal number for the current period. The label calls it a payroll number, which looks misleading.low confidence | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | CPRediscountTableEntity |
CurrentPeriodReverseJournalLedger journal number of the reversal for the current period. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | CPRediscountTableEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DetailLevelChooses whether results are shown in detail or as a summary. | EnumDetailSummary (enum) | No | CPRediscountTableEntity | |
ExchRateTypeExchange rate type used. | String (20)ExchangeRateTypeName | Yes | ExchangeRateType.Name | CPRediscountTableEntity |
InterestExpenseMainAccountMain account for rediscount interest expense. | Int64MainAccountRecId | Yes | MainAccount.RecId | CPRediscountTableEntity |
InterestIncomeMainAccountMain account for rediscount interest income. | Int64MainAccountRecId | Yes | MainAccount.RecId | CPRediscountTableEntity |
JournalNameName of the ledger journal used. | StringLedgerJournalNameId | Yes | LedgerJournalName.JournalName | CPRediscountTableEntity |
NextPeriodJournalLedger journal number for the next period. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | CPRediscountTableEntity |
NextPeriodReverseJournalLedger journal number of the reversal for the next period. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | CPRediscountTableEntity |
NextReferenceDateReference date of the next period. | DateTransDate | Yes | CPRediscountTableEntity | |
NotesPayableMainAccountMain account for rediscounted notes payable. | Int64MainAccountRecId | Yes | MainAccount.RecId | CPRediscountTableEntity |
NotesReceivableMainAccountMain account for rediscounted notes receivable. | Int64MainAccountRecId | Yes | MainAccount.RecId | CPRediscountTableEntity |
PostedYes/No flag showing whether the rediscount is posted. | EnumPostedNoYes (enum) | No | CPRediscountTableEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
VersionReferenceDateIdxReplacement keyVersionId,CurrentReferenceDate,PartitionUnique, alternate key.
Relations (10)
Each relation joins CPRediscountTableTR to another table on the fields shown.
LedgerJournalName→LedgerJournalNameJoin on
JournalName = LedgerJournalName.JournalNameOne or more CPRediscountTableTR records → exactly one LedgerJournalName record
CurrentPeriodJournal→LedgerJournalTableJoin on
CurrentPeriodJournal = LedgerJournalTable.JournalNumZero or one CPRediscountTableTR record → zero or one LedgerJournalTable record
NextPeriodJournal→LedgerJournalTableJoin on
NextPeriodJournal = LedgerJournalTable.JournalNumZero or one CPRediscountTableTR record → zero or one LedgerJournalTable record
NextPeriodReverseJournal→LedgerJournalTableJoin on
NextPeriodReverseJournal = LedgerJournalTable.JournalNumZero or one CPRediscountTableTR record → zero or one LedgerJournalTable record
CurrentPeriodReverseJournal→LedgerJournalTableJoin on
CurrentPeriodReverseJournal = LedgerJournalTable.JournalNumZero or one CPRediscountTableTR record → zero or one LedgerJournalTable record
NotesReceivableMainAccount→MainAccountJoin on
NotesReceivableMainAccount = MainAccount.RecIdZero or one CPRediscountTableTR record → zero or one MainAccount record
InterestExpenseMainAccount→MainAccountJoin on
InterestExpenseMainAccount = MainAccount.RecIdZero or one CPRediscountTableTR record → zero or one MainAccount record
InterestIncomeMainAccount→MainAccountJoin on
InterestIncomeMainAccount = MainAccount.RecIdZero or one CPRediscountTableTR record → zero or one MainAccount record
NotesPayableMainAccount→MainAccountJoin on
NotesPayableMainAccount = MainAccount.RecIdZero or one CPRediscountTableTR record → zero or one MainAccount record
ExchangeRateType→ExchangeRateTypeJoin on
ExchRateType = ExchangeRateType.NameZero 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.
CPRediscountTableEntity· 15 fields from this table
Need help with CPRediscountTableTR in a report, an integration or a migration? Talk to Dr Dynamics.