Table

TradeBLWIJournalPurposeCodes

Journals linked with BLWI codes

Links a central bank purpose code to a source record in another table. The source can be a purchase order, sales order, invoice journal, customer or vendor transaction, journal line, invoice register or project contract. The key is the form type plus the record ID of the source.

Table name
TradeBLWIJournalPurposeCodes
Module
Shared payables and receivables
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
ForeignTrade
Primary index
RecId
Replacement key
Index1
Key fields
TypeOfForm, RefRecId
Model
Foundation

Fields (8)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TypeOfFormTells which kind of source record the reference points to, such as sales order, vendor transaction or journal line.Enum
TradeBLWITypeOfForm (enum)
NoNone
RefRecIdSystem record ID of the linked source record. The table it belongs to depends on the form type.Int64
RefRecId
YesCustInvoiceJour.RecIdCustInvoiceTable.RecIdCustTrans.RecIdLedgerJournalTrans.RecIdProjInvoiceJour.RecIdProjInvoiceTable.RecIdPurchTable.RecIdSalesTable.RecIdVendInvoiceJour.RecIdVendTrans.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurposeCodeCentral bank purpose code assigned to the linked record. It points to the payment purpose codes table.String
BankCentralBankPurposeCode
NoBankCentralBankPurpose.CodeNone
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 (12)

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

  • BankCentralBankPurpose → BankCentralBankPurpose

    Join on PurposeCode = BankCentralBankPurpose.Code

    Many TradeBLWIJournalPurposeCodes records → zero or one BankCentralBankPurpose record

  • CustFreeInvoice → CustInvoiceTable

    Join on TypeOfForm = TradeBLWITypeOfForm::CustFreeInvoice, RefRecId = CustInvoiceTable.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one CustInvoiceTable record

  • CustInvoiceJour → CustInvoiceJour

    Join on TypeOfForm = TradeBLWITypeOfForm::CustInvoiceJour, RefRecId = CustInvoiceJour.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one CustInvoiceJour record

  • CustTrans → CustTrans

    Join on TypeOfForm = TradeBLWITypeOfForm::CustTrans, RefRecId = CustTrans.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one CustTrans record

  • InvoiceRegister → LedgerJournalTrans

    Join on TypeOfForm = TradeBLWITypeOfForm::InvoiceRegister, RefRecId = LedgerJournalTrans.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one LedgerJournalTrans record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on TypeOfForm = TradeBLWITypeOfForm::LedgerJournalTrans, RefRecId = LedgerJournalTrans.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one LedgerJournalTrans record

  • ProjInvoiceJour → ProjInvoiceJour

    Join on TypeOfForm = TradeBLWITypeOfForm::ProjInvoiceJour, RefRecId = ProjInvoiceJour.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one ProjInvoiceJour record

  • ProjInvoiceTable → ProjInvoiceTable

    Join on TypeOfForm = TradeBLWITypeOfForm::InvoiceProject, RefRecId = ProjInvoiceTable.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one ProjInvoiceTable record

  • PurchTable → PurchTable

    Join on RefRecId = PurchTable.RecId, TypeOfForm = TradeBLWITypeOfForm::PurchTable

    Many TradeBLWIJournalPurposeCodes records → zero or one PurchTable record

  • SalesTable → SalesTable

    Join on RefRecId = SalesTable.RecId, TypeOfForm = TradeBLWITypeOfForm::SalesTable

    Many TradeBLWIJournalPurposeCodes records → zero or one SalesTable record

  • VendInvoiceJour → VendInvoiceJour

    Join on TypeOfForm = TradeBLWITypeOfForm::VendInvoiceJour, RefRecId = VendInvoiceJour.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one VendInvoiceJour record

  • VendTrans → VendTrans

    Join on TypeOfForm = TradeBLWITypeOfForm::VendTrans, RefRecId = VendTrans.RecId

    Many TradeBLWIJournalPurposeCodes records → zero or one VendTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk