RetailTransactionServiceTransactions::issueGiftCard Method [AX 2012]
Method is used for creating the record in RetailGiftCardTransactions table.
Initially the gift card is marked as reserved. Call giftCardRelease to clear the reservation.
client server public static container issueGiftCard(
RetailGiftCardId _cardNumber,
RetailChannelRecId _channelId,
RetailTerminalId _terminalId,
RetailStaffId _staffId,
RetailTransactionId _transactionId,
RetailReceiptId _receiptId,
CurrencyCode _currencyCode,
AmountMST _amountMST,
str _transDate,
str _transTime,
[int _dateSequence,
boolean _reserved])
Run On
CalledParameters
- _cardNumber
- Type: RetailGiftCardId Extended Data Type
ID of the RetailGiftCardTable.entryId field.
- _channelId
- Type: RetailChannelRecId Extended Data Type
ID of the RetailGiftCardTransactions.channel field.
- _terminalId
- Type: RetailTerminalId Extended Data Type
ID of the RetailGiftCardTransactions.terminalId field.
- _staffId
- Type: RetailStaffId Extended Data Type
ID of the RetailGiftCardTransactions.staffId field.
- _transactionId
- Type: RetailTransactionId Extended Data Type
ID of the RetailGiftCardTransactions.transactionId field.
- _receiptId
- Type: RetailReceiptId Extended Data Type
ID of the RetailGiftCardTransactions.receiptId field.
- _currencyCode
- Type: CurrencyCode Extended Data Type
CurrencyCode
- _amountMST
- Type: AmountMST Extended Data Type
Value of the RetailGiftCardTransactions.amount field.
- _transDate
- Type: str
Value of the RetailGiftCardTransactions.transDate field.
- _transTime
- Type: str
Value of the RetailGiftCardTransactions.transTime field.
- _dateSequence
- Type: int
Format of the date.
- _reserved
- Type: boolean
Issues a reserved gift card if set to true.
Show: