DeviceRuntimeCounters Method



 
The DeviceRuntimeCounters method returns runtime sales information for a specified device.


Syntax

    [obj=] SiteKiosk.Plugins("SiteCash").AccumulatedMoneyStorage.
           DeviceRuntimeCounters(deviceName)
    
Parameters
    deviceName String containing the name of a device.
Return Value
    Returns an AccumulatedMoneyItem object containing the runtime sales information for the specified device.
Remarks
    None.
Examples
    The following example shows the current cash amount of the first available device.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var AMStorage = SiteKiosk.Plugins("SiteCash").AccumulatedMoneyStorage;
    var FirstDevice = SiteKiosk.Plugins("SiteCash").Devices2.Item(1).Name;
    alert(AMStorage.DeviceRuntimeCounters(FirstDevice).CurrentCashAmount);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.5 (and later versions).

Back to top