RetailTransactionService::creditVoucherCreate Method [AX 2012]
Creates the record in the RetailCreditVoucherTable table.
Syntax
client server public static container creditVoucherCreate(
RetailStoreId _storeId,
RetailTerminalId _terminalId,
RetailStaffId _staffId,
RetailTransactionId _transactionId,
RetailReceiptId _receiptId,
RetailLineNum _lineNum,
CurrencyCode _currencyCode,
AmountMST _amountMST,
str _transDate,
str _transTime,
[int _dateSequence])
Run On
Called
Parameters
- _storeId
Type: RetailStoreId Extended Data Type
The ID of the RetailCreditVoucherTable.createdInStoreId field.
- _terminalId
Type: RetailTerminalId Extended Data Type
The ID of the RetailCreditVoucherTable.createdByTerminalId field.
- _staffId
Type: RetailStaffId Extended Data Type
The ID of the RetailCreditVoucherTable.createdByStaffId field.
- _transactionId
Type: RetailTransactionId Extended Data Type
The ID of the RetailCreditVoucherTable.createdByTransactionId field.
- _receiptId
Type: RetailReceiptId Extended Data Type
The ID of the RetailCreditVoucherTable.createdByReceipId field.
- _lineNum
Type: RetailLineNum Extended Data Type
The ID of the RetailCreditVoucherTable.createdByLineNum field.
- _currencyCode
Type: CurrencyCode Extended Data Type
The ID of the RetailCreditVoucherTable.currencyCode field.
- _amountMST
Type: AmountMST Extended Data Type
The value of the RetailCreditVoucherTable.amount field.
- _transDate
Type: str
The value of the RetailCreditVoucherTable.transDate field.
- _transTime
Type: str
The value for the RetailCreditVoucherTable.transTime field.
- _dateSequence
Type: int
The format of the date.
Return Value
Type: container
The specified container.
Exceptions
Exception | Condition |
---|---|
UpdateConflictNotRecovered | A conflict occurred that could not be recovered from when updating. |
UpdateConflict | An update conflict occurred. |