4.3 ww.dll API Reference : API descriptions : Functions with database access : acceptliability
 
acceptliability
 
Description
Liability acceptance can be required per item via SysManager. acceptliability is used to write a record into the gst_actv table to denote that a guest accepted a liability form.
 
Input fields
 
XML tag
Description
<guest_no>
Guest number.
<form_no>
Corresponds to the pri_key field in the l_forms table. Gets written into the ref field in gst_actv.
<expires>
Optional. If <expires> is empty or absent, the expiration date for the Liability form is calculated according to how the Liability form is configured and the correct date gets entered into the tag_line field in gst_actv. If the <expires> parameter is populated with a date, then this gets entered into the tag_line field in gst_actv.
<details>
Optional. If the <details> parameter is empty or absent, then the text of the Liability form gets entered into the details field in gst_actv. Otherwise whatever is passed populates that field. The activ_type for Liability form acceptance in gst_actv is 400.
 
Return fields
Status only.
 
Example
 
Example invocation:
<func>acceptliability</func><guest_no>6000010</guest_no><form_no>2</form_no>
 
Example return string:
OK :Liability Accepted
 
See also
getliabilityinfo