Table

RetailGiftCardPayment_RU

Prepayments for gift cards

Holds prepayments for gift cards, used for Russia. Each row links a gift card to a retail transaction (channel, store, register and transaction number), a customer transaction and a journal line. It also holds the voucher and date.

Table name
RetailGiftCardPayment_RU
Module
Commerce payments
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel of the related transaction.Int64
RefRecId
NoRetailTransactionTable.ChannelNone
CustTransPoints to the related customer transaction.Int64
CustTransRefRecId
NoCustTrans.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
GiftCardIdGift card number that the prepayment is for.String (30)
RetailGiftCardId
NoRetailGiftCardTable.entryIdNone
LedgerJournalTransPoints to the related journal line.Int64
LedgerJournalTransRefRecId
NoLedgerJournalTrans.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrepaymentYes or no flag for a prepayment journal voucher.Enum
NoYes (enum)
NoNone
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
StoreStore number of the related transaction.String
RetailStoreId
NoRetailStoreTable.StoreNumberNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TerminalIdRegister (POS terminal) of the related transaction.String
RetailTerminalId
NoRetailTerminalTable.terminalIdNone
TransactionIdNumber of the related retail transaction.String (44)
RetailTransactionId
NoRetailTransactionTable.transactionIdNone
TransDateDate of the entry.Date
TransDate
NoNone
VoucherVoucher number of the entry.String (20)
Voucher
NoNone

Indexes (3)

Relations (6)

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

  • CustTrans → CustTrans

    Join on CustTrans = CustTrans.RecId

    Many RetailGiftCardPayment_RU records → exactly one CustTrans record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on LedgerJournalTrans = LedgerJournalTrans.RecId

    Many RetailGiftCardPayment_RU records → zero or one LedgerJournalTrans record

  • RetailGiftCardTable → RetailGiftCardTable

    Join on GiftCardId = RetailGiftCardTable.entryId

    Zero or one RetailGiftCardPayment_RU record → exactly one RetailGiftCardTable record

  • RetailStoreTable → RetailStoreTable

    Join on Store = RetailStoreTable.StoreNumber

    Many RetailGiftCardPayment_RU records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailGiftCardPayment_RU records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on Channel = RetailTransactionTable.Channel, TransactionId = RetailTransactionTable.transactionId, TerminalId = RetailTransactionTable.terminal, Store = RetailTransactionTable.store

    Many RetailGiftCardPayment_RU records → exactly one RetailTransactionTable record

Get this data out

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

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

Email sales@drdynamics.co.uk