Table

CPJournalTR

Check and promissory note journal

Holds journal records for checks and promissory notes. Each record has an account type and number, a portfolio code, a transaction code, a posted flag and dates. It links to ledger journals, posting profiles, dimensions and exchange rate types.

Table name
CPJournalTR
Module
Cross-module and platform
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (34)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNumAccount number; it can refer to a customer, bank account or portfolio, depending on the account type.String (20)
AccountNum
NoBankAccountTable.AccountIDCPPortfolioTR.PortfolioCodeCustTable.AccountNumVendTable.AccountNumCPJournalEntity
AccountTypeKind of account: customer, portfolio, bank, general ledger, vendor or COA.Enum
CPAccountTypeTR (enum)
NoCPJournalEntity
AverageMaturityAverage maturity date.Date
TransDate
NoCPJournalEntity
BankTransTypeBank transaction type of the record.String
BankTransactionType
NoBankTransType.BankTransTypeCPJournalEntity
ChequeJournalNumInternal reference number of the check journal.String (20)
CPJournalNumTR
YesCPJournalEntity
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
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionPoints to the set of financial dimension values for the record.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdCPJournalEntity
DescriptionShort description of the journal record.String (60)
Description
NoCPJournalEntity
FixedExchangeRateTypeIdPoints to the exchange rate type used for the fixed rate.Int64
ExchangeRateTypeId
NoExchangeRateType.RecIdCPJournalEntity
FixedExchRateFixed exchange rate value.Real
ExchRate
NoCPJournalEntity
FixedReportingCurrencyExchRateFixed exchange rate for the reporting currency.Real
ReportingCurrencyExchRate
NoNone
FixedReportingCurrencyExchRateTypeIdPoints to the exchange rate type used for the reporting currency rate.Int64
ExchangeRateTypeId
NoExchangeRateType.RecIdNone
IsFixedExchRateYes/No option to use a fixed exchange rate.Enum
NoYesId
NoYes (enum)
NoCPJournalEntity
JournalNumNumber of the ledger journal batch linked to the record.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumCPJournalEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
OffsetTransCodeTransaction code used for the offset entry.String
CPTransCodeTR
NoCPJournalEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymIdPayment ID.String (200)
PaymId
NoCPJournalEntity
PaymReferencePayment reference text.String (35)
PaymReference
NoCPJournalEntity
PortfolioCodeCode of the portfolio that the instrument is placed in.String (20)
CPPortfolioCodeTR
YesCPPortfolioTR.PortfolioCodeCPJournalEntity
PortfolioDefaultDimensionPoints to the set of dimension values for the portfolio.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdCPJournalEntity
PostedYes/No flag showing whether the journal is posted.Enum
Posted
NoYes (enum)
NoCPJournalEntity
PostingProfilePosting profile used for the record.String
PostingProfile
NoCustLedger.PostingProfileVendLedger.PostingProfileCPJournalEntity
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
ReverseDateDate of the reversal.Date
TransDate
YesCPJournalEntity
ReverseJournalNumInternal reference number of the reversal journal.String (20)
CPJournalNumTR
NoCPJournalEntity
SessionIdID of the journal session.Integer
JournalSessionId
NoCPJournalEntity
SessionLoginDateTimeDate and time of the logon for the journal session.UtcDateTime
JournalSessionLoginDateTime
NoCPJournalEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransCodeTransaction code for the check or promissory note.String
CPTransCodeTR
YesCPTransCodeTableTR.TransCodeCPJournalEntity
TransDateDate of the transaction.Date
TransDate
YesCPJournalEntity

Indexes (1)

Relations (16)

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

  • Bank → BankAccountTable

    Join on AccountNum = BankAccountTable.AccountID, AccountType = CPAccountTypeTR::Bank

    Many CPJournalTR records → zero or one BankAccountTable record

  • CustTable → CustTable

    Join on AccountNum = CustTable.AccountNum, AccountType = CPAccountTypeTR::Customer

    Many CPJournalTR records → zero or one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many CPJournalTR records → zero or one DimensionAttributeValueSet record

  • Ledger → MainAccount

    Join on AccountNum = MainAccount.MainAccountId, AccountType = CPAccountTypeTR::Ledger

    Many CPJournalTR records → zero or one MainAccount record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalNum = LedgerJournalTable.JournalNum

    Many CPJournalTR records → exactly one LedgerJournalTable record

  • PortfolioTR → CPPortfolioTR

    Join on AccountNum = CPPortfolioTR.PortfolioCode, AccountType = CPAccountTypeTR::Portfolio

    Many CPJournalTR records → zero or one CPPortfolioTR record

  • PortfolioCode → CPPortfolioTR

    Join on PortfolioCode = CPPortfolioTR.PortfolioCode

    One or more CPJournalTR records → exactly one CPPortfolioTR record

  • PostingProfileCust → CustLedger

    Join on AccountType = CPAccountTypeTR::Customer, PostingProfile = CustLedger.PostingProfile

    Many CPJournalTR records → zero or one CustLedger record

  • PostingProfileVend → VendLedger

    Join on AccountType = CPAccountTypeTR::Ledger, PostingProfile = VendLedger.PostingProfile

    Many CPJournalTR records → zero or one VendLedger record

  • TransCode → CPTransCodeTableTR

    Join on TransCode = CPTransCodeTableTR.TransCode

    One or more CPJournalTR records → exactly one CPTransCodeTableTR record

  • Vendor → VendTable

    Join on AccountNum = VendTable.AccountNum, AccountType = CPAccountTypeTR::Vendor

    Many CPJournalTR records → zero or one VendTable record

  • PortfolioDefaultDimension → DimensionAttributeValueSet

    Join on PortfolioDefaultDimension = DimensionAttributeValueSet.RecId

    Many CPJournalTR records → zero or one DimensionAttributeValueSet record

  • BankTransType → BankTransType

    Join on BankTransType = BankTransType.BankTransType

    Many CPJournalTR records → zero or one BankTransType record

  • FixedExchangeRateType → ExchangeRateType

    Join on FixedExchangeRateTypeId = ExchangeRateType.RecId

    Many CPJournalTR records → zero or one ExchangeRateType record

  • FixedReportingCurrencyExchangeRateType → ExchangeRateType

    Join on FixedReportingCurrencyExchRateTypeId = ExchangeRateType.RecId

    Many CPJournalTR records → zero or one ExchangeRateType record

  • COA → ELCOATR

    Join on AccountNum = ELCOATR.MainAccountNum, AccountType = CPAccountTypeTR::COA

    Many CPJournalTR records → zero or one ELCOATR record

Get this data out

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

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

Email sales@drdynamics.co.uk