RetailTransactionService::retailServerStaffLogOn Method [AX 2012]
Method is used for updating the RetailStaffLoginLog.staffId with the value in _staffId if the record exists in RetailStaffLoginLog; else creates the record in RetailStaffLoginLogtable.
Syntax
client server public static container retailServerStaffLogOn(
RetailStaffId _staffId,
RetailChannelRecId _storeRecId,
RefRecId _terminalRecId,
RetailStaffPassword _password,
[boolean _loginToStore])
Run On
Called
Parameters
- _staffId
Type: RetailStaffId Extended Data Type
ID of the RetailStaffLoginLog.staffId field.
- _storeRecId
Type: RetailChannelRecId Extended Data Type
RecID of the RetailStaffLoginLog.storeId field.
- _terminalRecId
Type: RefRecId Extended Data Type
RecID of the RetailStaffLoginLog.terminalId field.
- _password
Type: RetailStaffPassword Extended Data Type
RetailStaffPassword
- _loginToStore
Type: boolean
True to login to a store, false to login without store association
Return Value
Type: container
The status as a container.
Exceptions
Exception | Condition |
---|---|
Error | Throws error if fails to create/update. |