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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelRetail channel of the related transaction. | Int64RefRecId | No | RetailTransactionTable.Channel | None |
CustTransPoints to the related customer transaction. | Int64CustTransRefRecId | No | CustTrans.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
GiftCardIdGift card number that the prepayment is for. | String (30)RetailGiftCardId | No | RetailGiftCardTable.entryId | None |
LedgerJournalTransPoints to the related journal line. | Int64LedgerJournalTransRefRecId | No | LedgerJournalTrans.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrepaymentYes or no flag for a prepayment journal voucher. | EnumNoYes (enum) | No | None | |
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 | |
StoreStore number of the related transaction. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TerminalIdRegister (POS terminal) of the related transaction. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
TransactionIdNumber of the related retail transaction. | String (44)RetailTransactionId | No | RetailTransactionTable.transactionId | None |
TransDateDate of the entry. | DateTransDate | No | None | |
VoucherVoucher number of the entry. | String (20)Voucher | No | None |
Indexes (3)
CustTransIdxNot unique.
LedgerJournalTransIdxNot unique.
VoucherDateIdxNot unique.
Relations (6)
Each relation joins RetailGiftCardPayment_RU to another table on the fields shown.
CustTrans→CustTransJoin on
CustTrans = CustTrans.RecIdMany RetailGiftCardPayment_RU records → exactly one CustTrans record
LedgerJournalTrans→LedgerJournalTransJoin on
LedgerJournalTrans = LedgerJournalTrans.RecIdMany RetailGiftCardPayment_RU records → zero or one LedgerJournalTrans record
RetailGiftCardTable→RetailGiftCardTableJoin on
GiftCardId = RetailGiftCardTable.entryIdZero or one RetailGiftCardPayment_RU record → exactly one RetailGiftCardTable record
RetailStoreTable→RetailStoreTableJoin on
Store = RetailStoreTable.StoreNumberMany RetailGiftCardPayment_RU records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailGiftCardPayment_RU records → exactly one RetailTerminalTable record
RetailTransactionTable→RetailTransactionTableJoin on
Channel = RetailTransactionTable.Channel,TransactionId = RetailTransactionTable.transactionId,TerminalId = RetailTransactionTable.terminal,Store = RetailTransactionTable.storeMany 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.