Condition Property
The Condition property indicates when the receipt should be printed.
Syntax
[long=] SiteKiosk.Plugins("SiteCash").ReceiptSettings.Condition
|
Possible Values
Long value that when the receipt should be printed.
|
The property is read only.
Remarks
The Condition Property returns the following options:
ONINPAYMENT = 1;
ONSESSIONEND = 2;
Examples
The following example binds the OfferReceipt function to the correct event depending on the Condition properties state.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteCash = SiteKiosk.Plugins("SiteCash");
ONINPAYMENT = 1;
ONSESSIONEND = 2;
switch (SiteCash.ReceiptSettings.Condition)
{
case ONINPAYMENT:
SiteCash.OnInpayment = OfferReceipt;
break;
case ONSESSIONEND:
SiteCash.OnSessionEnd = OfferReceipt;
break;
}
function OfferReceipt()
{
if (confirm("Do you want to get a receipt?"))
{
//do printing and/or mailing here...
}
}
</SCRIPT>
|
Applies to
SiteKiosk v7.2 (and later versions).
Back to top