<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://iqxusers.co.uk/iqxhelp/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://iqxusers.co.uk/iqxhelp/feed.php">
        <title>iqx - database:functions</title>
        <description>Recruitment software that liberates your business</description>
        <link>https://iqxusers.co.uk/iqxhelp/</link>
        <image rdf:resource="https://iqxusers.co.uk/iqxhelp/lib/exe/fetch.php?media=wiki:logo.png" />
       <dc:date>2026-08-07T22:46:35+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordcompcode&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordemployeecode&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordernitimesheet&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordpayrollcode&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_addrecoveryhours&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_addressvalidation&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_adjustpayforceni&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_agencyidforratescript&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_automatchshiftmatchorder&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrentitygrade&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrgap&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrplacement&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrqualified&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrqualifiedcustomoverride&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrstatuschangeallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrweeks&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base29safe&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base34&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base36&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorecopy&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoredbfolder&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoredeleteexternal&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoreextfolder&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorefetch&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorefullpath&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoreread&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorerelocate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorewrite&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_broadbeancreatepost&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_bulkdocpackcompanyallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_bulkdocpackpackallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_canuploadvacancy&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectiondeleteallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectiongetitemtypename&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectionheadline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectionitemdescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_commathousands&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_commathousandsdec&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companyheadline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companykeywordscustom&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companykeywordsquestion&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companysalesstatuschangeallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companystatuschangeallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancescore&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancesummary&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidforplacement&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidfortempshift&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidperson&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_confirmationdepartmentallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consenthideperson&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consentoptionchangeallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consultantchangeallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contacteventheadline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contactlink&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contresptran&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_createicsfile&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_customsmshttprequest&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_cvsendallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datamanagementerase&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datamanagementerasecustom&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dateandtimeoverlap&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datetonearest&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtracreate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtradeduplicate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtradelete&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtragenerate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtraupdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanupoldjrlog&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanupoldrecentobjects&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanblobstore&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanoledocument&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanphone&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanrecentobjects&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphantagvalue&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dehead&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_deleteolddatabaselogs&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_depttran&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_descriptionforstagedinvoice&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_descriptionfortimesheetline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dialable&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_digitsonly&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_distancebetweenpostcodes&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackattachname&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackemailbody&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_duplicatecheckcustomcolumn&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_duplicatevacancyandplacement&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailbody&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailcvfilename&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailletterasattachmentfilename&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailsubject&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_employeeacceptable&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entitygrade&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entityratefilter&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entityspeciality&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_essentialskilldescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_essentialskillgradedescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_expiryalertextra&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_firstword&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formataddress&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanyaddress&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanyaddress1_0&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanypersonaddress&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatpersonaddress&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatpersonaddress1_0&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatselfbilladdress&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatsiteaddress&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_generatekeyname&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_generatewebdialurl&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getbrand&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcascadetime&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanyaddressonline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanygroup&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanygrouphead&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanymainparent&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanyphoneinblock&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcontacteventcaption&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcontactposition&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getdatabaseserverinfo&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getemployeephoneinblock&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getextrarate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getholidayyear&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getinvoicecompanyid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getinvoicepdf&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getkeyshiftplanstate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getkeyshiftstate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getminwage&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getnotifybehaviour&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getnotifyclientemail&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpayorcharge&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonaddressonline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonavailpercentage&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonavailstate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonemploymenthistory&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonphoneinblock&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getphone&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getplacementid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getplacementtheirref&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpropertiestext&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswer&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswerlong&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswernull&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestgroup&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestlongwebtext&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestmultiselection&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestnumber&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingleselection&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingletext&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingletextplus&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getqueststring&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsubmenuselection&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquesttext&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquesttextlong&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftbookeddescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftindicatorcolour&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftlength&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatebookeddescriptionplus&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatedescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatedescriptionplus&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempawrrate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempmargin&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempname&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettemprate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratebydesc&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratebyflag&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratecustom&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettemprateextra&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettextfromhtml&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettimesheetdescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getvacancycascadetime&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getword&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getwordex&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getworkpatternweeklyhours&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_globaldocumentselect&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_greatestdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hashtoiqxid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hexcriterionid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hidefromcombo&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hmrc_checkpostcode&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_insertdiary&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invbatchcomplete&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invcomplete&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invob10allowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invoicecustomcolumn&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invoicefilenameinzip&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invpdfallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invpdfallowedwarning&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invsendallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invsendallowedwarning&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacdocumentoutstandingamount&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacjournaldescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacjournaloutstandingamount&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqmoneynumeric&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqmoneyround&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetauth2&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetcompanystartdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetdecodepostvalue&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetextractparam&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnethaspermission&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetoverrideswitchtextvalue&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetoverrideswitchvalue&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtodate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtodouble&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtointeger&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtotime&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetswitchvalue&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnettemplatechoicelist&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnettemplategradelist&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetuserheadline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_isfuzeuser&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_keywordsearchallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_leastdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_lsmluservalue&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_mailmergesmtpcredentials&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_makehtmlreadable&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_makekeyname&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrosterlimitcolour&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrostermakedate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrosterstartdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrostertempallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_mastertemprate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_modifiedtemprate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netblobpermitted&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netcandidatevalidpersonid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netcanuploadvacancy&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netclientshiftcancelreasons&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netdebtorsdaysalesoutstanding&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_neterrorhandler&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netfavouritetitle&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netfilepermitted&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetemail&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetplacementid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetvacancysitedetails&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nethaspermission&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netjsstring&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netlongquestanswer&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netorderreasonlist&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netownerjobratelist&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netownertimesheetlists&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netpopulatecompliancetable&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netquestionownerid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netshiftdatetime&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netstringtotimestamp&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nettempshiftstatusstring&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nettimesheetenddate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvacancyhasratescript&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvacancyroleallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvalidateemailaddress&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nominalfortimesheetline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationattachments&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcomplete&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcontacteventclass&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcustomfields&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationdeeplinkcomplete&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationemailsubject&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationemploymentid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationhtmlwrapid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationics&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationrecipients&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationsexist&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationsignatureid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationstaffid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationtemplateselector&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_numtotime&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_overridetemprate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_padstr&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pay_weeklyemployerni&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pdfdisplaycontent&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableattime&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforplan&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforplaniterate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforrecovery&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personbasedtimesheetcustomcolumn&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_persondepartmentalalert&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personheadline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personkeywordscustom&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personkeywordsquestion&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personstatuschangeallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_persontempcolour&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailability&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailabilityalert&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailabilitytimesheet&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personvacancyshiftmatch&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personvacancyshiftmatch2&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_phoneupdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementdayhours&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementdayworked&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalid&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalidv2&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalue&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvaluev2&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_populatecompliancetable&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_postcodepart&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_proper&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthbranch&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendperson&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendshift&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendvacancy&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthshowbutton&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthtasktype&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthuniqueusername&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_rejectstate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_replacestr&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_reportimagefetch&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_rscalcmargin&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_safedate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_safetime&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_scannedimagelinkallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_sdsrequired&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_secagencystatuschangeallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillbatchcomplete&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillcustomcolumn&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbilldescriptionfortimesheetline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillemailbodyandsubject&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillnominalfortimesheetline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillvatcodefortimesheetline&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_setpersonwillingness&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_settempprovtimesheetstatus&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftbackcolouroverride&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftcolouroverride&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftconsultants&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftmatchcustomcolumn&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_socialcarerecipientvacancy&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_socialmediaresolve&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_softwizardcontroller&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_specialitylookup&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_statementemailbody&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_striplinefeeds&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tableexists&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempaidtempemaill&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempcustomrategenerator&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempdepttran&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempdeskcustomcolumn&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempgetweekago&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempholidaycalcitem&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempprovtimesheetdeleteallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temprateprecision&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftchangeofhoursallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftconfirmationallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshifteditingallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftmatchdescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftmatchskilldescription&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftplanallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempslotstartdate&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcancel&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcomplete&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcompletewarning&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetinvoice&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetselfbill&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatch&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatch2&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatchorder&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_timesheetallowed&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_timesheetdayhours&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_uniquekey&amp;rev=1786130660"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_urlsafe&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyallowed&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancydetailscontents&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyextrahols&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyheadline&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancykeywordscustom&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancykeywordsquestion&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyrecipientheadline&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyroleallowed&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancystatuschangeallowed&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancytemprate&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatedateofbirth&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateemailaddress&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateemailaddressstd&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatelinkedin&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateninumber&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatepayroll&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateplacement&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validationresults&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforawrinvoicefixedniwtrline&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicefixedniline&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicefixedwtrline&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicenirechargeline&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vatcodefortimesheetline&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekcontaining&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekenddate&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekmonthenddate&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekmonthstartdate&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkgetswitchvalue&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpklocalswitchvalue&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkmaintaingetswitchvalue&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkuserperformsrole&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wtd_holiday_stat&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wtd_start_of_hol_year&amp;rev=1786130662"/>
                <rdf:li rdf:resource="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:start&amp;rev=1786130662"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://iqxusers.co.uk/iqxhelp/lib/exe/fetch.php?media=wiki:logo.png">
        <title>iqx</title>
        <link>https://iqxusers.co.uk/iqxhelp/</link>
        <url>https://iqxusers.co.uk/iqxhelp/lib/exe/fetch.php?media=wiki:logo.png</url>
    </image>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordcompcode&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AccordCompCode</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordcompcode&amp;rev=1786130660</link>
        <description>﻿

pears.AccordCompCode

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AccordCompCode&quot;( in &quot;payident&quot; char(1) ) 
returns char(1)
begin
  declare &quot;rv&quot; char(1);
  set &quot;rv&quot; = &quot;payident&quot;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordemployeecode&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AccordEmployeeCode</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordemployeecode&amp;rev=1786130660</link>
        <description>﻿

pears.AccordEmployeeCode

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AccordEmployeeCode&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pid&quot; char(20),in &quot;payident&quot; char(1) ) 
returns char(6)
begin
  /* side effect updates payrollnumber */
  declare &quot;pn&quot; integer;
  declare &quot;rv&quot; char(6);
  declare &quot;LiveSys&quot; integer;
  declare &quot;ParaSys&quot; int…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordernitimesheet&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AccordERNITimesheet</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordernitimesheet&amp;rev=1786130660</link>
        <description>﻿

pears.AccordERNITimesheet

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AccordERNITimesheet&quot;( in &quot;tsid&quot; char(20),in &quot;tslineid&quot; char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  set &quot;rv&quot; = 0.0;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordpayrollcode&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AccordPayrollCode</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_accordpayrollcode&amp;rev=1786130660</link>
        <description>﻿

pears.AccordPayrollCode

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AccordPayrollCode&quot;( in &quot;PersID&quot; char(20) ) 
returns varchar(6)
begin
  -- Payroll codes must exist in Accord.
  declare &quot;rv&quot; varchar(6);
  declare &quot;payfreq&quot; integer;
  select &quot;payfrequency&quot; into &quot;payfreq&quot; from &quot;pay_employee&quot; where &quot;personid&quot; = &quot;PersID&quot;;
  if &quot;payfreq&quot; = 12 then set &quot;rv&quot; = &#039;MONTH&#039;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_addrecoveryhours&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AddRecoveryHours</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_addrecoveryhours&amp;rev=1786130660</link>
        <description>﻿

pears.AddRecoveryHours

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AddRecoveryHours&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tfrom&quot; time,in &quot;tto&quot; time,in &quot;hrs&quot; smallint ) 
returns time
begin
  declare &quot;rv&quot; time;
  if &quot;isnull&quot;(&quot;hrs&quot;,0) &lt;= 0 or &quot;tfrom&quot; is null or &quot;tto&quot; is null then
    return &quot;tto&quot;
  end if;
  if &quot;hrs&quot; &gt; 23 then
   …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_addressvalidation&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AddressValidation</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_addressvalidation&amp;rev=1786130660</link>
        <description>﻿

pears.AddressValidation

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AddressValidation&quot;( in @RecordType char(1),in @RecordID char(20),in @Addr1 char(100),in @Addr2 char(100),in @Addr3 char(100),in @Town char(100),in @County char(100),in @Country char(100),in @Postcode char(100) ) 
returns long varchar
-- Non-Maintained Function
--
-- @RecordType P - Person, C - Co…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_adjustpayforceni&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AdjustPayForceNI</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_adjustpayforceni&amp;rev=1786130660</link>
        <description>﻿

pears.AdjustPayForceNI

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AdjustPayForceNI&quot;( in &quot;pay&quot; double,in &quot;pid&quot; char(20) ) 
returns double
begin
  return(&quot;pay&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_agencyidforratescript&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AgencyIDForRateScript</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_agencyidforratescript&amp;rev=1786130660</link>
        <description>﻿

pears.AgencyIDForRateScript

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AgencyIDForRateScript&quot;( in &quot;vacid&quot; char(20),in &quot;persid&quot; char(20) ) 
returns char(20)
begin
  return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_automatchshiftmatchorder&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AutoMatchShiftMatchOrder</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_automatchshiftmatchorder&amp;rev=1786130660</link>
        <description>﻿

pears.AutoMatchShiftMatchOrder

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AutoMatchShiftMatchOrder&quot;( 
  in @PersonID char(20),in @TempShiftPlanID char(20),in @Score double,in @Custom double,in @OldOrNew char(3) ) 
returns double
begin
  -- Will sort in DESCENDING order of the value returned.
  -- @Score (from MatchShifts)  explicit availability being weighted hi…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrentitygrade&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AWREntityGrade</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrentitygrade&amp;rev=1786130660</link>
        <description>﻿

pears.AWREntityGrade

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AWREntityGrade&quot;( in &quot;VacID&quot; char(20),in &quot;PersID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ShiftID&quot; char(20) ) 
returns char(4)
begin
  declare &quot;rv&quot; char(4);
  -- Grade for AWR purposes, not stored with shift or timesheet line
  set &quot;rv&quot; = &quot;EntityGrade&quot;(&quot;VacID&quot;,&quot;PersID&quot;,&quot;PlacID&quot;,&quot;ShiftID&quot;);
  return &quot;rv&quot;
en…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrgap&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AWRGap</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrgap&amp;rev=1786130660</link>
        <description>﻿

pears.AWRGap

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AWRGap&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;jobmasterid&quot; char(20),in &quot;WeekNo&quot; integer,in &quot;VacID&quot; char(20),in &quot;PersID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ShiftID&quot; char(20) ) 
returns integer
begin
  declare &quot;rv&quot; integer;
  declare &quot;AWRStat&quot; integer;
  declare &quot;AWRLink&quot; cha…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrplacement&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AWRPlacement</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrplacement&amp;rev=1786130660</link>
        <description>﻿

pears.AWRPlacement

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AWRPlacement&quot;( in &quot;vacid&quot; char(20),in &quot;persid&quot; char(20),in &quot;shiftid&quot; char(20) ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  -- finds placementid for use in AWR 
  set &quot;rv&quot; = null;
  if &quot;shiftid&quot; is not null then
    select &quot;placementid&quot; into &quot;rv&quot; from &quot;tempshift&quot; where &quot;tempshiftid&quot; = &quot;shiftid&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrqualified&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AWRQualified</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrqualified&amp;rev=1786130660</link>
        <description>﻿

pears.AWRQualified

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AWRQualified&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;jobmasterid&quot; char(20),in &quot;WeekNo&quot; integer,in &quot;VacID&quot; char(20),in &quot;PersID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ShiftID&quot; char(20) ) 
returns integer
not deterministic
begin
  declare &quot;pid&quot; char(20);
  declare &quot;vid&quot; char…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrqualifiedcustomoverride&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AWRQualifiedCustomOverRide</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrqualifiedcustomoverride&amp;rev=1786130660</link>
        <description>﻿

pears.AWRQualifiedCustomOverRide

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AWRQualifiedCustomOverRide&quot;( in @AWRQualifiedStatus integer,in @JobMasterID char(20),in @WeekNo integer,in @VacID char(20),in @PersID char(20),in @PlacID char(20),in @ShiftID char(20) ) 
returns integer
not deterministic
begin
  return @AWRQualifiedStatus
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrstatuschangeallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AWRStatusChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrstatuschangeallowed&amp;rev=1786130660</link>
        <description>﻿

pears.AWRStatusChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AWRStatusChangeAllowed&quot;( in &quot;id&quot; char(20),in &quot;oldstatus&quot; char(1),in &quot;newstatus&quot; char(1),in &quot;VorPorC&quot; char(1) ) 
returns long varchar
-- If change is disallowed you must set status back to oldstatus before returning an error message
-- VorPorC V = vacancy P = placement (AWRJobMaster) C = comp…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrweeks&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.AWRWeeks</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_awrweeks&amp;rev=1786130660</link>
        <description>﻿

pears.AWRWeeks

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;AWRWeeks&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @JobMasterID char(20),in @WeekNo integer,in @VacID char(20),in @PersID char(20),in @PlacID char(20),in @ShiftID char(20) ) 
returns integer
begin
  declare @AWRStat integer;
  declare @AWRLink char(20);
  declare @PersonID c…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base29safe&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.Base29Safe</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base29safe&amp;rev=1786130660</link>
        <description>﻿

pears.Base29Safe

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;Base29Safe&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;seed&quot; integer,in &quot;digits&quot; smallint ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  declare &quot;m&quot; integer;
  declare &quot;sdigits&quot; char(29);
  -- Where the code must be handled by humans, letters O and I can be confused w…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base34&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.Base34</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base34&amp;rev=1786130660</link>
        <description>﻿

pears.Base34

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;Base34&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;seed&quot; integer,in &quot;digits&quot; smallint ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  declare &quot;m&quot; integer;
  declare &quot;sdigits&quot; char(34);
  -- Where the code must be handled by humans, letters O and I can be confused with zero…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base36&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.Base36</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_base36&amp;rev=1786130660</link>
        <description>﻿

pears.Base36

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;Base36&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;seed&quot; integer,in &quot;digits&quot; smallint ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  declare &quot;m&quot; integer;
  set &quot;rv&quot; = &#039;&#039;;
  if((&quot;digits&quot; &gt; 20) or(&quot;digits&quot; &lt; 1)) then
    set &quot;digits&quot; = 20
  end if;
  while &quot;seed&quot; &gt; 0 loop
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorecopy&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreCopy</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorecopy&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreCopy

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreCopy&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;fromclass&quot; char(1),in &quot;fromid&quot; char(20),in &quot;toclass&quot; char(1),in &quot;toid&quot; char(20),in &quot;requestedby&quot; char(15) ) 
returns integer
not deterministic
begin
  declare &quot;z&quot; integer;
  set &quot;z&quot; = &quot;BlobstoreRead&quot;(&quot;fromclass&quot;,&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoredbfolder&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreDbFolder</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoredbfolder&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreDbFolder

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreDbFolder&quot;()
returns char(250)
not deterministic /* Application Maintained Function / Procedure - DO NOT EDIT*/
begin
  /* Return the full path of the database directory including trailing separator */
  return &quot;regexp_substr&quot;(&quot;db_property&quot;(&#039;file&#039;),&#039;^.+\\W(?=\\w+[.](db|DB)$)&#039;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoredeleteexternal&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreDeleteExternal</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoredeleteexternal&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreDeleteExternal

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreDeleteExternal&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;xpath&quot; char(250) ) 
returns integer
not deterministic
begin
  declare &quot;delcmd&quot; char(10);
  if &quot;isnull&quot;(&quot;xpath&quot;,&#039;&#039;) &lt;&gt; &#039;&#039; then
    if &quot;right&quot;(&quot;BlobstoreDbFolder&quot;(),1) = &#039;/&#039; then -- sp_delete_fil…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoreextfolder&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreExtFolder</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoreextfolder&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreExtFolder

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreExtFolder&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;blobdate&quot; date ) 
returns char(250)
not deterministic
begin
  declare &quot;rv&quot; char(250);
  declare &quot;b&quot; tinyint;
  declare &quot;sep&quot; char(1);
  select first &quot;blobexternalstorage&quot;,&quot;trim&quot;(&quot;blobexternalrootfolder&quot;)…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorefetch&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreFetch</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorefetch&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreFetch

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreFetch&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;blobclass&quot; char(1),in &quot;blobid&quot; char(20) ) 
returns long binary
begin
  declare &quot;xpath&quot; char(250);
  declare &quot;dat&quot; long binary;
  select &quot;externalfilepath&quot;,&quot;blob&quot; into &quot;xpath&quot;,&quot;dat&quot; from &quot;blobstore&quot; where &quot;class&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorefullpath&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreFullPath</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorefullpath&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreFullPath

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreFullPath&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;xpath&quot; char(250) ) 
returns char(250)
not deterministic
begin
  /* if xpath is relative then prepend with the database folder */
  if &quot;charindex&quot;(&#039;:&#039;,&quot;xpath&quot;) &gt; 0 or &quot;left&quot;(&quot;xpath&quot;,1) = &#039;/&#039; or &quot;left&quot;(&quot;xpat…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoreread&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreRead</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstoreread&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreRead

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreRead&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;blobclass&quot; char(1),in &quot;blobid&quot; char(20),in &quot;requestedby&quot; char(15) ) 
returns integer
not deterministic
begin
  declare &quot;z&quot; integer;
  declare &quot;xpath&quot; char(250);
  declare &quot;dat&quot; long binary;
  select &quot;isnull&quot;(&quot;zipp…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorerelocate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreRelocate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorerelocate&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreRelocate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreRelocate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;blobclass&quot; char(1),in &quot;blobid&quot; char(20) ) 
returns integer
not deterministic
begin
  declare &quot;z&quot; integer;
  declare &quot;xpath&quot; char(250);
  declare &quot;xfolder&quot; char(250);
  declare &quot;bAlreadyExists&quot; integer;
  s…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorewrite&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BlobstoreWrite</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_blobstorewrite&amp;rev=1786130660</link>
        <description>﻿

pears.BlobstoreWrite

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BlobstoreWrite&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;blobclass&quot; char(1),in &quot;blobid&quot; char(20),in &quot;blobzipped&quot; tinyint,in &quot;requestedby&quot; char(15) ) 
returns integer
not deterministic
begin
  declare &quot;bAlreadyExists&quot; integer;
  declare &quot;bNewfilenameNeeded&quot; integer;
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_broadbeancreatepost&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BroadBeanCreatePost</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_broadbeancreatepost&amp;rev=1786130660</link>
        <description>﻿

pears.BroadBeanCreatePost

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BroadBeanCreatePost&quot;( in @Instance char(20),in @JobTitle char(65),in @Industry char(100),in @JobType char(9),in @VacancyID char(20),in @BroadbeanLocationID integer,in @JobRef char(20),in @Duration char(30),in @StartDate char(30),in @Salary_From integer,in @Salary_To integer,in @Salary_per char(…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_bulkdocpackcompanyallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BulkDocPackCompanyAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_bulkdocpackcompanyallowed&amp;rev=1786130660</link>
        <description>﻿

pears.BulkDocPackCompanyAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BulkDocPackCompanyAllowed&quot;( in &quot;CompID&quot; char(20) ) 
returns integer
begin
  -- test on division, question, user
  return 1
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_bulkdocpackpackallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.BulkDocPackPackAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_bulkdocpackpackallowed&amp;rev=1786130660</link>
        <description>﻿

pears.BulkDocPackPackAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;BulkDocPackPackAllowed&quot;( in &quot;CompID&quot; char(20),in &quot;ContID&quot; char(20) ) 
returns integer
begin
  -- test on division, question, user
  return 1
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_canuploadvacancy&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CanUploadVacancy</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_canuploadvacancy&amp;rev=1786130660</link>
        <description>﻿

pears.CanUploadVacancy

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CanUploadVacancy&quot;( in &quot;vacID&quot; char(20) ) 
returns integer
begin
  if exists(select &quot;Vacancyid&quot; from &quot;vacancy&quot; where &quot;vacancyid&quot; = &quot;vacid&quot; and &quot;status&quot; = &#039;C&#039;) then
    return 1
  else return 0
  end if
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectiondeleteallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CollectionDeleteAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectiondeleteallowed&amp;rev=1786130660</link>
        <description>﻿

pears.CollectionDeleteAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CollectionDeleteAllowed&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pCollectionid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;collectioncount&quot; integer;
  set &quot;rv&quot; = &#039;&#039;;
  if not exists(select * from &quot;collection&quot; where &quot;collec…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectiongetitemtypename&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CollectionGetItemTypeName</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectiongetitemtypename&amp;rev=1786130660</link>
        <description>﻿

pears.CollectionGetItemTypeName

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CollectionGetItemTypeName&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ItemType&quot; char(2) ) 
returns varchar(20)
begin
  declare &quot;rv&quot; varchar(20);
  /* Item Types P -person, C -company, E -employment, L -placement, R -progress, T -timesheet, I -Invoice, V -vaca…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectionheadline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CollectionHeadline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectionheadline&amp;rev=1786130660</link>
        <description>﻿

pears.CollectionHeadline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CollectionHeadline&quot;( 
  in @CollectionID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; double;
  -- if has no parent then top level
  -- if a parent look at children??
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectionitemdescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CollectionItemDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_collectionitemdescription&amp;rev=1786130660</link>
        <description>﻿

pears.CollectionItemDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CollectionItemDescription&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;CollectionID&quot; char(20),in &quot;ItemType&quot; char(2),in &quot;ItemID&quot; char(20) ) 
returns varchar(250)
begin
  declare &quot;rv&quot; varchar(250);
  --  DECLARE CNote LONG VARCHAR;
  /* Item Types P -person, C -…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_commathousands&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.commathousands</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_commathousands&amp;rev=1786130660</link>
        <description>﻿

pears.commathousands

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;commathousands&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;d&quot; double ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  declare &quot;s&quot; char(20);
  declare &quot;t&quot; char(20);
  declare &quot;i&quot; integer;
  declare &quot;c&quot; char(1);
  if &quot;d&quot; is null then
    return null
  end if;
  if &quot;d&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_commathousandsdec&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CommaThousandsDec</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_commathousandsdec&amp;rev=1786130660</link>
        <description>﻿

pears.CommaThousandsDec

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CommaThousandsDec&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;d&quot; double ) 
returns char(40)
begin
  declare &quot;rv&quot; char(40);
  declare &quot;s&quot; char(20);
  declare &quot;t&quot; char(20);
  declare &quot;i&quot; integer;
  declare &quot;c&quot; char(1);
  declare &quot;fract&quot; double;
  set &quot;fract&quot; = &quot;abs&quot;(&quot;r…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companyheadline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CompanyHeadline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companyheadline&amp;rev=1786130660</link>
        <description>﻿

pears.CompanyHeadline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CompanyHeadline&quot;( in &quot;RecordID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  declare &quot;Part&quot; long varchar;
  declare &quot;NewLine&quot; char(2);
  set &quot;rv&quot; = &#039;&#039;;
  set &quot;Part&quot; = &#039;&#039;;
  set &quot;NewLine&quot; = &quot;char&quot;(13)+&quot;Char&quot;(10);
  select &quot;list&quot;(&#039; &#039;+&quot;number&quot;) into &quot;Part&quot; from &quot;phone&quot; where &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companykeywordscustom&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CompanyKeyWordsCustom</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companykeywordscustom&amp;rev=1786130660</link>
        <description>﻿

pears.CompanyKeyWordsCustom

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CompanyKeyWordsCustom&quot;( 
  in @CompanyID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companykeywordsquestion&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CompanyKeyWordsQuestion</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companykeywordsquestion&amp;rev=1786130660</link>
        <description>﻿

pears.CompanyKeyWordsQuestion

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CompanyKeyWordsQuestion&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @CompanyID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select &quot;list&quot;(distinct &quot;GetQuestAnswer&quot;(&quot;t&quot;.&quot;TagLocation&quot;,&quot;t&quot;.&quot;TagID&quot;,@CompanyID),&#039; &#039;)
    into &quot;rv&quot;
    from &quot;Ta…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companysalesstatuschangeallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CompanySalesStatusChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companysalesstatuschangeallowed&amp;rev=1786130660</link>
        <description>﻿

pears.CompanySalesStatusChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CompanySalesStatusChangeAllowed&quot;( 
  in &quot;compid&quot; char(20),in &quot;oldstatus&quot; char(20),in &quot;newstatus&quot; char(20) ) 
returns long varchar
-- If change is disallowed you must set status back to oldstatus before returning an error message
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companystatuschangeallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CompanyStatusChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_companystatuschangeallowed&amp;rev=1786130660</link>
        <description>﻿

pears.CompanyStatusChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CompanyStatusChangeAllowed&quot;( in &quot;compid&quot; char(20),in &quot;oldstatus&quot; char(1),in &quot;newstatus&quot; char(1) ) 
returns long varchar
-- If change is disallowed you must set status back to oldstatus before returning an error message
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
en…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancescore&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ComplianceScore</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancescore&amp;rev=1786130660</link>
        <description>﻿

pears.ComplianceScore

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ComplianceScore&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20) default null ) 
returns double
begin
  declare &quot;act&quot; double;
  declare &quot;poss&quot; double;
  declare &quot;pComplianceDomainID&quot; char(20);
  declare &quot;pClientCode&quot; char(12);
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancesummary&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ComplianceSummary</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancesummary&amp;rev=1786130660</link>
        <description>﻿

pears.ComplianceSummary

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ComplianceSummary&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pPersonID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;errMsg&quot; long varchar;
  declare &quot;warnMsg&quot; long varchar;
  declare &quot;act&quot; double;
  declare &quot;poss&quot; double;
  declare &quot;xScore&quot; char(20);
  set &quot;act…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ComplianceValid</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalid&amp;rev=1786130660</link>
        <description>﻿

pears.ComplianceValid

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ComplianceValid&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pPersonID&quot; char(20),in &quot;pComplianceDomainID&quot; char(20),in &quot;AtDate&quot; date,in &quot;pClientCode&quot; char(12) default null ) 
returns long varchar
begin
  declare &quot;errMsg&quot; long varchar;
  declare &quot;warnMsg&quot; long varchar;
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidforplacement&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ComplianceValidforPlacement</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidforplacement&amp;rev=1786130660</link>
        <description>﻿

pears.ComplianceValidforPlacement

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ComplianceValidforPlacement&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;pComplianceDomainID&quot; char(20);
  declare &quot;pClientCode&quot; char(12);
  declare &quot;pDate&quot; date;
  declare …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidfortempshift&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ComplianceValidforTempShift</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidfortempshift&amp;rev=1786130660</link>
        <description>﻿

pears.ComplianceValidforTempShift

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ComplianceValidforTempShift&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pPersonID&quot; char(20),in &quot;pTempShiftPlanID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;pComplianceDomainID&quot; char(20);
  declare &quot;pClientCode&quot; char(12);
  declare &quot;pDate&quot; date;
  de…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidperson&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ComplianceValidPerson</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_compliancevalidperson&amp;rev=1786130660</link>
        <description>﻿

pears.ComplianceValidPerson

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ComplianceValidPerson&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pPersonID&quot; char(20),in &quot;pIncludeWarnings&quot; integer ) 
returns long varchar
begin
  declare &quot;errMsg&quot; long varchar;
  declare &quot;warnMsg&quot; long varchar;
  for &quot;PFOR&quot; as &quot;PCUR&quot; no scroll cursor for
    se…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_confirmationdepartmentallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ConfirmationDepartmentAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_confirmationdepartmentallowed&amp;rev=1786130660</link>
        <description>﻿

pears.ConfirmationDepartmentAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ConfirmationDepartmentAllowed&quot;( in @DeptID char(2) ) 
returns smallint
begin
  return 1
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consenthideperson&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ConsentHidePerson</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consenthideperson&amp;rev=1786130660</link>
        <description>﻿

pears.ConsentHidePerson

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ConsentHidePerson&quot;( 
  in &quot;PersID&quot; char(20),in &quot;Source&quot; char(4) ) 
returns smallint
begin
  --  return 1 to hide 0 to show		
  --  use	userstaffid + role to decide if DPC	
  --  Source - PSEL = person selector, VRES = vacancy search result, CEVE contact event (to hide details and disable new cont…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consentoptionchangeallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ConsentOptionChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consentoptionchangeallowed&amp;rev=1786130660</link>
        <description>﻿

pears.ConsentOptionChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ConsentOptionChangeAllowed&quot;( 
  in &quot;PersID&quot; char(20),in &quot;CTypeID&quot; char(20),in &quot;OldConsentTypeOptionID&quot; char(20),
  in &quot;NewConsentTypeOptionID&quot; char(20) ) 
returns long varchar
begin
  -- if not allowed return reason, change will be blocked			
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consultantchangeallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ConsultantChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_consultantchangeallowed&amp;rev=1786130660</link>
        <description>﻿

pears.ConsultantChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ConsultantChangeAllowed&quot;( 
  in &quot;recordtype&quot; char(1),in &quot;recordid&quot; char(20),in &quot;oldstaff&quot; char(20),in &quot;newstaff&quot; char(20) ) 
returns long varchar
-- If change is disallowed consultant change is blocked
-- C - company, P - person, V - Vacancy, P - Placement, R - Progress
begin
  declare &quot;rv&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contacteventheadline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ContactEventHeadline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contacteventheadline&amp;rev=1786130660</link>
        <description>﻿

pears.ContactEventHeadline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ContactEventHeadline&quot;( 
  in &quot;recordid&quot; char(20),in &quot;PersID&quot; char(20),in &quot;EmpID&quot; char(20),in &quot;Vacid&quot; char(20),in &quot;PlacID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contactlink&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.contactlink</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contactlink&amp;rev=1786130660</link>
        <description>﻿

pears.contactlink

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;contactlink&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sempid&quot; char(20),in &quot;spersid&quot; char(20),in &quot;sfromwho&quot; char(1),in &quot;stowho&quot; char(1) ) 
returns char(50)
begin
  declare &quot;rv&quot; char(50);
  if(&quot;sempid&quot; is null or &quot;spersid&quot; is null) and not(&quot;sfromwho&quot; = &#039;A&#039; and &quot;spersid&quot; is…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contresptran&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.contresptran</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_contresptran&amp;rev=1786130660</link>
        <description>﻿

pears.contresptran

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;contresptran&quot;( in &quot;oldresp&quot; char(1) ) 
returns char(2)
begin
  declare &quot;rv&quot; char(2);
  case &quot;oldresp&quot;
  when &#039;n&#039; then set &quot;rv&quot; = &#039;1&#039;
  when &#039;i&#039; then set &quot;rv&quot; = &#039;3&#039;
  when &#039;a&#039; then set &quot;rv&quot; = &#039;D&#039;
  when &#039;m&#039; then set &quot;rv&quot; = &#039;B&#039;
  when &#039;e&#039; then set &quot;rv&quot; = &#039;2&#039;
  when &#039;1&#039; then set &quot;rv&quot; = &#039;C&#039;
  when &#039;4&#039; the…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_createicsfile&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CreateICSFile</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_createicsfile&amp;rev=1786130660</link>
        <description>﻿

pears.CreateICSFile

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CreateICSFile&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;puid&quot; char(20),in &quot;pLocation&quot; char(200),in &quot;pnotes&quot; long varchar,in &quot;pStartTime&quot; timestamp,
  in &quot;pEndTime&quot; timestamp,in &quot;pdescription&quot; char(200),in &quot;ppriority&quot; smallint,
  in &quot;precurrance&quot; smallint,in &quot;ppopup&quot; sm…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_customsmshttprequest&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CustomSMSHTTPRequest</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_customsmshttprequest&amp;rev=1786130660</link>
        <description>﻿

pears.CustomSMSHTTPRequest

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CustomSMSHTTPRequest&quot;()
returns long varchar
begin
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_cvsendallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.CVSendAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_cvsendallowed&amp;rev=1786130660</link>
        <description>﻿

pears.CVSendAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;CVSendAllowed&quot;( 
  in @personid char(20),in @contacteventid char(20),in @progressid char(20) ) 
returns long varchar
begin
  declare @RV long varchar;
  return(@RV)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datamanagementerase&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DataManagementErase</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datamanagementerase&amp;rev=1786130660</link>
        <description>﻿

pears.DataManagementErase

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DataManagementErase&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @PersonID char(20),in &quot;DeleteAll&quot; char(1) default &#039;N&#039;,in &quot;Anonymise&quot; char(1) default &#039;N&#039;,
  in &quot;RemoveContactEvents&quot; char(1) default &#039;N&#039;,in &quot;ContactEventDate&quot; date default current date,
  in &quot;RemoveDocs…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datamanagementerasecustom&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DataManagementEraseCustom</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datamanagementerasecustom&amp;rev=1786130660</link>
        <description>﻿

pears.DataManagementEraseCustom

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DataManagementEraseCustom&quot;( 
  in @PersonID char(20) ) 
returns long varchar
begin
  /* deal with any custom tables/views */
  /* return blank if OK otherwise error message  */
  return &#039;&#039;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dateandtimeoverlap&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DateAndTimeOverLap</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dateandtimeoverlap&amp;rev=1786130660</link>
        <description>﻿

pears.DateAndTimeOverLap

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DateAndTimeOverLap&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s1d&quot; date,in &quot;s1t1&quot; time,in &quot;s1t2&quot; time,in &quot;s2d&quot; date,in &quot;s2t1&quot; time,in &quot;s2t2&quot; time ) 
returns tinyint
begin
  declare &quot;rv&quot; tinyint;
  declare &quot;s1f&quot; timestamp;
  declare &quot;s1t&quot; timestamp;
  declare &quot;s2f&quot; …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datetonearest&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.dateToNearest</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_datetonearest&amp;rev=1786130660</link>
        <description>﻿

pears.dateToNearest

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;dateToNearest&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pDate&quot; date,in &quot;pUnit&quot; char(1) ) 
returns date
deterministic
begin
  case &quot;pUnit&quot;
  when &#039;d&#039; then
    return &quot;pDate&quot;
  when &#039;w&#039; then
    while &quot;dow&quot;(&quot;pDate&quot;) &lt;&gt; 2 loop
      set &quot;pDate&quot; = &quot;pDate&quot;-1
    end loop;
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtracreate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DAXTRACreate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtracreate&amp;rev=1786130660</link>
        <description>﻿

pears.DAXTRACreate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DAXTRACreate&quot;( in &quot;paramsp&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RVal&quot; long varchar;
  -- personid if successful
  -- failmessage= if fails
  return &quot;RVal&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtradeduplicate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DAXTRADeDuplicate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtradeduplicate&amp;rev=1786130660</link>
        <description>﻿

pears.DAXTRADeDuplicate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DAXTRADeDuplicate&quot;( in &quot;paramsp&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RVal&quot; long varchar;
  declare &quot;fname&quot; char(100);
  declare &quot;lname&quot; char(100);
  declare &quot;filter&quot; long varchar;
  declare &quot;sel&quot; long varchar;
  declare &quot;maxrecs&quot; integer;
  set &quot;maxrecs&quot; = 5;
  set &quot;filter&quot; = &#039; wher…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtradelete&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DAXTRADelete</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtradelete&amp;rev=1786130660</link>
        <description>﻿

pears.DAXTRADelete

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DAXTRADelete&quot;( in &quot;paramsp&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RVal&quot; long varchar;
  -- blank if successful
  -- failmessage= if fails
  return &quot;RVal&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtragenerate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DAXTRAGenerate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtragenerate&amp;rev=1786130660</link>
        <description>﻿

pears.DAXTRAGenerate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DAXTRAGenerate&quot;( in &quot;paramsp&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RVal&quot; long varchar;
  -- name_fo=John+Smith&amp;name_ln=Smith&amp;name_fn=John&amp;same_sx=Male if successful
  -- blank if not found
  return &quot;RVal&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtraupdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DAXTRAUpdate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_daxtraupdate&amp;rev=1786130660</link>
        <description>﻿

pears.DAXTRAUpdate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DAXTRAUpdate&quot;( in &quot;paramsp&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RVal&quot; long varchar;
  -- personid if successful
  -- failmessage= if fails
  return &quot;RVal&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanupoldjrlog&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DBCleanupOldJRlog</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanupoldjrlog&amp;rev=1786130660</link>
        <description>﻿

pears.DBCleanupOldJRlog

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DBCleanupOldJRlog&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;age&quot; integer,in &quot;countordo&quot; char(1) ) 
returns integer
begin
  declare @RC integer;
  select &quot;count&quot;() into @RC from &quot;iqxjobrunnerlog&quot;
    where &quot;completiontime&quot; &lt;= current date-&quot;age&quot;;
  if &quot;countordo&quot; = &#039;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanupoldrecentobjects&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DBCleanupOldRecentObjects</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanupoldrecentobjects&amp;rev=1786130660</link>
        <description>﻿

pears.DBCleanupOldRecentObjects

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DBCleanupOldRecentObjects&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;age&quot; integer,in &quot;sid&quot; char(20),in &quot;countordo&quot; char(1) ) 
returns integer
begin
  declare @RC integer;
  declare @Staff char(20);
  select &quot;count&quot;() into @RC from &quot;RecentObjects&quot; where &quot;staf…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanblobstore&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DBCleanupOrphanBlobstore</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanblobstore&amp;rev=1786130660</link>
        <description>﻿

pears.DBCleanupOrphanBlobstore

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DBCleanupOrphanBlobstore&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;countordo&quot; char(1) ) 
returns integer
begin
  declare @RC integer;
  set @RC = 0;
  if &quot;countordo&quot; = &#039;C&#039; then
    select &quot;count&quot;() into @RC from &quot;Blobstore&quot;
      where((((&quot;class&quot; = &#039;V&#039;) or(&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanoledocument&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DBCleanupOrphanOLEDocument</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanoledocument&amp;rev=1786130660</link>
        <description>﻿

pears.DBCleanupOrphanOLEDocument

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DBCleanupOrphanOLEDocument&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;countordo&quot; char(1) ) 
returns integer
begin
  declare @RC integer;
  set @RC = 0;
  if &quot;countordo&quot; = &#039;C&#039; then
    select &quot;count&quot;() into @RC from &quot;OLEDocument&quot;
      where(((&quot;ownertype&quot; = …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanphone&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DBCleanupOrphanPhone</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanphone&amp;rev=1786130660</link>
        <description>﻿

pears.DBCleanupOrphanPhone

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DBCleanupOrphanPhone&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;countordo&quot; char(1) ) 
returns integer
begin
  declare @RC integer;
  set @RC = 0;
  if &quot;countordo&quot; = &#039;C&#039; then
    select &quot;count&quot;() into @RC from &quot;phone&quot;
      where(((&quot;who&quot; = &#039;P&#039;) and not exists(sele…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanrecentobjects&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DBCleanupOrphanRecentObjects</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphanrecentobjects&amp;rev=1786130660</link>
        <description>﻿

pears.DBCleanupOrphanRecentObjects

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DBCleanupOrphanRecentObjects&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;countordo&quot; char(1) ) 
returns integer
begin
  declare @RC integer;
  set @RC = 0;
  if &quot;countordo&quot; = &#039;C&#039; then
    select &quot;count&quot;() into @RC from &quot;RecentObjects&quot;
      where((not exist…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphantagvalue&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DBCleanupOrphanTagValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dbcleanuporphantagvalue&amp;rev=1786130660</link>
        <description>﻿

pears.DBCleanupOrphanTagValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DBCleanupOrphanTagValue&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;countordo&quot; char(1) ) 
returns integer
begin
  declare @RC integer;
  set @RC = 0;
  if &quot;countordo&quot; = &#039;C&#039; then
    select &quot;count&quot;() into @RC from &quot;tagvalue&quot;
      where((((&quot;taglocation&quot; = &#039;P&#039;) o…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dehead&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DeHead</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dehead&amp;rev=1786130660</link>
        <description>﻿

pears.DeHead

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DeHead&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s&quot; long varchar ) 
returns long varchar
begin
  declare &quot;i&quot; smallint;
  if &quot;s&quot; is null then
    return null
  end if;
  set &quot;i&quot; = &quot;charindex&quot;(&quot;char&quot;(9),&quot;s&quot;);
  if &quot;i&quot; &gt; 0 then
    set &quot;s&quot; = &quot;stuff&quot;(&quot;s&quot;,1,&quot;i&quot;,&#039;&#039;)
  end if;
  ret…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_deleteolddatabaselogs&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DeleteOldDatabaseLogs</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_deleteolddatabaselogs&amp;rev=1786130660</link>
        <description>﻿

pears.DeleteOldDatabaseLogs

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DeleteOldDatabaseLogs&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @DaysToKeep smallint ) 
returns smallint
begin
  --Deletes all files log files with pattern 000000AA.LOG in current log folder over a given age. Read only flags are ignored.
  declare @Command char(…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_depttran&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.depttran</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_depttran&amp;rev=1786130660</link>
        <description>﻿

pears.depttran

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;depttran&quot;( in &quot;deptu&quot; char(1) ) 
returns char(2)
begin
  declare &quot;rv&quot; char(2);
  case &quot;deptu&quot;
  when &#039;0&#039; then set &quot;rv&quot; = &#039;0&#039;
  when &#039;B&#039; then set &quot;rv&quot; = &#039;CN&#039;
  when &#039;H&#039; then set &quot;rv&quot; = &#039;CT&#039;
  when &#039;J&#039; then set &quot;rv&quot; = &#039;CU&#039;
  when &#039;G&#039; then set &quot;rv&quot; = &#039;DR&#039;
  when &#039;A&#039; then set &quot;rv&quot; = &#039;EN&#039;
  when &#039;C&#039; then set &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_descriptionforstagedinvoice&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DescriptionForStagedInvoice</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_descriptionforstagedinvoice&amp;rev=1786130660</link>
        <description>﻿

pears.DescriptionForStagedInvoice

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DescriptionForStagedInvoice&quot;( in &quot;spaymentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = null;
  select &quot;string&quot;(&quot;person&quot;.&quot;name&quot;,&#039; - &#039;,&quot;stagedpayments&quot;.&quot;description&quot;)
    into &quot;rv&quot;
    from &quot;stagedpayments&quot; key join &quot;placement&quot; key join &quot;employment&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_descriptionfortimesheetline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DescriptionForTimesheetLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_descriptionfortimesheetline&amp;rev=1786130660</link>
        <description>﻿

pears.DescriptionForTimesheetLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DescriptionForTimesheetLine&quot;( in &quot;tslineid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = null;
  select &quot;string&quot;(&#039;W/e &#039;,&quot;dateformat&quot;(&quot;weekmonthenddate&quot;(&quot;temptimesheet&quot;.&quot;period&quot;,&quot;temptimesheet&quot;.&quot;periodlength&quot;),&#039;dd/mm/yy&#039;),&#039; &#039;,&quot;person&quot;.&quot;name&quot;,&#039; &#039;,&quot;tempp…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dialable&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.dialable</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_dialable&amp;rev=1786130660</link>
        <description>﻿

pears.dialable

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;dialable&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s&quot; char(100) ) 
returns char(100)
begin
  declare &quot;rv&quot; char(100);
  declare &quot;c&quot; char(1);
  declare &quot;i&quot; smallint;
  set &quot;rv&quot; = &#039;&#039;;
  set &quot;i&quot; = 1;
  while &quot;i&quot; &lt;= &quot;length&quot;(&quot;s&quot;) loop
    set &quot;c&quot; = &quot;substr&quot;(&quot;s&quot;,&quot;i&quot;,1);
    if &quot;c…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_digitsonly&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.digitsonly</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_digitsonly&amp;rev=1786130660</link>
        <description>﻿

pears.digitsonly

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;digitsonly&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s&quot; char(100) ) 
returns char(100)
begin
  declare &quot;rv&quot; char(100);
  declare &quot;c&quot; char(1);
  declare &quot;i&quot; smallint;
  set &quot;rv&quot; = &#039;&#039;;
  set &quot;i&quot; = 1;
  while &quot;i&quot; &lt;= &quot;length&quot;(&quot;s&quot;) loop
    set &quot;c&quot; = &quot;substr&quot;(&quot;s&quot;,&quot;i&quot;,1);
    i…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_distancebetweenpostcodes&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DistanceBetweenPostCodes</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_distancebetweenpostcodes&amp;rev=1786130660</link>
        <description>﻿

pears.DistanceBetweenPostCodes

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DistanceBetweenPostCodes&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @PostCodeA char(20),in @PostCodeB char(20),in @Unit char(2) ) 
returns numeric(11,3)
begin
  declare @EastingA numeric(11,3);
  declare @EastingB numeric(11,3);
  declare @NorthingA numeric(11…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DocumentPackAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackallowed&amp;rev=1786130660</link>
        <description>﻿

pears.DocumentPackAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DocumentPackAllowed&quot;( in &quot;docpackid&quot; char(20),in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;planid&quot; char(20),in &quot;shiftid&quot; char(20),in &quot;placid&quot; char(20) ) 
returns long varchar
begin
  -- function called BEFORE selecting who to send to
  -- persid, docpackid and vacid always populated)
  declare …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackattachname&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DocumentPackAttachName</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackattachname&amp;rev=1786130660</link>
        <description>﻿

pears.DocumentPackAttachName

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DocumentPackAttachName&quot;( in &quot;docpackid&quot; char(20),in &quot;doctypeid&quot; char(20),in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;planid&quot; char(20),in &quot;shiftid&quot; char(20),in &quot;placid&quot; char(20) ) 
returns long varchar
begin
  -- persid, docpackid, doctypeid and vacid always populated
  declare &quot;rv&quot; long var…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackemailbody&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DocumentPackEmailBody</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_documentpackemailbody&amp;rev=1786130660</link>
        <description>﻿

pears.DocumentPackEmailBody

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DocumentPackEmailBody&quot;( in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;oldbody&quot; long varchar ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;CRLF&quot; char(2);
  declare &quot;deptid&quot; char(2);
  select &quot;departmentid&quot; into &quot;deptid&quot; from &quot;vacancy&quot; where &quot;vacancyid&quot; = &quot;vacid&quot;;
  set &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_duplicatecheckcustomcolumn&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DuplicateCheckCustomColumn</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_duplicatecheckcustomcolumn&amp;rev=1786130660</link>
        <description>﻿

pears.DuplicateCheckCustomColumn

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DuplicateCheckCustomColumn&quot;( 
  in &quot;RecordType&quot; char(2),in &quot;RecordID&quot; char(20),in &quot;ColNo&quot; tinyint ) 
returns char(100)
begin
  -- RecordType P=Person c=Company 
  -- RecordID=null means return column heading for RecordType P,C or null if custom column not wanted 
  -- RecordID=personid, …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_duplicatevacancyandplacement&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.DuplicateVacancyAndPlacement</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_duplicatevacancyandplacement&amp;rev=1786130660</link>
        <description>﻿

pears.DuplicateVacancyAndPlacement

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;DuplicateVacancyAndPlacement&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @OldVacancyID char(20),in @NewVacancyID char(20),in @NewEmploymentID char(20),in @OldPlacementID char(20) default null,in @NewPlacementID char(20) default null,in @CloseOffOld char(1) …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailbody&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EmailBody</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailbody&amp;rev=1786130660</link>
        <description>﻿

pears.EmailBody

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EmailBody&quot;( in &quot;docid&quot; char(20) ) 
returns long varchar //
// If you have General Setting group of Accounts number 420 &#039;Allow users to modify invoice email body text&#039; set to Y then the docid will not be used as a parameter as the function is not called.
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;invno…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailcvfilename&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EmailCVFileName</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailcvfilename&amp;rev=1786130660</link>
        <description>﻿

pears.EmailCVFileName

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EmailCVFileName&quot;( in &quot;persid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select &quot;string&quot;(&#039;CV -  &#039;,&quot;appnumber&quot;) into &quot;rv&quot; from &quot;person&quot; where &quot;personid&quot; = &quot;persid&quot;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailletterasattachmentfilename&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EmailLetterAsAttachmentFileName</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailletterasattachmentfilename&amp;rev=1786130660</link>
        <description>﻿

pears.EmailLetterAsAttachmentFileName

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EmailLetterAsAttachmentFileName&quot;( in &quot;tempid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;coname&quot; char(30);
  select &quot;dbname&quot; into &quot;coname&quot; from &quot;params&quot;;
  // select description into rv from templatestore where templateid = tempid; 
  // if rv is …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailsubject&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EMailSubject</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_emailsubject&amp;rev=1786130660</link>
        <description>﻿

pears.EMailSubject

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EMailSubject&quot;( in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;invno&quot; char(12);
  declare &quot;coname&quot; char(30);
  select &quot;ourref&quot; into &quot;invno&quot; from &quot;iqacdocument&quot; where &quot;documentid&quot; = &quot;docid&quot;;
  select &quot;dbname&quot; into &quot;coname&quot; from &quot;params&quot;;
  set &quot;rv&quot; = &quot;string&quot;(&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_employeeacceptable&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EmployeeAcceptable</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_employeeacceptable&amp;rev=1786130660</link>
        <description>﻿

pears.EmployeeAcceptable

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EmployeeAcceptable&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;persid&quot; char(20),in &quot;compid&quot; char(20),in &quot;iTemp&quot; smallint,in &quot;VacID&quot; char(20) default null,in &quot;IncludeWithheld&quot; smallint default 0 ) 
returns char(1)
begin
  declare &quot;result&quot; char(1);
  select if &quot;Includ…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entitygrade&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EntityGrade</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entitygrade&amp;rev=1786130660</link>
        <description>﻿

pears.EntityGrade

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EntityGrade&quot;( in &quot;VacID&quot; char(20),in &quot;PersID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ShiftID&quot; char(20) ) 
returns char(4)
begin
  declare &quot;rv&quot; char(4);
  -- Return Null to match all grades. Null grades are always matched, whatever is returned
  -- If Grades set up for minimum wage for Age range the AWR grad…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entityratefilter&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EntityRateFilter</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entityratefilter&amp;rev=1786130660</link>
        <description>﻿

pears.EntityRateFilter

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EntityRateFilter&quot;( in &quot;FilterNo&quot; smallint,in &quot;WeekNo&quot; integer,in &quot;VacID&quot; char(20),in &quot;PersID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ShiftID&quot; char(20) ) 
returns char(4)
begin
  declare &quot;rv&quot; char(4);
  declare &quot;qual&quot; integer;
  -- Used to filter the rate tables
  -- Return null if specified FilterNo is…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entityspeciality&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EntitySpeciality</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_entityspeciality&amp;rev=1786130660</link>
        <description>﻿

pears.EntitySpeciality

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EntitySpeciality&quot;( in &quot;VacID&quot; char(20),in &quot;PersID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ShiftID&quot; char(20) ) 
returns char(4)
begin
  declare &quot;rv&quot; char(4);
  -- Speciality for AWR
  set &quot;rv&quot; = null;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_essentialskilldescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EssentialSkillDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_essentialskilldescription&amp;rev=1786130660</link>
        <description>﻿

pears.EssentialSkillDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EssentialSkillDescription&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;essentialskill&quot; char(15),in &quot;essentialskillchoicelist&quot; char(100),in &quot;departmentid&quot; char(2) ) 
returns char(200)
begin
  declare &quot;rv&quot; char(200);
  declare &quot;tagdesc&quot; char(25);
  declare &quot;tloc…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_essentialskillgradedescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.EssentialSkillGradeDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_essentialskillgradedescription&amp;rev=1786130660</link>
        <description>﻿

pears.EssentialSkillGradeDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;EssentialSkillGradeDescription&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;essentialskill&quot; char(15),in &quot;essentialskillgradeid&quot; char(4),in &quot;departmentid&quot; char(2) ) 
returns char(200)
begin
  declare &quot;rv&quot; char(200);
  declare &quot;tloc&quot; char(3);
  declare &quot;tid…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_expiryalertextra&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ExpiryAlertExtra</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_expiryalertextra&amp;rev=1786130660</link>
        <description>﻿

pears.ExpiryAlertExtra

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ExpiryAlertExtra&quot;( 
  in &quot;persID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = null;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_firstword&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FirstWord</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_firstword&amp;rev=1786130660</link>
        <description>﻿

pears.FirstWord

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FirstWord&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sWords&quot; char(50) ) 
returns char(50)
begin
  declare &quot;i&quot; integer;
  set &quot;swords&quot; = &quot;trim&quot;(&quot;swords&quot;);
  set &quot;i&quot; = &quot;charindex&quot;(&#039; &#039;,&quot;swords&quot;);
  if &quot;i&quot; = 0 then
    return &quot;swords&quot;
  else
    return(&quot;left&quot;(&quot;swords&quot;,&quot;i&quot;-1))
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formataddress&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formataddress&amp;rev=1786130660</link>
        <description>﻿

pears.FormatAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatAddress&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;name&quot; char(100),in &quot;addr1&quot; char(50),in &quot;addr2&quot; char(50),in &quot;addr3&quot; char(50),in &quot;town&quot; char(50),in &quot;county&quot; char(50),in &quot;country&quot; char(50),in &quot;postcode&quot; char(50),
  in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) )  /*…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanyaddress&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatCompanyAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanyaddress&amp;rev=1786130660</link>
        <description>﻿

pears.FormatCompanyAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatCompanyAddress&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ReqCompanyID&quot; char(20),in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) ) 
returns long varchar
begin
  declare &quot;FormattedAddress&quot; char(300);
  set &quot;FormattedAddress&quot; = &quot;FormatCompanyAddress1_0&quot;(&quot;ReqCompa…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanyaddress1_0&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatCompanyAddress1_0</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanyaddress1_0&amp;rev=1786130660</link>
        <description>﻿

pears.FormatCompanyAddress1_0

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatCompanyAddress1_0&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqcompanyid&quot; char(20),in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) ) 
returns char(300)
begin
  declare &quot;FormattedAddress&quot; char(300);
  declare &quot;addr1&quot; char(40);
  declare &quot;addr2&quot; char(40);
  d…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanypersonaddress&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatCompanyPersonAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatcompanypersonaddress&amp;rev=1786130660</link>
        <description>﻿

pears.FormatCompanyPersonAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatCompanyPersonAddress&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ReqEmploymentID&quot; char(20),in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) ) 
returns char(400)
begin
  declare &quot;FormattedAddress&quot; char(400);
  declare &quot;IncPosition&quot; smallint;
  declare &quot;IncDe…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatpersonaddress&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatPersonAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatpersonaddress&amp;rev=1786130660</link>
        <description>﻿

pears.FormatPersonAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatPersonAddress&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ReqPersonID&quot; char(20),in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) ) 
returns long varchar
begin
  declare &quot;FormattedAddress&quot; char(300);
  set &quot;FormattedAddress&quot; = &quot;FormatPersonAddress1_0&quot;(&quot;ReqPersonID&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatpersonaddress1_0&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatPersonAddress1_0</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatpersonaddress1_0&amp;rev=1786130660</link>
        <description>﻿

pears.FormatPersonAddress1_0

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatPersonAddress1_0&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqpersonid&quot; char(20),in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) ) 
returns char(300)
begin
  declare &quot;FormattedAddress&quot; char(300);
  declare &quot;addr1&quot; char(40);
  declare &quot;addr2&quot; char(40);
  decl…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatselfbilladdress&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatSelfBillAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatselfbilladdress&amp;rev=1786130660</link>
        <description>﻿

pears.FormatSelfBillAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatSelfBillAddress&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqAccountCode&quot; char(20),in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) ) 
returns char(300)
begin
  declare &quot;FormattedAddress&quot; char(300);
  declare &quot;addr1&quot; char(40);
  declare &quot;addr2&quot; char(40);
  dec…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatsiteaddress&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.FormatSiteAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_formatsiteaddress&amp;rev=1786130660</link>
        <description>﻿

pears.FormatSiteAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;FormatSiteAddress&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqVacancyid&quot; char(20),in &quot;Capitalise&quot; smallint,in &quot;Style&quot; char(1) ) 
returns char(300)
begin
  declare &quot;FormattedAddress&quot; char(380);
  declare &quot;addr1&quot; char(40);
  declare &quot;addr2&quot; char(40);
  declare &quot;addr…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_generatekeyname&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GenerateKeyname</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_generatekeyname&amp;rev=1786130660</link>
        <description>﻿

pears.GenerateKeyname

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GenerateKeyname&quot;( in &quot;x&quot; char(100) ) 
returns char(100)
begin
  declare &quot;w1&quot; char(100);
  declare &quot;wn&quot; char(100);
  declare &quot;c&quot; char(1);
  declare &quot;i&quot; integer;
  set &quot;x&quot; = &quot;trim&quot;(&quot;x&quot;);
  set &quot;i&quot; = &quot;charindex&quot;(&quot;char&quot;(32),&quot;x&quot;);
  if &quot;i&quot; &gt; 0 then
    set &quot;w1&quot; = &quot;left&quot;(&quot;x&quot;,&quot;i&quot;-1);
    if &quot;w1&quot; in( &#039;mr&#039;,…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_generatewebdialurl&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GenerateWEBDialURL</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_generatewebdialurl&amp;rev=1786130660</link>
        <description>﻿

pears.GenerateWEBDialURL

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GenerateWEBDialURL&quot;( in &quot;number&quot; char(100) ) 
returns long varchar
begin
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getbrand&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetBrand</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getbrand&amp;rev=1786130660</link>
        <description>﻿

pears.GetBrand

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetBrand&quot;( in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;ClientOrTemp&quot; char(1),in &quot;Use&quot; char(20) ) 
returns char(2)
begin
  declare &quot;RVal&quot; char(2);
  if &quot;Use&quot; = &#039;NOTIFY&#039; then
    -- ClientOrTemp C - client T - temp
  end if;
  -- return visibleID of brand
  return &quot;RVal&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcascadetime&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetCascadeTime</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcascadetime&amp;rev=1786130660</link>
        <description>﻿

pears.GetCascadeTime

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetCascadeTime&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;compid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;entrytime&quot; timestamp,in &quot;shifttime&quot; timestamp,in &quot;casctime&quot; timestamp,in &quot;requestlevel&quot; smallint ) 
returns timestamp
begin
  declare &quot;rv&quot; timestamp;
  declare &quot;frm&quot; char…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanyaddressonline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetCompanyAddressOnLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanyaddressonline&amp;rev=1786130660</link>
        <description>﻿

pears.GetCompanyAddressOnLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetCompanyAddressOnLine&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqcompanyid&quot; char(20) ) 
returns char(250)
begin
  declare &quot;AddressOnLine&quot; char(250);
  declare &quot;addr1&quot; char(40);
  declare &quot;addr2&quot; char(40);
  declare &quot;addr3&quot; char(40);
  declare &quot;town&quot; char(…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanygroup&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetCompanyGroup</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanygroup&amp;rev=1786130660</link>
        <description>﻿

pears.GetCompanyGroup

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetCompanyGroup&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;coid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;res&quot; long varchar;
  declare &quot;pid&quot; char(20);
  declare &quot;I&quot; integer;
  set &quot;I&quot; = 1;
  select &quot;GetCompanyMainParent&quot;(&quot;coid&quot;) into &quot;pid&quot;;
  if &quot;pid&quot; is not …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanygrouphead&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetCompanyGroupHead</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanygrouphead&amp;rev=1786130660</link>
        <description>﻿

pears.GetCompanyGroupHead

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetCompanyGroupHead&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;CompID&quot; char(20) ) 
returns char(20)
begin
  declare &quot;coid&quot; char(20);
  declare &quot;oldcoid&quot; char(20);
  declare &quot;lc&quot; integer;
  select &quot;parentcompanyid&quot; into &quot;coid&quot; from &quot;company&quot; where &quot;companyid&quot; = &quot;co…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanymainparent&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetCompanyMainParent</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanymainparent&amp;rev=1786130660</link>
        <description>﻿

pears.GetCompanyMainParent

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetCompanyMainParent&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;CompID&quot; char(20) ) 
returns char(20)
begin
  declare &quot;coid&quot; char(20);
  declare &quot;oldcoid&quot; char(20);
  declare &quot;lc&quot; integer;
  select &quot;parentcompanyid&quot; into &quot;coid&quot; from &quot;company&quot; where &quot;companyid&quot; = &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanyphoneinblock&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetCompanyPhoneInBlock</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcompanyphoneinblock&amp;rev=1786130660</link>
        <description>﻿

pears.GetCompanyPhoneInBlock

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetCompanyPhoneInBlock&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqcompanyid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;phones&quot; long varchar;
  declare &quot;newline&quot; char(2);
  declare &quot;loopcounter&quot; tinyint;
  declare &quot;tab&quot; char(1);
  declare &quot;TabString&quot; …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcontacteventcaption&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetContactEventCaption</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcontacteventcaption&amp;rev=1786130660</link>
        <description>﻿

pears.GetContactEventCaption

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetContactEventCaption&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @ContactEventID char(20) ) 
returns char(250)
begin
  declare @Caption char(250);
  declare @PersonID char(20);
  declare @VacancyID char(20);
  declare @PlacementID char(20);
  declare @ProgressI…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcontactposition&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.getcontactposition</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getcontactposition&amp;rev=1786130660</link>
        <description>﻿

pears.getcontactposition

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;getcontactposition&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;svacancyid&quot; char(20),in &quot;sprogressid&quot; char(20),in &quot;splacementid&quot; char(20) ) 
returns char(50)
begin
  declare &quot;rv&quot; char(50);
  if &quot;svacancyid&quot; is not null then
    select &quot;position&quot; into &quot;rv&quot; from &quot;vacan…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getdatabaseserverinfo&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetDatabaseServerInfo</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getdatabaseserverinfo&amp;rev=1786130660</link>
        <description>﻿

pears.GetDatabaseServerInfo

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetDatabaseServerInfo&quot;()
returns long varchar
/* Application Maintained Function / Procedure - DO NOT EDIT*/
begin
  declare &quot;FileName&quot; char(200);
  declare &quot;rv&quot; long varchar;
  declare @Platform char(100);
  set @Platform = (select &quot;property&quot;(&#039;platform&#039;));
  if @Platform like &#039;%UNIX%&#039; or @Pl…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getemployeephoneinblock&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetEmployeePhoneInBlock</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getemployeephoneinblock&amp;rev=1786130660</link>
        <description>﻿

pears.GetEmployeePhoneInBlock

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetEmployeePhoneInBlock&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqemploymentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;phones&quot; long varchar;
  declare &quot;newline&quot; char(2);
  declare &quot;loopcounter&quot; tinyint;
  declare &quot;tab&quot; char(1);
  declare &quot;TabStr…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getextrarate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetExtraRate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getextrarate&amp;rev=1786130660</link>
        <description>﻿

pears.GetExtraRate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetExtraRate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pExtraRateNumber&quot; smallint,in &quot;pPlacOrVac&quot; char(1),in &quot;pID&quot; char(20),in &quot;pBandID&quot; char(20),in &quot;pEffectiveDate&quot; date,in &quot;pGrade&quot; char(4),in &quot;pFilter1&quot; char(4),in &quot;pFilter2&quot; char(4),in &quot;pFilter3&quot; char(4) ) 
returns do…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getholidayyear&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetHolidayYear</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getholidayyear&amp;rev=1786130660</link>
        <description>﻿

pears.GetHolidayYear

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetHolidayYear&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;startdate&quot; date,in &quot;calcdate&quot; date ) 
returns date
begin
  /*More than a year ago?*/
  &quot;SetCurrentYear&quot;: loop
    if &quot;days&quot;(&quot;startdate&quot;,&quot;calcdate&quot;) &gt;= 365 then
      set &quot;startdate&quot; = &quot;years&quot;(&quot;startdate&quot;,1)
    …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getinvoicecompanyid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetInvoiceCompanyID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getinvoicecompanyid&amp;rev=1786130660</link>
        <description>﻿

pears.GetInvoiceCompanyID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetInvoiceCompanyID&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sclientcode&quot; char(12) ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  select first &quot;companyid&quot; into &quot;rv&quot; from &quot;company&quot; where &quot;sclientcode&quot; is not null and &quot;clientcode&quot; = &quot;sclientcode&quot; order by &quot;i…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getinvoicepdf&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetInvoicePDF</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getinvoicepdf&amp;rev=1786130660</link>
        <description>﻿

pears.GetInvoicePDF

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetInvoicePDF&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @InvoiceNumber char(20),in @DocumentID char(20) ) 
returns long varchar
begin
  declare @rootpath char(250);
  declare @AccountCode char(12);
  declare @InvoiceDate date;
  if &quot;isnull&quot;(@InvoiceNumber,&#039;&#039;) = &#039;&#039; and &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getkeyshiftplanstate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetKeyShiftPlanState</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getkeyshiftplanstate&amp;rev=1786130660</link>
        <description>﻿

pears.GetKeyShiftPlanState

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetKeyShiftPlanState&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sid&quot; char(20),in &quot;ddate&quot; date,in &quot;bperson&quot; smallint ) 
returns char(21)
begin
  declare &quot;rv&quot; char(21);
  if &quot;bperson&quot; = 1 then
    return null
  else
    set &quot;rv&quot;
       = &quot;isnull&quot;(
      (select fir…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getkeyshiftstate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetKeyShiftState</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getkeyshiftstate&amp;rev=1786130660</link>
        <description>﻿

pears.GetKeyShiftState

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetKeyShiftState&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sid&quot; char(20),in &quot;ddate&quot; date,in &quot;bperson&quot; smallint ) 
returns char(21)
begin
  declare &quot;rv&quot; char(21);
  declare &quot;id&quot; char(20);
  declare &quot;empid&quot; char(20);
  declare &quot;so&quot; smallint;
  declare &quot;wrkd&quot; smallint;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.getline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getline&amp;rev=1786130660</link>
        <description>﻿

pears.getline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;getline&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s1&quot; long varchar,in &quot;ln1&quot; smallint ) 
returns long varchar
begin
  declare &quot;i&quot; smallint;
  declare &quot;ln&quot; smallint;
  declare &quot;s&quot; long varchar;
  set &quot;ln&quot; = &quot;ln1&quot;;
  set &quot;s&quot; = &quot;s1&quot;;
  &quot;loop1&quot;: loop
    set &quot;ln&quot; = &quot;ln&quot;-1;
    if…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getminwage&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetMinWage</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getminwage&amp;rev=1786130660</link>
        <description>﻿

pears.GetMinWage

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetMinWage&quot;( in &quot;persid&quot; char(20),in @period integer ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;myage&quot; integer;
  set &quot;rv&quot; = 0;
  select &quot;truncnum&quot;(&quot;datediff&quot;(&quot;day&quot;,&quot;dob&quot;,&quot;weekmonthenddate&quot;(@period,&#039;W&#039;))/365.25,0) into &quot;myage&quot; from &quot;person&quot; where &quot;personid&quot; = &quot;persid&quot;;
  if &quot;isnull&quot;(&quot;GetQ…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getnotifybehaviour&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetNotifyBehaviour</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getnotifybehaviour&amp;rev=1786130660</link>
        <description>﻿

pears.GetNotifyBehaviour

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetNotifyBehaviour&quot;( in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;ClientOrTemp&quot; char(1) ) 
returns char(10)
begin
  declare &quot;RVal&quot; char(10);
  -- return values set of E - email P - print S - SMS
  -- blank/null do nothing
  -- ClientOrTemp C - client T - temp
  return &quot;RVal&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getnotifyclientemail&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetNotifyClientEmail</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getnotifyclientemail&amp;rev=1786130660</link>
        <description>﻿

pears.GetNotifyClientEmail

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetNotifyClientEmail&quot;( in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RVal&quot; long varchar;
  -- 1/more email address, can be edited later if switch on 
  return &quot;RVal&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpayorcharge&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPayOrCharge</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpayorcharge&amp;rev=1786130660</link>
        <description>﻿

pears.GetPayOrCharge

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPayOrCharge&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;PayOrCharge&quot; char(1),in &quot;PlacOrVac&quot; char(1),in &quot;ID&quot; char(20) ) 
returns char(20)
begin
  declare &quot;pay&quot; double;
  declare &quot;istemp&quot; smallint;
  if &quot;placorvac&quot; = &#039;P&#039; then
    select &quot;isnull&quot;(&quot;temp&quot;,0),&quot;salary&quot; into…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonaddressonline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPersonAddressOnLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonaddressonline&amp;rev=1786130660</link>
        <description>﻿

pears.GetPersonAddressOnLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPersonAddressOnLine&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqpersonid&quot; char(20) ) 
returns char(250)
begin
  declare &quot;AddressOnLine&quot; char(250);
  declare &quot;addr1&quot; char(40);
  declare &quot;addr2&quot; char(40);
  declare &quot;addr3&quot; char(40);
  declare &quot;town&quot; char(30)…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonavailpercentage&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPersonAvailPercentage</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonavailpercentage&amp;rev=1786130660</link>
        <description>﻿

pears.GetPersonAvailPercentage

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPersonAvailPercentage&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sid&quot; char(20),in &quot;frdate&quot; date,in &quot;todate&quot; date ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;bonly&quot; smallint;
  declare &quot;cavail&quot; char(1);
  declare &quot;ndays&quot; double;
  declare &quot;nav…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonavailstate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPersonAvailState</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonavailstate&amp;rev=1786130660</link>
        <description>﻿

pears.GetPersonAvailState

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPersonAvailState&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sid&quot; char(20),in &quot;ddate&quot; date ) 
returns char(1)
begin
  declare &quot;rv&quot; char(1);
  declare &quot;empid&quot; char(20);
  declare &quot;so&quot; smallint;
  declare &quot;dw&quot; smallint;
  declare &quot;Temp&quot; tinyint;
  declare &quot;Wsun&quot; t…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonemploymenthistory&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPersonEmploymentHistory</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonemploymenthistory&amp;rev=1786130660</link>
        <description>﻿

pears.GetPersonEmploymentHistory

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPersonEmploymentHistory&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;InPersonID&quot; char(20),in &quot;Word&quot; char(3) ) 
returns long varchar
begin
  declare &quot;EmploymentHistory&quot; long varchar;
  declare &quot;Tab&quot; char(1);
  declare &quot;NewLine&quot; char(2);
  declare &quot;LoopCount…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonphoneinblock&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPersonPhoneInBlock</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpersonphoneinblock&amp;rev=1786130660</link>
        <description>﻿

pears.GetPersonPhoneInBlock

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPersonPhoneInBlock&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;reqpersonid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;phones&quot; long varchar;
  declare &quot;newline&quot; char(2);
  declare &quot;loopcounter&quot; tinyint;
  declare &quot;tab&quot; char(1);
  declare &quot;TabString&quot; cha…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getphone&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPhone</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getphone&amp;rev=1786130660</link>
        <description>﻿

pears.GetPhone

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPhone&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;cpe&quot; char(2),in &quot;ptype&quot; char(25),in &quot;recid&quot; char(20) ) 
returns char(250)
begin
  declare &quot;rv&quot; char(250);
  select &quot;list&quot;(&quot;phone&quot;.&quot;number&quot;,&#039;; &#039;) into &quot;rv&quot; from &quot;phone&quot; key join &quot;phonetype&quot; where &quot;phone&quot;.&quot;whoid&quot; = &quot;recid&quot;
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getplacementid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPlacementID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getplacementid&amp;rev=1786130660</link>
        <description>﻿

pears.GetPlacementID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPlacementID&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20) ) 
returns char(20)
begin
  for &quot;forlab&quot; as &quot;curs&quot; dynamic scroll cursor for
    select &quot;placement&quot;.&quot;placementid&quot; from &quot;placement&quot; key join &quot;employment&quot;
      where &quot;placemen…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getplacementtheirref&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPlacementTheirRef</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getplacementtheirref&amp;rev=1786130660</link>
        <description>﻿

pears.GetPlacementTheirRef

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPlacementTheirRef&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20) ) 
returns char(50)
begin
  declare &quot;rv&quot; char(50);
  set &quot;rv&quot; = null;
  &quot;forstat&quot;: for &quot;forlab&quot; as &quot;curs&quot; no scroll cursor for
    select &quot;placement&quot;.&quot;theirref&quot; f…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpropertiestext&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetPropertiesText</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getpropertiestext&amp;rev=1786130660</link>
        <description>﻿

pears.GetPropertiesText

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetPropertiesText&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;PropertyType&quot; char(1),in &quot;HeaderText&quot; long varchar,in &quot;ConID&quot; integer ) 
returns long varchar
begin
  -- PropertyType - C for connection (requires connectionid), D for database, E for engine / server, W en…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswer&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestAnswer</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswer&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestAnswer

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestAnswer&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tagloc&quot; char(3),in &quot;tagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;i&quot; integer;
  set &quot;rv&quot; = &quot;getquesttext&quot;(&quot;tagloc&quot;,&quot;tagid&quot;,&quot;parentid&quot;);
  if &quot;rv&quot; is …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswerlong&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestAnswerLong</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswerlong&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestAnswerLong

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestAnswerLong&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tagloc&quot; char(3),in &quot;tagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;i&quot; integer;
  set &quot;rv&quot; = &quot;getquesttextLong&quot;(&quot;tagloc&quot;,&quot;tagid&quot;,&quot;parentid&quot;);
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswernull&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestAnswerNull</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestanswernull&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestAnswerNull

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestAnswerNull&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tagloc&quot; char(3),in &quot;tagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns long varchar
begin
  return &quot;nullif&quot;(&quot;trim&quot;(&quot;getquestanswer&quot;(&quot;tagloc&quot;,&quot;tagid&quot;,&quot;parentid&quot;)),&#039;&#039;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestdate&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestDate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(3),in &quot;sparentid&quot; char(20) ) 
returns date
begin
  declare &quot;rv&quot; date;
  declare &quot;tagval&quot; double;
  set &quot;rv&quot; = null;
  select &quot;max&quot;(&quot;value&quot;) into &quot;tagval&quot; from &quot;tagvalue&quot; where &quot;tagl…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestgroup&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestGroup</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestgroup&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestGroup

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestGroup&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(10),in &quot;sparentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;prevtag&quot; char(3);
  declare &quot;multidesc&quot; long varchar;
  declare &quot;comma&quot; char(2);
…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestlongwebtext&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestLongWebText</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestlongwebtext&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestLongWebText

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestLongWebText&quot;( in &quot;tagloc&quot; char(3),in &quot;wildtagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;tagval&quot; double;
  declare &quot;textval&quot; long varchar;
  declare &quot;x&quot; char(4);
  declare &quot;y&quot; integer;
  declare &quot;xunits&quot; char(11);
  declare &quot;x…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestmultiselection&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestMultiSelection</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestmultiselection&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestMultiSelection

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestMultiSelection&quot;( in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(3),in &quot;sparentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  for &quot;fetchfor&quot; as &quot;fetchcursor&quot; dynamic scroll cursor for
    select &quot;string&quot;(&quot;tagvalue&quot;.&quot;tagchoiceid&quot;,&quot;char&quot;(9),&quot;tagvalue&quot;.…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestnumber&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestNumber</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestnumber&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestNumber

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestNumber&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(3),in &quot;sparentid&quot; char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;tagval&quot; double;
  set &quot;rv&quot; = null;
  select &quot;max&quot;(&quot;value&quot;) into &quot;tagval&quot; from &quot;tagvalue&quot; whe…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingleselection&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestSingleSelection</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingleselection&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestSingleSelection

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestSingleSelection&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(3),in &quot;sparentid&quot; char(20) ) 
returns char(4)
begin
  declare &quot;rv&quot; char(4);
  set &quot;rv&quot; = null;
  select &quot;max&quot;(&quot;tagchoiceid&quot;) into &quot;rv&quot; from &quot;tagvalue&quot; where &quot;t…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingletext&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestSingleText</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingletext&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestSingleText

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestSingleText&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(3),in &quot;sparentid&quot; char(20) ) 
returns char(255)
begin
  declare &quot;rv&quot; char(255);
  set &quot;rv&quot; = null;
  select first &quot;textvalue&quot; into &quot;rv&quot; from &quot;tagvalue&quot; where &quot;taglocatio…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingletextplus&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestSingleTextPlus</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsingletextplus&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestSingleTextPlus

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestSingleTextPlus&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(3),in &quot;sparentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = null;
  select first &quot;textvalue&quot; into &quot;rv&quot; from &quot;tagvalue&quot; whe…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getqueststring&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestString</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getqueststring&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestString

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestString&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tagloc&quot; char(3),in &quot;tagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns char(255)
begin
  return &quot;GetQuestAnswer&quot;(&quot;tagloc&quot;,&quot;tagid&quot;,&quot;parentid&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsubmenuselection&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestSubMenuSelection</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquestsubmenuselection&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestSubMenuSelection

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestSubMenuSelection&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stagloc&quot; char(3),in &quot;stagid&quot; char(3),in &quot;sparentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  for &quot;fetchfor&quot; as &quot;fetchcursor&quot; dynamic scroll curso…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquesttext&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestText</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquesttext&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestText

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestText&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tagloc&quot; char(3),in &quot;wildtagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;tagval&quot; double;
  declare &quot;textval&quot; long varchar;
  declare &quot;x&quot; char(4);
  declare …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquesttextlong&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetQuestTextLong</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getquesttextlong&amp;rev=1786130660</link>
        <description>﻿

pears.GetQuestTextLong

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetQuestTextLong&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tagloc&quot; char(3),in &quot;wildtagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;tagval&quot; double;
  declare &quot;textval&quot; long varchar;
  declare &quot;x&quot; char(4);
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftbookeddescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetShiftBookedDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftbookeddescription&amp;rev=1786130660</link>
        <description>﻿

pears.GetShiftBookedDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetShiftBookedDescription&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;vid&quot; char(20),in &quot;pid&quot; char(20),in &quot;edate&quot; date ) 
returns char(250)
begin
  declare &quot;rv&quot; char(250);
  for &quot;fetchfor&quot; as &quot;fetchcursor&quot; no scroll cursor for
    select &quot;string&quot;(&quot;GetTempName&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftindicatorcolour&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetShiftIndicatorColour</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftindicatorcolour&amp;rev=1786130660</link>
        <description>﻿

pears.GetShiftIndicatorColour

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetShiftIndicatorColour&quot;( 
  in &quot;sid&quot; char(20),in &quot;ddate&quot; date ) 
returns integer
begin
  -- Return 0 to indicate that colour choice is to be ignored
  return 0
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftlength&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetShiftLength</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftlength&amp;rev=1786130660</link>
        <description>﻿

pears.GetShiftLength

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetShiftLength&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @TimeFrom time,in @TimeTo time,
  in @BreakMinutes smallint default 0 ) 
returns double
begin
  declare &quot;ShiftLength&quot; double;
  if @TimeTo &gt; @TimeFrom then
    set &quot;ShiftLength&quot; = (cast(&quot;datediff&quot;(&quot;minute&quot;,@TimeF…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatebookeddescriptionplus&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetShiftStateBookedDescriptionPlus</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatebookeddescriptionplus&amp;rev=1786130660</link>
        <description>﻿

pears.GetShiftStateBookedDescriptionPlus

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetShiftStateBookedDescriptionPlus&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sid&quot; char(20),in &quot;pid&quot; char(20),in &quot;ddate&quot; date ) 
returns char(70)
begin
  declare &quot;rv&quot; char(70);
  declare &quot;s1&quot; char(1);
  declare &quot;p1&quot; smallint;
  declare &quot;px&quot; smallint…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatedescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetShiftStateDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatedescription&amp;rev=1786130660</link>
        <description>﻿

pears.GetShiftStateDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetShiftStateDescription&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sid&quot; char(20),in &quot;ddate&quot; date,in &quot;bperson&quot; smallint ) 
returns char(70)
begin
  declare &quot;rv&quot; char(70);
  declare &quot;t&quot; char(70);
  declare &quot;tt&quot; char(70);
  declare &quot;s&quot; char(20);
  declare &quot;s1&quot; …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatedescriptionplus&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetShiftStateDescriptionPlus</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getshiftstatedescriptionplus&amp;rev=1786130660</link>
        <description>﻿

pears.GetShiftStateDescriptionPlus

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetShiftStateDescriptionPlus&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sid&quot; char(20),in &quot;ddate&quot; date ) 
returns char(70)
begin
  declare &quot;rv&quot; char(70);
  declare &quot;s1&quot; char(1);
  declare &quot;p1&quot; smallint;
  declare &quot;px&quot; smallint;
  declare &quot;punf&quot; smallint;
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempawrrate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempAWRRate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempawrrate&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempAWRRate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempAWRRate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;PayOrCharge&quot; char(1),in &quot;PlacOrVac&quot; char(1),in &quot;ID&quot; char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;pvacid&quot; char(20);
  declare &quot;ppersid&quot; char(20);
  declare &quot;pplacid&quot; char(20);
  declare &quot;pjo…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempmargin&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempMargin</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempmargin&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempMargin

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempMargin&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;chargerate&quot; double,in &quot;payrate&quot; double,in &quot;temp&quot; smallint,in &quot;taxmethod&quot; smallint,in &quot;directengagement&quot; smallint,
  in &quot;actualNotPercent&quot; smallint,in &quot;holpayPercent&quot; double,in &quot;NIPercent&quot; double,in &quot;NIonHolpay&quot; sm…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempname&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempName</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempname&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempName

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempName&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;persid&quot; char(20) ) 
returns char(60)
begin
  declare &quot;rv&quot; char(60);
  select &quot;string&quot;(if exists(select * from &quot;wpkglobalswitchsetting&quot; where &quot;wpkglobalswitchid&quot; = &#039;USEFULLNAME&#039; and &quot;location&quot; = &#039;Global&#039; and &quot;value&quot; = …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettemprate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempRate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettemprate&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempRate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempRate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;PayOrCharge&quot; char(1),in &quot;PlacOrVac&quot; char(1),in &quot;ID&quot; char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;pvacid&quot; char(20);
  declare &quot;ppersid&quot; char(20);
  declare &quot;pplacid&quot; char(20);
  declare &quot;pjobtypei…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratebydesc&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempRateByDesc</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratebydesc&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempRateByDesc

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempRateByDesc&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;PayOrCharge&quot; char(1),in &quot;PlacOrVac&quot; char(1),in &quot;ID&quot; char(20),in &quot;descrp&quot; char(50),in @awr tinyint,in @grade char(4),in @ltd char(4) ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;pvacid&quot; char(20…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratebyflag&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempRateByFlag</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratebyflag&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempRateByFlag

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempRateByFlag&quot;( in &quot;PayOrCharge&quot; char(1),in &quot;PlacOrVac&quot; char(1),in &quot;ID&quot; char(20),in &quot;flag&quot; char(20) ) 
returns double
begin
  declare &quot;pay&quot; double;
  declare &quot;chg&quot; double;
  declare &quot;disc&quot; double;
  declare &quot;bandid&quot; char(20);
  declare &quot;vid&quot; char(20);
  set &quot;vid&quot; = &quot;id&quot;;
  set &quot;pay&quot; = null;
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratecustom&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempRateCustom</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettempratecustom&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempRateCustom

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempRateCustom&quot;( 
  in &quot;PayOrCharge&quot; char(1),in &quot;PlacOrVac&quot; char(1),in &quot;ID&quot; char(20) ) 
returns double
begin
  return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettemprateextra&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTempRateExtra</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettemprateextra&amp;rev=1786130660</link>
        <description>﻿

pears.GetTempRateExtra

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTempRateExtra&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;FName&quot; char(20),in &quot;PlacOrVac&quot; char(1),in &quot;ID&quot; char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;pvacid&quot; char(20);
  declare &quot;ppersid&quot; char(20);
  declare &quot;pplacid&quot; char(20);
  declare &quot;pjob…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettextfromhtml&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTextFromHTML</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettextfromhtml&amp;rev=1786130660</link>
        <description>﻿

pears.GetTextFromHTML

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTextFromHTML&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;htmlText&quot; long varchar ) 
returns long varchar
begin
  declare &quot;plainText&quot; long varchar;
  declare &quot;tagStart&quot; integer;
  declare &quot;tagEnd&quot; integer;
  declare &quot;tagLength&quot; integer;
  declare &quot;tagType&quot; char(20);
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettimesheetdescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetTimeSheetDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_gettimesheetdescription&amp;rev=1786130660</link>
        <description>﻿

pears.GetTimeSheetDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetTimeSheetDescription&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;usesecags&quot; tinyint,in &quot;persid&quot; char(20),in &quot;secagid&quot; char(20),in &quot;sdescrip&quot; long varchar ) 
returns long varchar
begin
  if &quot;isnull&quot;(&quot;usesecags&quot;,0) = 0 or &quot;persid&quot; is null then
    return &quot;isnu…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getvacancycascadetime&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetVacancyCascadeTime</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getvacancycascadetime&amp;rev=1786130660</link>
        <description>﻿

pears.GetVacancyCascadeTime

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetVacancyCascadeTime&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;compid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;entrytime&quot; timestamp,in &quot;starttime&quot; timestamp,in &quot;casctime&quot; timestamp,in &quot;requestlevel&quot; smallint ) 
returns timestamp
begin
  declare &quot;rv&quot; timestamp;
  decl…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getword&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.getword</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getword&amp;rev=1786130660</link>
        <description>﻿

pears.getword

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;getword&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s1&quot; long varchar,in &quot;ln1&quot; smallint ) 
returns char(200)
begin
  declare &quot;i&quot; smallint;
  declare &quot;ln&quot; smallint;
  declare &quot;s&quot; char(200);
  set &quot;ln&quot; = &quot;ln1&quot;;
  set &quot;s&quot; = &quot;s1&quot;;
  &quot;loop1&quot;: loop
    set &quot;ln&quot; = &quot;ln&quot;-1;
    if &quot;ln&quot; …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getwordex&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.getwordex</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getwordex&amp;rev=1786130660</link>
        <description>﻿

pears.getwordex

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;getwordex&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s1&quot; long varchar,in &quot;ln1&quot; smallint,in &quot;sep&quot; char(10) ) 
returns char(200)
begin
  declare &quot;i&quot; smallint;
  declare &quot;ln&quot; smallint;
  declare &quot;s&quot; char(200);
  set &quot;ln&quot; = &quot;ln1&quot;;
  set &quot;s&quot; = &quot;s1&quot;;
  &quot;loop1&quot;: loop
    set &quot;ln&quot; …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getworkpatternweeklyhours&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GetWorkPatternWeeklyHours</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_getworkpatternweeklyhours&amp;rev=1786130660</link>
        <description>﻿

pears.GetWorkPatternWeeklyHours

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GetWorkPatternWeeklyHours&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;placid&quot; char(20),in &quot;pstartdate&quot; date,in &quot;penddate&quot; date ) 
returns double
begin
  declare &quot;Absense&quot; integer;
  declare &quot;Hours&quot; double;
  declare &quot;Days&quot; integer;
  declare &quot;WeekHours&quot; doubl…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_globaldocumentselect&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GlobalDocumentSelect</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_globaldocumentselect&amp;rev=1786130660</link>
        <description>﻿

pears.GlobalDocumentSelect

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GlobalDocumentSelect&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pDescription&quot; char(50) default null,in &quot;pDocumentTypeID&quot; char(20) default null,in &quot;pAgencyID&quot; char(20) default null,in &quot;pDivisionID&quot; char(20) default null,
  in &quot;pDepartmentID&quot; char(2) default null,i…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_greatestdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.GreatestDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_greatestdate&amp;rev=1786130660</link>
        <description>﻿

pears.GreatestDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;GreatestDate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;Date1&quot; date,in &quot;Date2&quot; date ) 
returns date
begin
  set &quot;Date1&quot; = &quot;isnull&quot;(&quot;Date1&quot;,&quot;Date2&quot;);
  set &quot;Date2&quot; = &quot;isnull&quot;(&quot;Date2&quot;,&quot;Date1&quot;);
  if &quot;Date1&quot; &gt; &quot;Date2&quot; then return(&quot;Date1&quot;)
  else return(&quot;Date2&quot;)
  end if
end…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hashtoiqxid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.hashToIqxId</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hashtoiqxid&amp;rev=1786130660</link>
        <description>﻿

pears.hashToIqxId

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;hashToIqxId&quot;( 
  in &quot;source&quot; char(255) ) 
returns char(20)
deterministic
begin
  return &quot;upper&quot;(&quot;left&quot;(&quot;IQXDBID&quot;+&quot;hash&quot;(&quot;source&quot;),20))
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hexcriterionid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.HexCriterionID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hexcriterionid&amp;rev=1786130660</link>
        <description>﻿

pears.HexCriterionID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;HexCriterionID&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;CriterionID&quot; binary(20) ) 
returns char(40)
begin
  declare &quot;rv&quot; char(40);
  declare &quot;i&quot; smallint;
  set &quot;rv&quot; = &#039;&#039;;
  set &quot;i&quot; = 1;
  while &quot;i&quot; &lt;= &quot;byte_length&quot;(&quot;criterionid&quot;) loop
    set &quot;rv&quot; = &quot;rv&quot;+&quot;right&quot;(&quot;in…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hidefromcombo&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.HideFromCombo</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hidefromcombo&amp;rev=1786130660</link>
        <description>﻿

pears.HideFromCombo

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;HideFromCombo&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;combovis&quot; char(25) ) 
returns integer
begin
  declare &quot;staffcombovis&quot; char(25);
  declare &quot;i&quot; integer;
  declare &quot;c&quot; char(1);
  set &quot;combovis&quot; = &quot;trim&quot;(&quot;combovis&quot;);
  if &quot;isnull&quot;(&quot;combovis&quot;,&#039;&#039;) = &#039;&#039; then
    retur…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hmrc_checkpostcode&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.HMRC_CheckPostCode</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_hmrc_checkpostcode&amp;rev=1786130660</link>
        <description>﻿

pears.HMRC_CheckPostCode

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;HMRC_CheckPostCode&quot;( in @addr1 varchar(100) ) 
returns char(100)
begin
  declare @postcode char(30);
  declare @pos1 smallint;
  declare @pos2 smallint;
  declare @pos3 smallint;
  declare @pos4 smallint;
  declare @pos5 smallint;
  declare @pos6 smallint;
  declare @pos smallint;
  declare @len…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_insertdiary&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InsertDiary</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_insertdiary&amp;rev=1786130660</link>
        <description>﻿

pears.InsertDiary

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InsertDiary&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @StaffID char(20),in @DiaryFrom timestamp,in @DurationType char(1),in @Duration double,
  in @PopupMinutes smallint default null,in @WhoEntered char(20),
  in @PersonID char(20) default null,
  in @VacancyID char(20) d…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invbatchcomplete&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvBatchComplete</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invbatchcomplete&amp;rev=1786130660</link>
        <description>﻿

pears.InvBatchComplete

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvBatchComplete&quot;( in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  -- This function will block with no message;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invcomplete&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvComplete</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invcomplete&amp;rev=1786130660</link>
        <description>﻿

pears.InvComplete

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvComplete&quot;( in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  -- This function will block with no message;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invob10allowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvOB10Allowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invob10allowed&amp;rev=1786130660</link>
        <description>﻿

pears.InvOB10Allowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvOB10Allowed&quot;( in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  -- This function will block with no message;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invoicecustomcolumn&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvoiceCustomColumn</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invoicecustomcolumn&amp;rev=1786130660</link>
        <description>﻿

pears.InvoiceCustomColumn

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvoiceCustomColumn&quot;( 
  in &quot;RecordType&quot; char(2),in &quot;RecordID&quot; char(20),in &quot;ColNo&quot; tinyint ) 
returns char(100)
begin
  -- RecordType T=Timesheets, I=Invoice 
  -- RecordID=null means return column heading for RecordType T or I or null if custom column not wanted 
  -- RecordID=Temptimesheetid …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invoicefilenameinzip&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvoiceFilenameInZip</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invoicefilenameinzip&amp;rev=1786130660</link>
        <description>﻿

pears.InvoiceFilenameInZip

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvoiceFilenameInZip&quot;( 
  in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select &quot;string&quot;(&#039;Invoice_&#039;,&quot;ourref&quot;) into &quot;rv&quot; from &quot;iqacdocument&quot; where &quot;documentid&quot; = &quot;docid&quot;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invpdfallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvPDFAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invpdfallowed&amp;rev=1786130660</link>
        <description>﻿

pears.InvPDFAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvPDFAllowed&quot;( in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  -- This function will block with no message;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invpdfallowedwarning&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvPDFAllowedWarning</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invpdfallowedwarning&amp;rev=1786130660</link>
        <description>﻿

pears.InvPDFAllowedWarning

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvPDFAllowedWarning&quot;( 
  in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  -- This function can warn or block;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invsendallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvSendAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invsendallowed&amp;rev=1786130660</link>
        <description>﻿

pears.InvSendAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvSendAllowed&quot;( in &quot;docid&quot; char(20),in &quot;sendmethod&quot; char(1) ) 
returns long varchar
begin
  -- This function will block with no message;
  -- sendmethod E - email P - printer;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invsendallowedwarning&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.InvSendAllowedWarning</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_invsendallowedwarning&amp;rev=1786130660</link>
        <description>﻿

pears.InvSendAllowedWarning

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;InvSendAllowedWarning&quot;( 
  in &quot;docid&quot; char(20),in &quot;sendmethod&quot; char(1) ) 
returns long varchar
begin
  -- This function can warn or  block;
  -- sendmethod E - email P - printer;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacdocumentoutstandingamount&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQacDocumentOutstandingAmount</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacdocumentoutstandingamount&amp;rev=1786130660</link>
        <description>﻿

pears.IQacDocumentOutstandingAmount

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQacDocumentOutstandingAmount&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;DocID&quot; char(8),in &quot;CutoffDate&quot; date ) 
returns decimal(12,2)
begin
  declare &quot;rv&quot; decimal(12,2);
  declare &quot;amt&quot; decimal(12,2);
  declare &quot;fuldate&quot; date;
  set &quot;amt&quot; = 0.0;
  set &quot;r…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacjournaldescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQacJournalDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacjournaldescription&amp;rev=1786130660</link>
        <description>﻿

pears.IQacJournalDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQacJournalDescription&quot;( in &quot;DocID&quot; char(8),in &quot;LineNo&quot; smallint ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select first &quot;description&quot; into &quot;rv&quot; from &quot;iqacjournal&quot; where &quot;documentid&quot; = &quot;docid&quot; and &quot;linenumber&quot; = &quot;lineno&quot;;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacjournaloutstandingamount&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQacJournalOutstandingAmount</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqacjournaloutstandingamount&amp;rev=1786130660</link>
        <description>﻿

pears.IQacJournalOutstandingAmount

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQacJournalOutstandingAmount&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;DocID&quot; char(8),in &quot;LineNo&quot; smallint ) 
returns decimal(12,2)
begin
  declare &quot;rv&quot; decimal(12,2);
  declare &quot;amt&quot; decimal(12,2);
  set &quot;amt&quot; = 0.0;
  set &quot;rv&quot; = 0.0;
  // Only makes se…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqmoneynumeric&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.iqmoneynumeric</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqmoneynumeric&amp;rev=1786130660</link>
        <description>﻿

pears.iqmoneynumeric

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;iqmoneynumeric&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;val&quot; numeric ) 
returns numeric
begin
  declare &quot;c&quot; numeric;
  declare &quot;neg&quot; tinyint;
  set &quot;neg&quot; = 0;
  if &quot;val&quot; &lt; 0 then
    set &quot;neg&quot; = 1
  end if;
  set &quot;c&quot; = (&quot;truncate&quot;(&quot;abs&quot;(&quot;val&quot;*1000)+.5,0)/1000);
  if …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqmoneyround&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.iqmoneyround</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqmoneyround&amp;rev=1786130660</link>
        <description>﻿

pears.iqmoneyround

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;iqmoneyround&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;val&quot; numeric ) 
returns numeric
begin
  declare &quot;c&quot; numeric;
  declare &quot;neg&quot; tinyint;
  set &quot;neg&quot; = 0;
  if &quot;val&quot; &lt; 0 then
    set &quot;neg&quot; = 1
  end if;
  set &quot;c&quot; = (&quot;truncate&quot;(&quot;abs&quot;(&quot;val&quot;*1000)+.5,0)/1000);
  if &quot;neg…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetallowed&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetAllowed&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ProcName&quot; char(100),in &quot;AllowedProcs&quot; long varchar ) 
returns tinyint
begin
  declare &quot;i&quot; integer;
  declare &quot;s&quot; char(100);
  set &quot;i&quot; = 1;
  loop
    set &quot;s&quot; = &quot;isnull&quot;(&quot;trim&quot;(&quot;getline&quot;(&quot;AllowedProcs&quot;,&quot;i&quot;)),&#039;&#039;);
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetauth2&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetAuth2</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetauth2&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetAuth2

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetAuth2&quot;( 
  in &quot;pWebUserID&quot; char(20),in &quot;pSessionID&quot; char(20),in &quot;pPhase&quot; char(20),in &quot;pProcType&quot; char(1),in &quot;pProcName&quot; char(100),in &quot;pParams&quot; long varchar,in &quot;pLicensedUserCount&quot; integer default 0 ) 
returns long varchar
begin
  return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetcompanystartdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetCompanyStartDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetcompanystartdate&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetCompanyStartDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetCompanyStartDate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pCompanyID&quot; char(20) ) 
returns date
begin
  declare &quot;nrv&quot; double;
  set &quot;nrv&quot; = null;
  select first &quot;value&quot; into &quot;nrv&quot; from &quot;tagvalue&quot; where &quot;taglocation&quot; = &#039;C&#039; and &quot;tagid&quot; = &#039;9X0&#039; and &quot;id&quot; = &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetdecodepostvalue&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetDecodePostValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetdecodepostvalue&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetDecodePostValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetDecodePostValue&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pdata&quot; char(250) ) 
returns char(250)
begin
  declare &quot;rv&quot; char(250);
  declare &quot;i&quot; smallint;
  declare &quot;l&quot; smallint;
  declare &quot;c&quot; smallint;
  declare &quot;s&quot; char(3);
  set &quot;rv&quot; = &#039;&#039;;
  set &quot;l&quot; = &quot;le…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetextractparam&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetExtractParam</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetextractparam&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetExtractParam

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetExtractParam&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pParams&quot; long varchar,in &quot;pParamName&quot; char(100) ) 
returns long varchar
deterministic
begin
  declare &quot;v&quot; long varchar;
  declare &quot;n&quot; char(100);
  declare &quot;i&quot; integer;
  set &quot;pParams&quot; = &quot;replace&quot;(&quot;pParam…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnethaspermission&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetHasPermission</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnethaspermission&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetHasPermission

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetHasPermission&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pWebUserID&quot; char(20),in &quot;pRightID&quot; char(20) ) 
returns smallint
not deterministic
begin
  declare &quot;rv&quot; smallint;
  set &quot;rv&quot; = 0;
  if(select first &quot;isnull&quot;((select first &quot;Assigned&quot; from &quot;IQXNetRightAss…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetoverrideswitchtextvalue&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetOverrideSwitchTextValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetoverrideswitchtextvalue&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetOverrideSwitchTextValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetOverrideSwitchTextValue&quot;( 
  in &quot;pIQXNetUserClassID&quot; char(20),in &quot;pIQXNetUserID&quot; char(20),in &quot;pIQXNetSwitchID&quot; char(50),in &quot;pDefaultValue&quot; char(250) ) 
returns char(250)
begin
  return &quot;pDefaultValue&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetoverrideswitchvalue&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetOverrideSwitchValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetoverrideswitchvalue&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetOverrideSwitchValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetOverrideSwitchValue&quot;( 
  in &quot;pIQXNetUserClassID&quot; char(20),in &quot;pIQXNetUserID&quot; char(20),in &quot;pIQXNetSwitchID&quot; char(50),in &quot;pDefaultValue&quot; integer ) 
returns integer
begin
  return &quot;pDefaultValue&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtodate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetStringToDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtodate&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetStringToDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetStringToDate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sdate&quot; char(20) ) 
returns date
begin
  declare &quot;rv&quot; date;
  declare &quot;i&quot; smallint;
  declare &quot;d&quot; smallint;
  declare &quot;m&quot; smallint;
  declare &quot;y&quot; smallint;
  set &quot;sdate&quot; = &quot;trim&quot;(&quot;sdate&quot;);
  if &quot;sdate&quot; re…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtodouble&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetStringToDouble</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtodouble&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetStringToDouble

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetStringToDouble&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sval&quot; char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  set &quot;rv&quot; = cast(&quot;sval&quot; as double);
  return &quot;rv&quot;
exception
  when others then return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtointeger&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetStringToInteger</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtointeger&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetStringToInteger

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetStringToInteger&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sval&quot; char(20) ) 
returns integer
begin
  declare &quot;rv&quot; integer;
  set &quot;rv&quot; = cast(&quot;sval&quot; as integer);
  return &quot;rv&quot;
exception
  when others then return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtotime&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetStringToTime</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetstringtotime&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetStringToTime

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetStringToTime&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;stime&quot; char(20) ) 
returns time
begin
  declare &quot;rv&quot; time;
  set &quot;rv&quot; = cast(&quot;stime&quot; as time);
  return &quot;rv&quot;
exception
  when others then return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetswitchvalue&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetSwitchValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetswitchvalue&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetSwitchValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetSwitchValue&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pWebUserID&quot; char(20),in &quot;pIQXNetSwitchID&quot; char(50) ) 
returns char(250)
not deterministic
begin
  declare &quot;irv&quot; integer;
  declare &quot;rv&quot; char(250);
  declare &quot;xIQXNetUserClassID&quot; char(20);
  select &quot;IQXNetU…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnettemplatechoicelist&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetTemplateChoiceList</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnettemplatechoicelist&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetTemplateChoiceList

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetTemplateChoiceList&quot;( 
  in &quot;templateid&quot; char(20),in &quot;deptid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;xtagid&quot; char(20);
  declare &quot;xchoiceid&quot; char(20);
  declare &quot;xlocation&quot; char(20);
  select first &quot;trim&quot;(&quot;isnull&quot;(&quot;tagid&quot;,&#039;&#039;)),&quot;trim&quot;(&quot;isnull&quot;(&quot;t…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnettemplategradelist&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetTemplateGradeList</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnettemplategradelist&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetTemplateGradeList

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetTemplateGradeList&quot;( 
  in &quot;templateid&quot; char(20),in &quot;deptid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;xtagid&quot; char(20);
  declare &quot;xchoiceid&quot; char(20);
  declare &quot;xlocation&quot; char(20);
  declare &quot;xgradetagid&quot; char(20);
  declare &quot;xgradeid&quot; char(20);…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetuserheadline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IQXNetUserHeadline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_iqxnetuserheadline&amp;rev=1786130660</link>
        <description>﻿

pears.IQXNetUserHeadline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IQXNetUserHeadline&quot;( 
  in &quot;pWebUserID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;userClass&quot; char(20);
  declare &quot;personName&quot; char(200);
  set &quot;userClass&quot; = (select first &quot;iqxnetuserclassid&quot; from &quot;iqxnetuser&quot; where &quot;iqxnetuserid&quot; = &quot;pWebUserID&quot;);
  set &quot;personName&quot; = (select &quot;person&quot;.&quot;fo…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_isfuzeuser&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.IsFuzeUser</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_isfuzeuser&amp;rev=1786130660</link>
        <description>﻿

pears.IsFuzeUser

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;IsFuzeUser&quot;()
returns smallint
begin
  -- userstaffid + question
  return 0
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_keywordsearchallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.KeyWordSearchAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_keywordsearchallowed&amp;rev=1786130660</link>
        <description>﻿

pears.KeyWordSearchAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;KeyWordSearchAllowed&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;SearchString&quot; long varchar ) 
returns long varchar
begin
  if &quot;trim&quot;(&quot;SearchString&quot;) = &#039;&#039; then
    return &#039;Search string cannot be empty, please review criteria and search again&#039;
  else if &quot;trim&quot;(&quot;re…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_leastdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.LeastDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_leastdate&amp;rev=1786130660</link>
        <description>﻿

pears.LeastDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;LeastDate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;Date1&quot; date,in &quot;Date2&quot; date ) 
returns date
begin
  set &quot;Date1&quot; = &quot;isnull&quot;(&quot;Date1&quot;,&quot;Date2&quot;);
  set &quot;Date2&quot; = &quot;isnull&quot;(&quot;Date2&quot;,&quot;Date1&quot;);
  if &quot;Date1&quot; &lt; &quot;Date2&quot; then return(&quot;Date1&quot;)
  else return(&quot;Date2&quot;)
  end if
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_lsmluservalue&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.LSMLuserValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_lsmluservalue&amp;rev=1786130660</link>
        <description>﻿

pears.LSMLuserValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;LSMLuserValue&quot;( in &quot;stype&quot; char(1),in &quot;sid&quot; char(20) ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  declare &quot;branch&quot; char(20);
  declare &quot;depart&quot; char(20);
  declare &quot;divis&quot; char(20);
  declare &quot;consult&quot; char(20);
  declare &quot;consultid&quot; char(20);
  declare &quot;desk&quot; char(20);
  declare &quot;lv&quot; long va…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_mailmergesmtpcredentials&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MailMergeSMTPCredentials</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_mailmergesmtpcredentials&amp;rev=1786130660</link>
        <description>﻿

pears.MailMergeSMTPCredentials

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MailMergeSMTPCredentials&quot;( in &quot;PersID&quot; char(20),in &quot;EmpID&quot; char(20),in &quot;VacID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ProgID&quot; char(20) ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_makehtmlreadable&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MakeHTMLReadable</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_makehtmlreadable&amp;rev=1786130660</link>
        <description>﻿

pears.MakeHTMLReadable

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MakeHTMLReadable&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  @HTMLText long varchar,@ReplaceBR smallint ) 
returns long varchar
as
begin
  declare @Start integer
  declare @End integer
  declare @Length integer
  -- ReplaceBR with CRLF 0 - No 1 - Yes
  -- Replace the HTML…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_makekeyname&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MakeKeyName</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_makekeyname&amp;rev=1786130660</link>
        <description>﻿

pears.MakeKeyName

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MakeKeyName&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sSource&quot; char(60) ) 
returns char(60)
begin
  declare &quot;rv&quot; char(60);
  declare &quot;isin&quot; char(50);
  declare &quot;c&quot; char(1);
  set &quot;rv&quot; = &#039;&#039;;
  set &quot;isin&quot; = &#039;ABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;0123456789&#039;;
  set &quot;isin&quot; = &quot;isin&quot;+&quot;ch…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrosterlimitcolour&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MasterRosterLimitColour</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrosterlimitcolour&amp;rev=1786130660</link>
        <description>﻿

pears.MasterRosterLimitColour

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MasterRosterLimitColour&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;VacID&quot; char(20) ) 
returns char(1)
begin
  -- return G - OK, O - warning, R - problem
  -- R means over limit
  -- O means within 10%
  declare &quot;ShiftsTot&quot; integer;
  declare &quot;RV&quot; char(1);
  if…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrostermakedate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MasterRosterMakeDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrostermakedate&amp;rev=1786130660</link>
        <description>﻿

pears.MasterRosterMakeDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MasterRosterMakeDate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pstartdate&quot; date,in &quot;pdays&quot; integer,in &quot;pgedate&quot; date ) 
returns date
deterministic
begin
  if &quot;pstartdate&quot; is null or &quot;pdays&quot; is null or &quot;pgedate&quot; is null then
    return null
  end if;
  set &quot;pdays…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrosterstartdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MasterRosterStartDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrosterstartdate&amp;rev=1786130660</link>
        <description>﻿

pears.MasterRosterStartDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MasterRosterStartDate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;MRID&quot; char(20),in &quot;VacID&quot; char(20) ) 
returns char(20)
begin
  declare &quot;MaxDays&quot; integer;
  declare &quot;SDate&quot; date;
  if &quot;isnull&quot;(&quot;MRID&quot;,&#039;&#039;) = &#039;&#039; then
    select &quot;Max&quot;(&quot;daysincycle&quot;) into &quot;MaxDays&quot; f…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrostertempallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MasterRosterTempAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_masterrostertempallowed&amp;rev=1786130660</link>
        <description>﻿

pears.MasterRosterTempAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MasterRosterTempAllowed&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ppersid&quot; char(20),in &quot;pmastershiftid&quot; char(20) ) 
returns integer
begin
  declare &quot;ionly&quot; integer;
  declare &quot;iactive&quot; integer;
  if &quot;pmastershiftid&quot; is null then
    return 1
  end if;
  if &quot;p…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_mastertemprate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.MasterTempRate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_mastertemprate&amp;rev=1786130660</link>
        <description>﻿

pears.MasterTempRate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;MasterTempRate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;SchemeID&quot; char(20),in &quot;BandID&quot; char(20),in &quot;GradeID&quot; char(4),in &quot;pFilter1&quot; char(4),in &quot;pFilter2&quot; char(4),in &quot;pFilter3&quot; char(4),in &quot;dFrom&quot; date,in &quot;dTo&quot; date ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  s…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_modifiedtemprate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ModifiedTempRate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_modifiedtemprate&amp;rev=1786130660</link>
        <description>﻿

pears.ModifiedTempRate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ModifiedTempRate&quot;( in &quot;PayOrChar&quot; char(1),in &quot;vacid&quot; char(20),in &quot;persid&quot; char(20),in &quot;placid&quot; char(20),in &quot;bandid&quot; char(20),in &quot;BaseRate&quot; double ) 
returns double
begin
  declare &quot;rv&quot; double;
  set &quot;rv&quot; = &quot;BaseRate&quot;;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netblobpermitted&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetBlobPermitted</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netblobpermitted&amp;rev=1786130660</link>
        <description>﻿

pears.NetBlobPermitted

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetBlobPermitted&quot;( in &quot;pWebUserID&quot; char(20),in &quot;pBlobClass&quot; char(1),in &quot;pBlobID&quot; char(20),in &quot;pUpOrDown&quot; char(1) ) 
returns integer
begin
  if &quot;pBlobClass&quot; = &#039;G&#039; and &quot;pUpOrDown&quot; = &#039;D&#039; then
    return 1
  else
    return 0
  end if
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netcandidatevalidpersonid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetCandidateValidPersonID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netcandidatevalidpersonid&amp;rev=1786130660</link>
        <description>﻿

pears.NetCandidateValidPersonID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetCandidateValidPersonID&quot;( in &quot;pWebUserID&quot; char(20),in &quot;pPersonID&quot; char(20) default null ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  set &quot;pPersonID&quot; = &quot;nullif&quot;(&quot;trim&quot;(&quot;pPersonID&quot;),&#039;&#039;);
  if &quot;pPersonID&quot; is null then -- Return a valid personid only if a unique one is available 
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netcanuploadvacancy&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetCanUploadVacancy</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netcanuploadvacancy&amp;rev=1786130660</link>
        <description>﻿

pears.NetCanUploadVacancy

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetCanUploadVacancy&quot;( in &quot;vacID&quot; char(20) ) 
returns integer
begin
  if exists
    (select &quot;Vacancyid&quot;,
      &quot;isnull&quot;((if &quot;v&quot;.&quot;temp&quot; = 1 then &quot;v&quot;.&quot;finishdate&quot; else &quot;v&quot;.&quot;expiry&quot; endif),current date) as &quot;LD&quot;
      from &quot;vacancy&quot; as &quot;v&quot;
      where &quot;vacancyid&quot; = &quot;vacid&quot;
      and &quot;status&quot; = &#039;C&#039;
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netclientshiftcancelreasons&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetClientShiftCancelReasons</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netclientshiftcancelreasons&amp;rev=1786130660</link>
        <description>﻿

pears.NetClientShiftCancelReasons

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetClientShiftCancelReasons&quot;( in &quot;WebUser&quot; char(20),in &quot;NeedsRefill&quot; integer default 0 ) 
returns long varchar
-- 20111012 create ComboBox option list for cancel reasons on Client -&gt; Current Shift Status status box
-- 20111128 modify to allow filter on reject or cancel reasons where ref…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netdebtorsdaysalesoutstanding&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetDebtorsDaySalesOutstanding</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netdebtorsdaysalesoutstanding&amp;rev=1786130660</link>
        <description>﻿

pears.NetDebtorsDaySalesOutstanding

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetDebtorsDaySalesOutstanding&quot;( in &quot;pAccountCode&quot; char(12),in &quot;DaysInPeriod&quot; integer,in &quot;CutoffDate&quot; date ) 
returns decimal(10,2)
begin
  declare &quot;Outst&quot; decimal(10,2);
  declare &quot;Sales&quot; decimal(10,2);
  declare &quot;dStart&quot; date;
  set &quot;dStart&quot; = &quot;dateadd&quot;(&quot;dd&quot;,-1*(&quot;daysinperiod&quot;-1),&quot;Cu…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_neterrorhandler&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetErrorHandler</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_neterrorhandler&amp;rev=1786130660</link>
        <description>﻿

pears.NetErrorHandler

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetErrorHandler&quot;( in &quot;pErrorCode&quot; integer,in &quot;UID&quot; char(20) default null,in &quot;pRecordID&quot; char(20) default null,in &quot;pActionDetails&quot; char(255) default null ) 
returns char(255)
deterministic // IQXWeb
begin
  declare &quot;retval&quot; char(255);
  declare &quot;ErrorMessage&quot; char(250);
  declare &quot;ErrorAnalysisText&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netfavouritetitle&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetFavouriteTitle</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netfavouritetitle&amp;rev=1786130660</link>
        <description>﻿

pears.NetFavouriteTitle

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetFavouriteTitle&quot;( in &quot;pNodeID&quot; char(20) ) 
returns char(250)
begin
  declare &quot;rv&quot; char(250);
  select(case &quot;type&quot;
    when &#039;C&#039; then(select &quot;string&quot;(&quot;name&quot;,&#039;, &#039;,&quot;addr1&quot;,&#039;, &#039;,&quot;postcode&quot;) from &quot;company&quot; where &quot;companyid&quot; = &quot;favourites&quot;.&quot;id&quot;)
    when &#039;E&#039; then(select &quot;string&quot;(&quot;p&quot;.&quot;name&quot;,&#039;, &#039;,&quot;c&quot;.&quot;n…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netfilepermitted&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetFilePermitted</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netfilepermitted&amp;rev=1786130660</link>
        <description>﻿

pears.NetFilePermitted

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetFilePermitted&quot;( in &quot;pWebUserID&quot; char(20),in &quot;pFilePath&quot; char(250) ) 
returns integer
begin
  // IQXWeb
  declare &quot;pPersonID&quot; char(20);
  declare &quot;pClassID&quot; char(20);
  declare &quot;EmployeeCodeList&quot; char(254);
  declare &quot;pClientCode&quot; char(20);
  declare &quot;DocPathRoot&quot; char(254);
  declare &quot;StartDate…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetemail&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetGetEmail</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetemail&amp;rev=1786130660</link>
        <description>﻿

pears.NetGetEmail

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetGetEmail&quot;( in &quot;cpe&quot; char(2),in &quot;recid&quot; char(20) ) 
returns char(250)
//IQXWeb
begin
  declare &quot;rv&quot; char(250);
  select first &quot;replace&quot;(&quot;phone&quot;.&quot;number&quot;,&#039;*&#039;,&#039;&#039;) into &quot;rv&quot; from &quot;phone&quot; key join &quot;phonetype&quot; where &quot;phone&quot;.&quot;whoid&quot; = &quot;recid&quot; and &quot;phone&quot;.&quot;who&quot; = (if &quot;cpe&quot; = &#039;E&#039; then &#039;CP&#039; else &quot;cpe&quot; endif)
…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetplacementid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetGetPlacementid</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetplacementid&amp;rev=1786130660</link>
        <description>﻿

pears.NetGetPlacementid

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetGetPlacementid&quot;( in &quot;vacid&quot; char(20),in &quot;persid&quot; char(20),in &quot;pweekstartdate&quot; date ) 
returns integer
not deterministic
begin
  declare &quot;placid&quot; char(20);
  set &quot;placid&quot; = (select first &quot;placement&quot;.&quot;placementid&quot; from &quot;placement&quot; key join &quot;employment&quot; where &quot;placement&quot;.&quot;vacancyid&quot; = &quot;vacid&quot; and…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetvacancysitedetails&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetGetVacancySiteDetails</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netgetvacancysitedetails&amp;rev=1786130660</link>
        <description>﻿

pears.NetGetVacancySiteDetails

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetGetVacancySiteDetails&quot;( in &quot;pVacancyID&quot; char(20) default null ) 
returns long varchar
deterministic
begin
  declare &quot;siteAddress&quot; long varchar;
  declare &quot;siteName&quot; char(50);
  declare &quot;addr1&quot; char(40);
  declare &quot;addr2&quot; char(40);
  declare &quot;addr3&quot; char(40);
  declare &quot;town&quot; char(30);
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nethaspermission&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetHasPermission</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nethaspermission&amp;rev=1786130660</link>
        <description>﻿

pears.NetHasPermission

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetHasPermission&quot;( in &quot;pWebUserID&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pCompanyID&quot; char(20) ) 
returns integer
// IQXWeb
begin
  declare &quot;rv&quot; integer;
  declare &quot;userclass&quot; char(20);
  declare &quot;divid&quot; char(20);
  set &quot;rv&quot; = 0;
  select &quot;iqxnetuserclassid&quot; into &quot;userclass&quot; from &quot;iqxnetuser&quot; where …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netjsstring&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetJSString</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netjsstring&amp;rev=1786130660</link>
        <description>﻿

pears.NetJSString

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetJSString&quot;( in &quot;s&quot; char(255) ) 
returns char(255)
begin
  set &quot;s&quot; = &quot;replace&quot;(&quot;s&quot;,&#039;\\&#039;,&#039;\\\\&#039;);
  set &quot;s&quot; = &quot;replace&quot;(&quot;s&quot;,&#039;&quot;&#039;,&#039;\\&quot;&#039;);
  return &quot;string&quot;(&#039;&quot;&#039;,&quot;s&quot;,&#039;&quot;&#039;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netlongquestanswer&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetLongQuestAnswer</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netlongquestanswer&amp;rev=1786130660</link>
        <description>﻿

pears.NetLongQuestAnswer

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetLongQuestAnswer&quot;( 
  in &quot;ptagloc&quot; char(3),in &quot;ptagid&quot; char(3),in &quot;parentid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;tagval&quot; double;
  declare &quot;textval&quot; long varchar;
  declare &quot;x&quot; char(4);
  declare &quot;y&quot; integer;
  declare &quot;xunits&quot; char(11);
  declare &quot;xd…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netorderreasonlist&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetOrderReasonList</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netorderreasonlist&amp;rev=1786130660</link>
        <description>﻿

pears.NetOrderReasonList

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetOrderReasonList&quot;()
returns long varchar
//IQXWeb
begin
  declare &quot;rv&quot; long varchar;
  select &quot;list&quot;(&quot;string&quot;(&quot;tempshiftorderreasonid&quot;,&#039;]~[&#039;,&quot;description&quot;),&#039;]~[&#039; order by &quot;sortorder&quot; asc,&quot;description&quot; asc) into &quot;rv&quot; from &quot;tempshiftorderreason&quot;;
  return &quot;rv&quot;
end /* DOC
2016-10-20 PC modify to …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netownerjobratelist&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetOwnerJobRateList</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netownerjobratelist&amp;rev=1786130660</link>
        <description>﻿

pears.NetOwnerJobRateList

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetOwnerJobRateList&quot;()
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select &quot;list&quot;(&quot;string&quot;(&quot;TempPayBandID&quot;,&#039;]~[&#039;,&quot;TempPayBand&quot;.&quot;Description&quot;+&#039; - &#039;+&quot;TempPayBand&quot;.&quot;Unit&quot;),&#039;]~[&#039; order by &quot;Description&quot; asc) into &quot;rv&quot; from &quot;TempPayBand&quot;;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netownertimesheetlists&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetOwnerTimesheetLists</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netownertimesheetlists&amp;rev=1786130660</link>
        <description>﻿

pears.NetOwnerTimesheetLists

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetOwnerTimesheetLists&quot;( in &quot;WebUser&quot; char(20),in &quot;ListType&quot; char(23) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select &quot;list&quot;(&quot;string&quot;(&#039;&lt;option value=&quot;&#039;,&quot;ObjectID&quot;,&#039;&quot;&gt;&#039;,&quot;ObjectName&quot;),&#039;&lt;/option&gt;&#039; order by &quot;ObjectName&quot; asc) into &quot;rv&quot; from &quot;NetOwnerTreeSource&quot;(&quot;WebUser&quot;,&quot;List…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netpopulatecompliancetable&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetPopulateComplianceTable</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netpopulatecompliancetable&amp;rev=1786130660</link>
        <description>﻿

pears.NetPopulateComplianceTable

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetPopulateComplianceTable&quot;( in &quot;personid&quot; char(20),in &quot;oldstatus&quot; char(1),in &quot;newstatus&quot; char(1),in &quot;datetocheck&quot; date,in &quot;vacancyid&quot; char(20),in &quot;tempshiftplanid&quot; char(20),in &quot;departmentid&quot; char(2) ) 
returns char(20)
begin
  declare @instanceid char(20);
  set @instanceid = &quot;uniquekey…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netquestionownerid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetQuestionOwnerID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netquestionownerid&amp;rev=1786130660</link>
        <description>﻿

pears.NetQuestionOwnerID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetQuestionOwnerID&quot;( in &quot;pBaseTagLocation&quot; char(3),in &quot;pBaseID&quot; char(20),in &quot;pRequiredTagLocation&quot; char(3) ) 
returns char(20)
deterministic
// IQXWeb
begin
  declare &quot;placid&quot; char(20);
  declare &quot;persid&quot; char(20);
  declare &quot;vacid&quot; char(20);
  declare &quot;empid&quot; char(20);
  declare &quot;compid&quot; char(2…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netshiftdatetime&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetShiftDateTime</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netshiftdatetime&amp;rev=1786130660</link>
        <description>﻿

pears.NetShiftDateTime

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetShiftDateTime&quot;( in &quot;pDate&quot; date,in &quot;pTimeFrom&quot; time,in &quot;pTimeTo&quot; time,in &quot;pFromOrTo&quot; char(1) ) 
returns timestamp
deterministic
begin
  declare &quot;rv&quot; timestamp;
  if &quot;ptimefrom&quot; is null or &quot;ptimeto&quot; is null then
    if &quot;pFromOrTo&quot; = &#039;F&#039; then
      set &quot;rv&quot; = &quot;pdate&quot;
    else
      set &quot;rv&quot; = &quot;pd…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netstringtotimestamp&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetStringToTimestamp</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netstringtotimestamp&amp;rev=1786130660</link>
        <description>﻿

pears.NetStringToTimestamp

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetStringToTimestamp&quot;( in &quot;sDateTime&quot; char(25) ) 
returns timestamp
begin
  set &quot;sDateTime&quot; = &quot;trim&quot;(&quot;sDateTime&quot;); -- remove trailing and leading white space
  if &quot;sDateTime&quot; regexp &#039;^\\d{4}\\-\\d{2}\\-\\d{2}(T|\\040)\\d{2}:\\d{2}($|Z$|\\+00:00$|:\\d{2}($|Z$|\\+00:00$))&#039; then -- check to make …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nettempshiftstatusstring&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetTempShiftStatusString</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nettempshiftstatusstring&amp;rev=1786130660</link>
        <description>﻿

pears.NetTempShiftStatusString

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetTempShiftStatusString&quot;( in &quot;pShiftStatus&quot; char(30),in &quot;pTempConfirmed&quot; integer default null,in &quot;pClientConfirmed&quot; integer default null,in &quot;pCancelReason&quot; char(255) default null ) 
returns char(200)
deterministic
begin
  if &quot;pShiftStatus&quot; = &#039;B&#039; then
    return &#039;Confirmed&#039;
  end if;
  if …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nettimesheetenddate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetTimesheetEndDate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nettimesheetenddate&amp;rev=1786130660</link>
        <description>﻿

pears.NetTimesheetEndDate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetTimesheetEndDate&quot;( in &quot;isProvisional&quot; tinyint,in &quot;byShift&quot; tinyint,in &quot;id&quot; char(20) ) 
returns date
begin
  declare &quot;lastShiftdate&quot; date;
  declare &quot;Weekenddate&quot; date;
  declare &quot;DeskType&quot; char(1);
  declare &quot;ExtNo&quot; integer; -- 2 denotes completed provisonal - can look up tempprovtimesheetsh…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvacancyhasratescript&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetVacancyHasRateScript</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvacancyhasratescript&amp;rev=1786130660</link>
        <description>﻿

pears.NetVacancyHasRateScript

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetVacancyHasRateScript&quot;( in &quot;jtypeid&quot; char(20),in &quot;vacid&quot; char(20) ) 
returns integer
begin
  if &quot;jtypeid&quot; is not null then
    if exists(select * from &quot;tempjobtype&quot; where &quot;tempjobtypeid&quot; = &quot;jtypeid&quot; and &quot;tempratescriptid&quot; is not null) then
      return 1
    else
      return 0
    end if…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvacancyroleallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetVacancyRoleAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvacancyroleallowed&amp;rev=1786130660</link>
        <description>﻿

pears.NetVacancyRoleAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetVacancyRoleAllowed&quot;( in &quot;pWebUserID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pVacancyRoleExternalCode&quot; char(20) ) 
returns smallint
begin
  if not exists(select * from &quot;VacancyRoleAllocation&quot; as &quot;a&quot; key join &quot;VacancyRole&quot; as &quot;r&quot; where &quot;a&quot;.&quot;VacancyID&quot; = &quot;pVacancyID&quot; and &quot;r&quot;.&quot;ExternalCode&quot; = &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvalidateemailaddress&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NetValidateEmailAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_netvalidateemailaddress&amp;rev=1786130660</link>
        <description>﻿

pears.NetValidateEmailAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NetValidateEmailAddress&quot;( 
  in @email varchar(200) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  set &quot;RV&quot; = if &quot;isnull&quot;((select 1 where @email regexp &#039;^[a-zA-Z0-9.!#$%&amp;&#039;&#039;*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)*\…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nominalfortimesheetline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NominalForTimesheetLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_nominalfortimesheetline&amp;rev=1786130660</link>
        <description>﻿

pears.NominalForTimesheetLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NominalForTimesheetLine&quot;( in &quot;tslineid&quot; char(20) ) 
returns char(20)
begin
  return &#039;4001&#039;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationattachments&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationAttachments</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationattachments&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationAttachments

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationAttachments&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20),in &quot;pSubjectType&quot; char(20) default null,in &quot;pSubjectIDs&quot; char(100) default null ) 
returns char(255)
begin
  -…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcomplete&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationComplete</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcomplete&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationComplete

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationComplete&quot;( 
  in &quot;pTemplateID&quot; char(50) default null,in &quot;pRecipientType&quot; char(20) default null,in &quot;pPersonID&quot; char(20) default null,in &quot;pVacancyID&quot; char(20) default null,in &quot;pCompanyID&quot; char(20) default null,in &quot;pProgressid&quot; char(20) default null,in &quot;pPlacementid&quot; char(20) default …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcontacteventclass&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationContactEventClass</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcontacteventclass&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationContactEventClass

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationContactEventClass&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20) ) 
returns char(2)
begin
  -- If no value returned will use General Setting
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcustomfields&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationCustomFields</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationcustomfields&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationCustomFields

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationCustomFields&quot;( 
  in &quot;pfieldname&quot; char(30),in &quot;pTemplateID&quot; char(50) default null,in &quot;pPersonID&quot; char(20) default null,
  in &quot;pVacancyID&quot; char(20) default null,in &quot;pEmploymentID&quot; char(20) default null,
  in &quot;pProgressid&quot; char(20) default null,in &quot;pPlacementid&quot; char(20) default …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationdeeplinkcomplete&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationDeeplinkComplete</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationdeeplinkcomplete&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationDeeplinkComplete

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationDeeplinkComplete&quot;( 
  in &quot;pTemplateID&quot; char(50) default null,in &quot;pPersonID&quot; char(20) default null,
  in &quot;pVacancyID&quot; char(20) default null,in &quot;pCompanyID&quot; char(20) default null,
  in &quot;pProgressid&quot; char(20) default null,in &quot;pPlacementid&quot; char(20) default null,in &quot;pDivisionID…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationemailsubject&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationEmailSubject</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationemailsubject&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationEmailSubject

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationEmailSubject&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20) ) 
returns char(100)
begin
  -- If no value returned will use template description
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationemploymentid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationEmploymentID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationemploymentid&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationEmploymentID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationEmploymentID&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20) ) 
returns char(20)
begin
  -- Return an EmploymentID for the recipient. If no value returned will use defau…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationhtmlwrapid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationHTMLWrapID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationhtmlwrapid&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationHTMLWrapID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationHTMLWrapID&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20) ) 
returns char(20)
begin
  -- Will use HTML_WRAP if no value returned
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationics&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationICS</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationics&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationICS

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationICS&quot;( 
  in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20),in &quot;pProgressID&quot; char(20),in &quot;pDiaryID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare @clie…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationrecipients&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationRecipients</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationrecipients&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationRecipients

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationRecipients&quot;( in &quot;pTransportType&quot; char(20),in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20) ) 
returns char(255)
begin
  -- pTransportType is EMAIL or SMS
  -- pRecipientType …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationsexist&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationsExist</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationsexist&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationsExist

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationsExist&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pTemplateid&quot; char(50),in &quot;pDeptid&quot; char(2),in &quot;pNotificationType&quot; char(20),in &quot;pRecipientType&quot; char(20) ) 
returns tinyint
begin
  if exists(select * from &quot;NotificationTemplate&quot;
      where &quot;isnull&quot;(&quot;Def…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationsignatureid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationSignatureID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationsignatureid&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationSignatureID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationSignatureID&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20) ) 
returns char(20)
begin
  -- Will use DEFAULT if no value returned
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationstaffid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationStaffID</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationstaffid&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationStaffID

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationStaffID&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pRecipientType&quot; char(20),in &quot;pPersonID&quot; char(20),in &quot;pVacancyID&quot; char(20),in &quot;pCompanyID&quot; char(20),in &quot;pDivisionID&quot; char(20) ) 
returns char(20)
begin
  -- Return a StaffID for the sender. If no value returned will use userstaffid
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationtemplateselector&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.NotificationTemplateSelector</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_notificationtemplateselector&amp;rev=1786130660</link>
        <description>﻿

pears.NotificationTemplateSelector

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;NotificationTemplateSelector&quot;( in &quot;pTemplateID&quot; char(50),in &quot;pSubjectType&quot; char(20),in &quot;pSubjectIDs&quot; char(100),in &quot;pNotificationType&quot; char(20),in &quot;pRecipientType&quot; char(20),in &quot;pGroupCode&quot; char(20) ) 
returns smallint
begin
  -- Used for filtering the dropdown list of templates
  -- Ret…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_numtotime&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.numtotime</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_numtotime&amp;rev=1786130660</link>
        <description>﻿

pears.numtotime

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;numtotime&quot;( in &quot;thenum&quot; decimal(5,2) ) 
returns time
begin
  declare &quot;rv&quot; time;
  declare &quot;ss&quot; char(5);
  declare &quot;ii&quot; smallint;
  declare &quot;num1&quot; decimal(5,2);
  declare &quot;num2&quot; decimal(5,2);
  set &quot;num1&quot; = &quot;floor&quot;(&quot;thenum&quot;);
  set &quot;num2&quot; = &quot;thenum&quot;-&quot;num1&quot;;
  if &quot;thenum&quot; &gt;= 24 or &quot;thenum&quot; &lt; 0 then
    set…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_overridetemprate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.OverrideTempRate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_overridetemprate&amp;rev=1786130660</link>
        <description>﻿

pears.OverrideTempRate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;OverrideTempRate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;VacID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;BandID&quot; char(20),in &quot;GradeID&quot; char(4),in &quot;pFilter1&quot; char(4),in &quot;pFilter2&quot; char(4),in &quot;pFilter3&quot; char(4),in &quot;dFrom&quot; date,in &quot;dTo&quot; date ) 
returns char(20)
// Purpose i…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_padstr&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PadStr</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_padstr&amp;rev=1786130660</link>
        <description>﻿

pears.PadStr

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PadStr&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;TheStr&quot; char(50),in &quot;TargetLength&quot; tinyint,in &quot;PadChar&quot; char(1) ) 
returns char(50)
begin
  declare &quot;rv&quot; char(50);
  set &quot;rv&quot; = &quot;left&quot;(&quot;isnull&quot;(&quot;thestr&quot;,&#039;&#039;),&quot;targetlength&quot;);
  if &quot;isnull&quot;(&quot;PadChar&quot;,&#039;&#039;) = &#039;&#039; then
    set &quot;PadCha…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pay_weeklyemployerni&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.pay_weeklyemployerNI</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pay_weeklyemployerni&amp;rev=1786130660</link>
        <description>﻿

pears.pay_weeklyemployerNI

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;pay_weeklyemployerNI&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pay&quot; real,in &quot;paydate&quot; date,in &quot;pid&quot; char(20) ) 
returns real
begin
  declare &quot;tmethod&quot; smallint;
  select &quot;isnull&quot;(&quot;taxmethod&quot;,1) into &quot;tmethod&quot; from &quot;pay_employee&quot; where &quot;personid&quot; = &quot;pid&quot;;
  if &quot;t…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pdfdisplaycontent&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PDFDisplayContent</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pdfdisplaycontent&amp;rev=1786130660</link>
        <description>﻿

pears.PDFDisplayContent

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PDFDisplayContent&quot;( in &quot;formid&quot; char(50),in &quot;viewid&quot; char(50),in &quot;recordid&quot; char(20) ) 
returns long varchar
-- formid - recordid, PERSON - personid, COMPANY, companyID, VACANCY - vacancyid, PLACEMENT, placementid
-- rv is either
-- PATH UNCpath (space separator optional)
-- BLOB blobid|blobclass…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableattime&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonAvailableAtTime</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableattime&amp;rev=1786130660</link>
        <description>﻿

pears.PersonAvailableAtTime

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonAvailableAtTime&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sPersonid&quot; char(20),in &quot;dShiftDate&quot; date,in &quot;tShiftFrom&quot; time,in &quot;tShiftTo&quot; time,in &quot;iCheckExplicitlyAvailable&quot; smallint ) 
returns char(1)
begin
  declare &quot;foundState&quot; char(1);
  set &quot;foundstate&quot; …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforplan&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonAvailableforPlan</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforplan&amp;rev=1786130660</link>
        <description>﻿

pears.PersonAvailableforPlan

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonAvailableforPlan&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sPersonid&quot; char(20),in &quot;dShiftDate&quot; date,in &quot;tShiftFrom&quot; time,in &quot;tShiftTo&quot; time,in &quot;iRecovery&quot; smallint,in &quot;iMinutes&quot; smallint,
  in &quot;iCheckExplicitlyAvailable&quot; smallint,in &quot;departmentid&quot; char(2…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforplaniterate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonAvailableforPlanIterate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforplaniterate&amp;rev=1786130660</link>
        <description>﻿

pears.PersonAvailableforPlanIterate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonAvailableforPlanIterate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sPersonid&quot; char(20),in &quot;dShiftDate&quot; date,in &quot;tShiftFrom&quot; time,in &quot;tShiftTo&quot; time,in &quot;iCheckExplicitlyAvailable&quot; smallint,in &quot;MovingShiftID&quot; char(20) ) 
returns char(1)
begin
  decla…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforrecovery&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonAvailableForRecovery</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personavailableforrecovery&amp;rev=1786130660</link>
        <description>﻿

pears.PersonAvailableForRecovery

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonAvailableForRecovery&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sFoundDigit&quot; char(1),in &quot;sPersonid&quot; char(20),in &quot;dShiftDate&quot; date,in &quot;tShiftFrom&quot; time,in &quot;tShiftTo&quot; time,in &quot;iRecovery&quot; smallint,in &quot;MovingShiftID&quot; char(20) ) 
returns char(1)
begin
  de…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personbasedtimesheetcustomcolumn&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonBasedTimesheetCustomColumn</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personbasedtimesheetcustomcolumn&amp;rev=1786130660</link>
        <description>﻿

pears.PersonBasedTimesheetCustomColumn

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonBasedTimesheetCustomColumn&quot;( 
  in &quot;RecordType&quot; char(2),in &quot;RecordID&quot; char(20),in &quot;colNo&quot; tinyint ) 
returns char(100)
begin
  -- RecordType C=Caption, D=Data, L=Location, RecordID only valid for Data, max 3 columns 
  return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_persondepartmentalalert&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonDepartmentalAlert</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_persondepartmentalalert&amp;rev=1786130660</link>
        <description>﻿

pears.PersonDepartmentalAlert

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonDepartmentalAlert&quot;( in &quot;persid&quot; char(20),in &quot;deptid&quot; char(2),in &quot;appendage&quot; char(100) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &quot;appendage&quot;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personheadline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonHeadline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personheadline&amp;rev=1786130660</link>
        <description>﻿

pears.PersonHeadline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonHeadline&quot;( in &quot;RecordID&quot; char(20) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  declare &quot;RS&quot; long varchar;
  declare &quot;Part&quot; long varchar;
  declare &quot;Shift&quot; long varchar;
  declare &quot;NewLine&quot; char(2);
  declare &quot;FRG&quot; decimal(10,1);
  set &quot;rv&quot; = &#039;&#039;;
  set &quot;rs&quot; = &#039;&#039;;
  set &quot;Part&quot; = …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personkeywordscustom&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonKeyWordsCustom</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personkeywordscustom&amp;rev=1786130660</link>
        <description>﻿

pears.PersonKeyWordsCustom

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonKeyWordsCustom&quot;( 
  in @PersonID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personkeywordsquestion&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonKeyWordsQuestion</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personkeywordsquestion&amp;rev=1786130660</link>
        <description>﻿

pears.PersonKeyWordsQuestion

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonKeyWordsQuestion&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @PersonID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select
    &quot;nullif&quot;(
    &quot;trim&quot;(
    (select &quot;list&quot;(&quot;GetQuestAnswer&quot;(&quot;t&quot;.&quot;TagLocation&quot;,&quot;t&quot;.&quot;TagID&quot;,@PersonID),&#039; &#039;)
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personstatuschangeallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonStatusChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personstatuschangeallowed&amp;rev=1786130660</link>
        <description>﻿

pears.PersonStatusChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonStatusChangeAllowed&quot;( in &quot;persid&quot; char(20),in &quot;oldstatus&quot; char(1),in &quot;newstatus&quot; char(1) ) 
returns long varchar
-- If change is disallowed you must set status back to oldstatus before returning an error message
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_persontempcolour&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonTempColour</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_persontempcolour&amp;rev=1786130660</link>
        <description>﻿

pears.PersonTempColour

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonTempColour&quot;( in @PersonID char(20),in @TempDeskID char(20) ) 
returns integer
begin
  declare &quot;rv&quot; integer;
  set &quot;rv&quot; = null;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailability&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonUnavailability</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailability&amp;rev=1786130660</link>
        <description>﻿

pears.PersonUnavailability

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonUnavailability&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pid&quot; char(20),in &quot;PorT&quot; char(1),in &quot;dfrom&quot; date,in &quot;dto&quot; date ) 
returns char(100)
begin
  declare &quot;rv&quot; char(100);
  declare &quot;ss&quot; char(1);
  declare &quot;so&quot; smallint;
  set &quot;rv&quot; = &#039;&#039;;
  if &quot;pid&quot; is null…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailabilityalert&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonUnavailabilityAlert</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailabilityalert&amp;rev=1786130660</link>
        <description>﻿

pears.PersonUnavailabilityAlert

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonUnavailabilityAlert&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pid&quot; char(20),in &quot;PorT&quot; char(1),in &quot;dfrom&quot; date,in &quot;dto&quot; date ) 
returns char(200)
begin
  declare &quot;ua&quot; char(100);
  declare &quot;al&quot; char(100);
  select &quot;personunavailability&quot;(&quot;pid&quot;,&quot;port&quot;,&quot;df…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailabilitytimesheet&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonUnavailabilityTimesheet</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personunavailabilitytimesheet&amp;rev=1786130660</link>
        <description>﻿

pears.PersonUnavailabilityTimesheet

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonUnavailabilityTimesheet&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pid&quot; char(20),in &quot;WorM&quot; char(1),in &quot;pPeriod&quot; integer,in &quot;dfrom&quot; date,in &quot;dto&quot; date ) 
returns char(200)
begin
  declare &quot;ua&quot; char(100);
  select &quot;personunavailability&quot;(&quot;pid&quot;,&#039;T&#039;,&quot;df…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personvacancyshiftmatch&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonVacancyShiftMatch</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personvacancyshiftmatch&amp;rev=1786130660</link>
        <description>﻿

pears.PersonVacancyShiftMatch

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonVacancyShiftMatch&quot;( in @PersonID char(20),in @VacancyID char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  set &quot;rv&quot;
     = &quot;DistanceBetweenPostCodes&quot;(
    (select &quot;Person&quot;.&quot;PostCode&quot; from &quot;Person&quot; where &quot;Person&quot;.&quot;PersonID&quot; = @PersonID),
    (select &quot;isnull&quot;(&quot;vacancy&quot;.&quot;postcode&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personvacancyshiftmatch2&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PersonVacancyShiftMatch2</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_personvacancyshiftmatch2&amp;rev=1786130660</link>
        <description>﻿

pears.PersonVacancyShiftMatch2

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PersonVacancyShiftMatch2&quot;( in @PersonID char(20),in @VacancyID char(20) ) 
returns char(50)
begin
  declare &quot;rv&quot; char(50);
  set &quot;rv&quot; = (select first &quot;sitename&quot; from &quot;vacancy&quot; where &quot;vacancyid&quot; = @VacancyID);
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_phoneupdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PhoneUpdate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_phoneupdate&amp;rev=1786130660</link>
        <description>﻿

pears.PhoneUpdate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PhoneUpdate&quot;( in &quot;Number&quot; char(50) ) 
returns char(50)
begin
  declare &quot;WorkNum&quot; char(50);
  //// Tidy up the number
  set &quot;WorkNum&quot; = &quot;replacestr&quot;(&quot;trim&quot;(&quot;Number&quot;),&#039;-&#039;,&#039;&#039;,0);
  set &quot;WorkNum&quot; = &quot;replacestr&quot;(&quot;WorkNum&quot;,&#039; &#039;,&#039;&#039;,0);
  set &quot;WorkNum&quot; = &quot;replacestr&quot;(&quot;WorkNum&quot;,&#039;(&#039;,&#039;&#039;,0);
  set &quot;WorkNum&quot; = &quot;repl…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PlacementAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementallowed&amp;rev=1786130660</link>
        <description>﻿

pears.PlacementAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PlacementAllowed&quot;( in &quot;TemporPerm&quot; char(1),in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementdayhours&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PlacementDayHours</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementdayhours&amp;rev=1786130660</link>
        <description>﻿

pears.PlacementDayHours

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PlacementDayHours&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;bProcess&quot; tinyint,in &quot;placid&quot; char(20),in &quot;pdate&quot; date,in &quot;startdate&quot; date,in &quot;enddate&quot; date ) 
returns char(10)
begin
  declare &quot;bcanc&quot; tinyint;
  declare &quot;scancid&quot; char(10);
  declare &quot;nhrs&quot; real;
  decl…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementdayworked&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PlacementDayWorked</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementdayworked&amp;rev=1786130660</link>
        <description>﻿

pears.PlacementDayWorked

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PlacementDayWorked&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;placid&quot; char(20),in &quot;pdate&quot; date ) 
returns smallint
begin
  declare &quot;bcanc&quot; tinyint;
  declare &quot;nhrs&quot; real;
  declare &quot;d&quot; smallint;
  declare &quot;bdayticked&quot; tinyint;
  declare &quot;banyticked&quot; tinyint;
  if &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalid&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.placementelementvalid</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalid&amp;rev=1786130660</link>
        <description>﻿

pears.placementelementvalid

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;placementelementvalid&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;bvalid&quot; smallint,in &quot;splacid&quot; char(20),in &quot;selementname&quot; char(20),in &quot;ismanager&quot; smallint,in &quot;isaccounts&quot; smallint ) 
returns smallint
begin -- V1 Legacy function
  return(&quot;placementelementvalidV2&quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalidv2&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.placementelementvalidV2</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalidv2&amp;rev=1786130660</link>
        <description>﻿

pears.placementelementvalidV2

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;placementelementvalidV2&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;bvalid&quot; smallint,in &quot;splacid&quot; char(20),in &quot;spersid&quot; char(20),in &quot;svacid&quot; char(20),in &quot;selementname&quot; char(20),in &quot;ismanager&quot; smallint,in &quot;isaccounts&quot; smallint ) 
returns smallint
begin
  declare…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalue&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.placementelementvalue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvalue&amp;rev=1786130660</link>
        <description>﻿

pears.placementelementvalue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;placementelementvalue&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;splacid&quot; char(20),in &quot;selementname&quot; char(20) ) 
returns long varchar
begin -- V1 Legacy function
  return(&quot;placementelementvalueV2&quot;(&quot;splacid&quot;,null,null,&quot;selementname&quot;))
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvaluev2&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.placementelementvalueV2</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_placementelementvaluev2&amp;rev=1786130660</link>
        <description>﻿

pears.placementelementvalueV2

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;placementelementvalueV2&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;splacid&quot; char(20),in &quot;spersid&quot; char(20),in &quot;svacid&quot; char(20),in &quot;selementname&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;l&quot; long varchar;
  declare &quot;n&quot; real…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_populatecompliancetable&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PopulateComplianceTable</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_populatecompliancetable&amp;rev=1786130660</link>
        <description>﻿

pears.PopulateComplianceTable

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PopulateComplianceTable&quot;( in &quot;persid&quot; char(20),in &quot;oldstatus&quot; char(1),in &quot;newstatus&quot; char(1),in &quot;datetocheck&quot; date,in &quot;vacid&quot; char(20),in &quot;shiftplanid&quot; char(20),in &quot;deptid&quot; char(2) ) 
returns char(20)
begin
  -- returns a instance id for later use
  -- will need to allow for null inputs
  -…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_postcodepart&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.PostCodePart</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_postcodepart&amp;rev=1786130660</link>
        <description>﻿

pears.PostCodePart

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;PostCodePart&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;postcode&quot; char(20),in &quot;part&quot; char(20) ) 
returns char(20)
deterministic
begin
  declare &quot;i&quot; integer;
  declare &quot;area&quot; char(20);
  set &quot;postcode&quot; = &quot;trim&quot;(&quot;postcode&quot;);
  set &quot;i&quot; = &quot;patindex&quot;(&#039;%[0-9]%&#039;,&quot;postcode&quot;);
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_proper&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.proper</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_proper&amp;rev=1786130660</link>
        <description>﻿

pears.proper

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;proper&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;OldString&quot; char(255) ) 
returns char(255)
begin
  declare &quot;NewString&quot; char(255);
  declare &quot;StringLength&quot; smallint;
  declare &quot;CurrentChar&quot; char(1);
  declare &quot;LastChar&quot; char(1);
  declare &quot;CurrentPos&quot; smallint;
  if &quot;OldString…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthbranch&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.psHealthBranch</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthbranch&amp;rev=1786130660</link>
        <description>﻿

pears.psHealthBranch

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;psHealthBranch&quot;( 
  in &quot;ShiftID&quot; char(20),in &quot;ShiftPlanID&quot; char(20),in &quot;persid&quot; char(20),in &quot;RecipientOrCarer&quot; char(1) ) 
returns char(100) -- not sure where branch will come from
begin
  -- hard code translation table here
  return &#039;1&#039;
-- this is &quot;Branch ICS&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendperson&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.psHealthCanSendPerson</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendperson&amp;rev=1786130660</link>
        <description>﻿

pears.psHealthCanSendPerson

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;psHealthCanSendPerson&quot;( 
  in &quot;persid&quot; char(20),in &quot;RecipientOrCarer&quot; char(1) ) 
returns smallint
begin
  -- check divisions, status etc
  -- 1 to send, anything else won&#039;t
  -- RecipientOrCarer R - Recip, C - Carer, U - User ( if needed )
  return 1
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendshift&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.psHealthCanSendShift</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendshift&amp;rev=1786130660</link>
        <description>﻿

pears.psHealthCanSendShift

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;psHealthCanSendShift&quot;( 
  in &quot;ShiftID&quot; char(20),in &quot;ShiftPlanID&quot; char(20) ) 
returns smallint
begin
  -- check divisions etc
  -- 1 to send, anything else won&#039;t
  -- plan possible future use
  if &quot;ShiftID&quot; is not null then return 1
  end if
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendvacancy&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.psHealthCanSendVacancy</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthcansendvacancy&amp;rev=1786130660</link>
        <description>﻿

pears.psHealthCanSendVacancy

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;psHealthCanSendVacancy&quot;( 
  in &quot;vacid&quot; char(20) ) 
returns smallint
begin
  -- check divisions, status etc
  -- 1 to send, anything else won&#039;t
  return 1
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthshowbutton&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.psHealthShowButton</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthshowbutton&amp;rev=1786130660</link>
        <description>﻿

pears.psHealthShowButton

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;psHealthShowButton&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;SourceID&quot; char(20),in &quot;IDType&quot; char(2) ) 
returns integer
begin
  if &quot;sourceid&quot; is null then
    return 0
  end if;
  /* IDType R = recipient, S = temp shift, P = temp shift plan C = carer, V = vacancy *…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthtasktype&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.psHealthTaskType</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthtasktype&amp;rev=1786130660</link>
        <description>﻿

pears.psHealthTaskType

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;psHealthTaskType&quot;( 
  in &quot;ShiftID&quot; char(20),in &quot;ShiftPlanID&quot; char(20) ) 
returns char(100)
begin
  -- lookup template, hard code translation table here
  return &#039;29&#039;
-- this is task type ics
-- the task type ids are autogenerated, not visible on the website but can be read from browser URL
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthuniqueusername&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.psHealthUniqueUsername</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_pshealthuniqueusername&amp;rev=1786130660</link>
        <description>﻿

pears.psHealthUniqueUsername

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;psHealthUniqueUsername&quot;( 
  in &quot;StartName&quot; char(100) ) 
returns char(100)
begin
  declare &quot;UName&quot; char(100);
  declare &quot;Inc&quot; integer;
  set &quot;UName&quot; = &quot;StartName&quot;;
  set &quot;Inc&quot; = 0;
  while exists(select * from &quot;psHealthPerson&quot; where &quot;username&quot; = &quot;UName&quot;) loop
    set &quot;Inc&quot; = &quot;Inc&quot;+1;
    set …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_rejectstate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.rejectstate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_rejectstate&amp;rev=1786130660</link>
        <description>﻿

pears.rejectstate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;rejectstate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sstatuscode&quot; char(1) ) 
returns char(1)
begin
  declare &quot;rejcode&quot; char(1);
  select &quot;rejectstatus&quot; into &quot;rejcode&quot; from &quot;status&quot;
    where &quot;status&quot; = &quot;sstatuscode&quot; and &quot;type&quot; = &#039;R&#039;;
  if &quot;isnull&quot;(&quot;rejcode&quot;,&#039;&#039;) = &#039;&#039; the…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_replacestr&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ReplaceStr</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_replacestr&amp;rev=1786130660</link>
        <description>﻿

pears.ReplaceStr

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ReplaceStr&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;mainstring&quot; char(255),in &quot;replacestring&quot; char(255),in &quot;withwhat&quot; char(255),in &quot;times&quot; tinyint ) 
returns varchar(255)
begin
  //
  // Variable declarations
  //
  declare &quot;newstring&quot; varchar(255);
  declare &quot;togo&quot; tinyi…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_reportimagefetch&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ReportImageFetch</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_reportimagefetch&amp;rev=1786130660</link>
        <description>﻿

pears.ReportImageFetch

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ReportImageFetch&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ReportImageName&quot; char(50) ) 
returns long binary
begin
  return &quot;blobstorefetch&quot;(&#039;R&#039;,(select first &quot;reportid&quot; from &quot;report&quot; where &quot;filename&quot; = &quot;ReportImageName&quot; order by 1 asc))
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_rscalcmargin&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.RSCalcMargin</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_rscalcmargin&amp;rev=1786130660</link>
        <description>﻿

pears.RSCalcMargin

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;RSCalcMargin&quot;( 
  in @RSMasterID char(20),in @Instance char(20),in @Holpay double,in @NI double,in @Levy double ) 
returns double
begin
  /* deal with any custom tables/views */
  /* return blank if OK otherwise error message  */
  return 10
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_safedate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.safedate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_safedate&amp;rev=1786130660</link>
        <description>﻿

pears.safedate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;safedate&quot;( 
  in &quot;dd&quot; char(30) ) 
returns char(30)
begin
  declare &quot;i&quot; smallint;
  declare &quot;t&quot;,&quot;d&quot;,&quot;m&quot; char(20);
  if &quot;dd&quot; is null then
    return null
  end if;
  set &quot;dd&quot; = &quot;replace&quot;(&quot;dd&quot;,&#039;T&#039;,&#039; &#039;);
  if &quot;trim&quot;(&quot;dd&quot;) = &#039;&#039; then
    return null
  end if;
  if &quot;charindex&quot;(&#039;/&#039;,&quot;dd&quot;) = 0 then
    return &quot;dd&quot;
…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_safetime&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.safetime</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_safetime&amp;rev=1786130660</link>
        <description>﻿

pears.safetime

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;safetime&quot;( in &quot;stime&quot; char(5) ) 
returns time
begin
  declare &quot;rv&quot; time;
  set &quot;rv&quot; = &quot;stime&quot;;
  return(&quot;rv&quot;)
exception
  when others then
    return(&#039;00:00&#039;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_scannedimagelinkallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ScannedImageLinkAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_scannedimagelinkallowed&amp;rev=1786130660</link>
        <description>﻿

pears.ScannedImageLinkAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ScannedImageLinkAllowed&quot;( 
  in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;placid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_sdsrequired&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SDSRequired</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_sdsrequired&amp;rev=1786130660</link>
        <description>﻿

pears.SDSRequired

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SDSRequired&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;COID&quot; char(20),in &quot;PID&quot; char(20) ) 
returns smallint
not deterministic
begin
  if &quot;WPKMaintainGetSwitchValue&quot;(&#039;IR35SDSON&#039;,&#039;&#039;,&#039;L&#039;) = &#039;N&#039; then return 0
  end if;
  --  if exists (select 1 from company where PrivateSecto…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_secagencystatuschangeallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SecAgencyStatusChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_secagencystatuschangeallowed&amp;rev=1786130660</link>
        <description>﻿

pears.SecAgencyStatusChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SecAgencyStatusChangeAllowed&quot;( 
  in &quot;persid&quot; char(20),in &quot;oldstatus&quot; char(1),in &quot;newstatus&quot; char(1) ) 
returns long varchar
-- If disallowed status change is blocked
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillbatchcomplete&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SelfbillBatchComplete</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillbatchcomplete&amp;rev=1786130660</link>
        <description>﻿

pears.SelfbillBatchComplete

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SelfbillBatchComplete&quot;( 
  in &quot;docid&quot; char(20) ) 
returns long varchar
begin
  -- This function will block with no message;
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillcustomcolumn&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SelfBillCustomColumn</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillcustomcolumn&amp;rev=1786130660</link>
        <description>﻿

pears.SelfBillCustomColumn

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SelfBillCustomColumn&quot;( 
  in &quot;SupplierCode&quot; char(20),in &quot;RecordType&quot; char(2) ) 
returns char(100)
begin
  -- RecordType M= Supplier Code Maint (this is for potential future expansion)
  -- SupplierCode=null means return column heading for RecordType 
  -- usual use is to show Self Bill Agreeme…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbilldescriptionfortimesheetline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SelfbillDescriptionForTimesheetLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbilldescriptionfortimesheetline&amp;rev=1786130660</link>
        <description>﻿

pears.SelfbillDescriptionForTimesheetLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SelfbillDescriptionForTimesheetLine&quot;( 
  in &quot;tslineid&quot; char(20),in &quot;suppliercode&quot; char(12) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = null;
  select &quot;string&quot;(&quot;person&quot;.&quot;name&quot;,&#039; - &#039;,&quot;temppayband&quot;.&quot;description&quot;,&#039;: &#039;,&quot;isnull&quot;(&quot;temptimesheetline&quot;.&quot;descrip…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillemailbodyandsubject&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SelfbillEMailBodyandSubject</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillemailbodyandsubject&amp;rev=1786130660</link>
        <description>﻿

pears.SelfbillEMailBodyandSubject

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SelfbillEMailBodyandSubject&quot;( 
  in &quot;docid&quot; char(20),in &quot;BodyorSubject&quot; char(1) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;invno&quot; char(12);
  declare &quot;coname&quot; char(30);
  declare &quot;crlf&quot; char(2);
  select &quot;ourref&quot; into &quot;invno&quot; from &quot;iqacdocument&quot; where &quot;documen…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillnominalfortimesheetline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SelfbillNominalForTimesheetLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillnominalfortimesheetline&amp;rev=1786130660</link>
        <description>﻿

pears.SelfbillNominalForTimesheetLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SelfbillNominalForTimesheetLine&quot;( 
  in &quot;tslineid&quot; char(20),in &quot;suppliercode&quot; char(12) ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  set &quot;rv&quot; = null;
  select &quot;staff&quot;.&quot;analysiscode&quot; into &quot;rv&quot; from &quot;temptimesheetline&quot; key join &quot;temptimesheet&quot; key join &quot;placement&quot;
      key joi…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillvatcodefortimesheetline&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SelfbillVATCodeForTimesheetLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_selfbillvatcodefortimesheetline&amp;rev=1786130660</link>
        <description>﻿

pears.SelfbillVATCodeForTimesheetLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SelfbillVATCodeForTimesheetLine&quot;( 
  in &quot;tslineid&quot; char(20),in &quot;suppliercode&quot; char(12) ) 
returns char(3)
begin
  declare &quot;rv&quot; char(3);
  select &quot;vatstatus&quot; into &quot;rv&quot; from &quot;iqacaccountsettings&quot; where &quot;accountcode&quot; = &quot;suppliercode&quot; and &quot;ledgerid&quot; = &#039;Purchase&#039;;
  return &quot;isnull&quot;(&quot;rv&quot;,…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_setpersonwillingness&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SetPersonWillingness</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_setpersonwillingness&amp;rev=1786130660</link>
        <description>﻿

pears.SetPersonWillingness

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SetPersonWillingness&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @PersonID char(20),in @Willingness smallint default null ) 
returns smallint
begin
  -- return codes: 0 = success, 1 = no such PersonID, 2 = no Willingness record for PersonID, 3 = other error
  -- ca…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_settempprovtimesheetstatus&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SetTempProvTimeSheetStatus</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_settempprovtimesheetstatus&amp;rev=1786130660</link>
        <description>﻿

pears.SetTempProvTimeSheetStatus

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SetTempProvTimeSheetStatus&quot;( in @TempProvTimeSheetID char(20),in @NewStatus integer,in @Description char(250),in @StaffID char(20),in @ExternalUserID char(40) ) 
returns char(250)
begin
  declare @OldStatus integer;
  declare @NewTempProvTimesheetHistoryID char(20);
  declare @SerialNumb…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftbackcolouroverride&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ShiftBackColourOverride</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftbackcolouroverride&amp;rev=1786130660</link>
        <description>﻿

pears.ShiftBackColourOverride

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ShiftBackColourOverride&quot;( in &quot;shiftid&quot; char(20),in &quot;planid&quot; char(20) ) 
returns integer
begin
  -- return 1 to apply colour
  if &quot;isnull&quot;(&quot;shiftid&quot;,&#039;&#039;) &gt; &#039;&#039; then
    -- shift logic
  end if;
  if &quot;isnull&quot;(&quot;planid&quot;,&#039;&#039;) &gt; &#039;&#039; then
    -- shiftplan logic
  end if;
  return 0
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftcolouroverride&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ShiftColourOverride</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftcolouroverride&amp;rev=1786130660</link>
        <description>﻿

pears.ShiftColourOverride

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ShiftColourOverride&quot;( in &quot;shiftid&quot; char(20),in &quot;planid&quot; char(20) ) 
returns integer
begin
  -- return 1 to apply colour
  if &quot;isnull&quot;(&quot;shiftid&quot;,&#039;&#039;) &gt; &#039;&#039; then
    -- shift logic
  end if;
  if &quot;isnull&quot;(&quot;planid&quot;,&#039;&#039;) &gt; &#039;&#039; then
    -- shiftplan logic
  end if;
  return 0
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftconsultants&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ShiftConsultants</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftconsultants&amp;rev=1786130660</link>
        <description>﻿

pears.ShiftConsultants

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ShiftConsultants&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;entby&quot; char(20),in &quot;entat&quot; timestamp,in &quot;fillby&quot; char(20),in &quot;fillat&quot; timestamp ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  if &quot;entby&quot; is not null then
    set &quot;rv&quot; = &quot;strin…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftmatchcustomcolumn&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ShiftMatchCustomColumn</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_shiftmatchcustomcolumn&amp;rev=1786130660</link>
        <description>﻿

pears.ShiftMatchCustomColumn

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ShiftMatchCustomColumn&quot;( 
  in &quot;RecordType&quot; char(2),in &quot;RecordID&quot; char(20),in &quot;ColNo&quot; tinyint ) 
returns char(100)
begin
  -- RecordType PR=Person Results, WP=Wizard Person, WR=Wizard Results 
  -- RecordID=null means return column heading for RecordType PR, WP, WR or null if custom column n…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_socialcarerecipientvacancy&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SocialCareRecipientVacancy</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_socialcarerecipientvacancy&amp;rev=1786130660</link>
        <description>﻿

pears.SocialCareRecipientVacancy

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SocialCareRecipientVacancy&quot;( in @recipientID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  -- shown on recipient vacancies view
  set &quot;rv&quot; = &#039;&#039;;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_socialmediaresolve&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SocialMediaResolve</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_socialmediaresolve&amp;rev=1786130660</link>
        <description>﻿

pears.SocialMediaResolve

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SocialMediaResolve&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;MediaName&quot; char(2),in &quot;Number&quot; char(100) ) 
returns char(100)
begin
  /* MediaName LI - LinkedIn TW - Twitter SK - Skype FB - Facebook */
  case &quot;MediaName&quot;
  when &#039;TW&#039; then
    case
    when &quot;Number&quot; li…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_softwizardcontroller&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SoftWizardController</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_softwizardcontroller&amp;rev=1786130660</link>
        <description>﻿

pears.SoftWizardController

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SoftWizardController&quot;( 
  in &quot;pWizardID&quot; char(20),in &quot;pPageID&quot; char(50),in &quot;pItem&quot; char(20) ) 
returns char(250)
deterministic
begin
  declare &quot;rv&quot; char(250);
  case &quot;pWizardID&quot;
  when &#039;DEFAULT&#039; then
    case &quot;pItem&quot;
    when &#039;nextPageID&#039; then
      case &quot;pPageID&quot;
      when null then
        …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_specialitylookup&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.SpecialityLookup</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_specialitylookup&amp;rev=1786130660</link>
        <description>﻿

pears.SpecialityLookup

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;SpecialityLookup&quot;( in &quot;VacID&quot; char(20),in &quot;ChoiceID&quot; char(4) ) 
returns char(255)
begin
  declare &quot;rv&quot; char(255);
  set &quot;rv&quot; = null;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_statementemailbody&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.StatementEmailBody</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_statementemailbody&amp;rev=1786130660</link>
        <description>﻿

pears.StatementEmailBody

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;StatementEmailBody&quot;( in &quot;accountcode&quot; char(12) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_striplinefeeds&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.StripLineFeeds</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_striplinefeeds&amp;rev=1786130660</link>
        <description>﻿

pears.StripLineFeeds

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;StripLineFeeds&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;s&quot; long varchar ) 
returns long varchar
begin
  return(&quot;replace&quot;(&quot;s&quot;,&quot;char&quot;(10),&#039;&#039;))
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tableexists&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TableExists</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tableexists&amp;rev=1786130660</link>
        <description>﻿

pears.TableExists

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TableExists&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @Creator char(128),in @TableName char(128) ) 
returns smallint
deterministic
begin
  /* If @Creator is null (NOT empty string) = all creators
Works for tables, views, global temporary but not local temporary */
  if ex…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempaidtempemaill&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempaidTempEmaill</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempaidtempemaill&amp;rev=1786130660</link>
        <description>﻿

pears.TempaidTempEmaill

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempaidTempEmaill&quot;( in &quot;pid&quot; char(20) ) 
returns varchar(100)
begin
  declare &quot;rv&quot; varchar(100);
  select &quot;isnull&quot;(&quot;person&quot;.&quot;payrollemailaddress&quot;,(select first &quot;phone&quot;.&quot;number&quot; from &quot;phone&quot; key join &quot;phonetype&quot;
      where &quot;phone&quot;.&quot;who&quot; = &#039;P&#039; and &quot;phone&quot;.&quot;whoid&quot; = &quot;pid&quot; and &quot;phonetype&quot;.&quot;name&quot; lik…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempcustomrategenerator&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempCustomRateGenerator</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempcustomrategenerator&amp;rev=1786130660</link>
        <description>﻿

pears.TempCustomRateGenerator

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempCustomRateGenerator&quot;( in &quot;ID&quot; char(20),in &quot;YearNo&quot; integer,in &quot;PeriodNo&quot; integer,in &quot;PeriodLength&quot; char(20),in &quot;PeriodStartDate&quot; date,in &quot;PeriodEndDate&quot; date,in &quot;PersID&quot; char(20),in &quot;VacID&quot; char(20),in &quot;PlacID&quot; char(20),in &quot;ProvTSID&quot; char(20),in &quot;BehaviourFlag&quot; smallint ) 
returns integ…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempdepttran&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.tempdepttran</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempdepttran&amp;rev=1786130660</link>
        <description>﻿

pears.tempdepttran

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;tempdepttran&quot;( in &quot;deptu&quot; char(1) ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  case &quot;deptu&quot;
  when &#039;D&#039; then set &quot;rv&quot; = &#039;TCT&#039;
  when &#039;G&#039; then set &quot;rv&quot; = &#039;TDR&#039;
  when &#039;I&#039; then set &quot;rv&quot; = &#039;TNP&#039;
  when &#039;Z&#039; then set &quot;rv&quot; = &#039;TLS&#039;
  else
    set &quot;rv&quot; = &#039;TIZ&#039;
  end case;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempdeskcustomcolumn&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempDeskCustomColumn</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempdeskcustomcolumn&amp;rev=1786130660</link>
        <description>﻿

pears.TempDeskCustomColumn

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempDeskCustomColumn&quot;( in &quot;DeskID&quot; char(20),in &quot;RecordType&quot; char(2),in &quot;RecordID&quot; char(20),in &quot;ColNo&quot; tinyint,in &quot;DeptID&quot; char(2) default null ) 
returns char(100)
begin
  -- DeskID will be % if Temp Desk selection = All
  -- RecordType P=Person V=Vacancy L=Placement T=Timesheet TP=Provisional…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempgetweekago&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempGetWeekAgo</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempgetweekago&amp;rev=1786130660</link>
        <description>﻿

pears.TempGetWeekAgo

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempGetWeekAgo&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;StartYear&quot; integer,in &quot;StartWeek&quot; integer,in &quot;WeeksAgo&quot; smallint ) 
returns integer
/* Function returns year and week in format: yyyyww */
begin
  declare &quot;MaxWeek&quot; smallint;
  if &quot;WeeksAgo&quot; &gt; 52 then
    return…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempholidaycalcitem&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempHolidayCalcItem</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempholidaycalcitem&amp;rev=1786130660</link>
        <description>﻿

pears.TempHolidayCalcItem

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempHolidayCalcItem&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;ValString&quot; long varchar,in &quot;Stat&quot; integer ) 
returns char(200)
begin
  return &quot;regexp_substr&quot;(&#039;&quot;&#039;+&quot;Valstring&quot;,&quot;string&quot;(&#039;(?&lt;=&quot;&#039;,&quot;Stat&quot;,&#039;=)[^&quot;]*&#039;))
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempprovtimesheetdeleteallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempProvTimesheetDeleteAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempprovtimesheetdeleteallowed&amp;rev=1786130660</link>
        <description>﻿

pears.TempProvTimesheetDeleteAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempProvTimesheetDeleteAllowed&quot;( 
  in &quot;Provid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  -- usual warn or block;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temprateprecision&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempRatePrecision</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temprateprecision&amp;rev=1786130660</link>
        <description>﻿

pears.TempRatePrecision

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempRatePrecision&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;TempUnits&quot; numeric ) 
returns numeric
begin
  declare &quot;rv&quot; numeric;
  select if &quot;isnull&quot;(&quot;TmpRatePrecision&quot;,0) = 2 then &quot;iqmoneyround&quot;(&quot;TempUnits&quot;) else &quot;round&quot;(&quot;TempUnits&quot;,&quot;TmpRatePrecision&quot;) endif into &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempShiftAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftallowed&amp;rev=1786130660</link>
        <description>﻿

pears.TempShiftAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempShiftAllowed&quot;( in &quot;planid&quot; char(20),in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftchangeofhoursallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempShiftChangeOfHoursAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftchangeofhoursallowed&amp;rev=1786130660</link>
        <description>﻿

pears.TempShiftChangeOfHoursAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempShiftChangeOfHoursAllowed&quot;( 
  in &quot;shiftid&quot; char(20),in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;timefrom&quot; time,in &quot;timeto&quot; time,in &quot;recoveryhours&quot; integer ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftconfirmationallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempShiftConfirmationAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftconfirmationallowed&amp;rev=1786130660</link>
        <description>﻿

pears.TempShiftConfirmationAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempShiftConfirmationAllowed&quot;( in &quot;shiftid&quot; char(20),in &quot;TempOrClient&quot; char(1),in &quot;NewVal&quot; smallint ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  if &quot;NewVal&quot; = 1 then
    set &quot;rv&quot; = &#039;&#039;;
    -- Return nothing if allowed
    -- TempOrClient T - Temp C - Client
    -- NewVa…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshifteditingallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempShiftEditingAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshifteditingallowed&amp;rev=1786130660</link>
        <description>﻿

pears.TempShiftEditingAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempShiftEditingAllowed&quot;( in &quot;planid&quot; char(20),in &quot;shiftid&quot; char(20),in &quot;EditOrCancel&quot; char(1),in &quot;Source&quot; char(3) ) 
returns long varchar
begin
  --  return nothing if allowed
  -- EditOrCancel E - Edit C - Cancel
  -- Source 
  -- TS - Tempdesk Shifts 
  -- VDD - Vacancy Diary Drag return…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftmatchdescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempShiftMatchDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftmatchdescription&amp;rev=1786130660</link>
        <description>﻿

pears.TempShiftMatchDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempShiftMatchDescription&quot;( in &quot;planid&quot; char(20) ) 
returns char(200)
begin
  return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftmatchskilldescription&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempShiftMatchSkillDescription</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftmatchskilldescription&amp;rev=1786130660</link>
        <description>﻿

pears.TempShiftMatchSkillDescription

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempShiftMatchSkillDescription&quot;( in &quot;planid&quot; char(20) ) 
returns char(200)
begin
  declare &quot;rv&quot; char(200);
  set &quot;rv&quot; = (select &quot;referencecode&quot; from &quot;tempshiftplan&quot; where &quot;tempshiftplanid&quot; = &quot;planid&quot;);
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftplanallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempShiftPlanAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempshiftplanallowed&amp;rev=1786130660</link>
        <description>﻿

pears.TempShiftPlanAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempShiftPlanAllowed&quot;( in &quot;vacid&quot; char(20),in &quot;shiftdate&quot; date,in &quot;timefrom&quot; time,in &quot;timeto&quot; time,in &quot;templateid&quot; char(20) ) 
returns long varchar
-- If date critical, date should be shown in return message for bulk shift adding 
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;r…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempslotstartdate&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.tempslotstartdate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempslotstartdate&amp;rev=1786130660</link>
        <description>﻿

pears.tempslotstartdate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;tempslotstartdate&quot;( in &quot;tsid&quot; char(20) ) 
returns date
begin
  declare &quot;rv&quot; date;
  select &quot;employment&quot;.&quot;startdate&quot; into &quot;rv&quot; from &quot;tempslot&quot; key join &quot;placement&quot; key join &quot;employment&quot;
    where &quot;tempslot&quot;.&quot;tempslotid&quot; = &quot;tsid&quot;;
  if &quot;rv&quot; is null then
    select &quot;weekenddate&quot;(&quot;tempslot&quot;.&quot;yearnumb…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcancel&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempTimesheetCancel</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcancel&amp;rev=1786130660</link>
        <description>﻿

pears.TempTimesheetCancel

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempTimesheetCancel&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;tscancelid&quot; char(20),in &quot;tsid&quot; char(20),in &quot;shiftcancreasonid&quot; char(1),in &quot;irecreate&quot; smallint,in @CorrectionType char(20) default &#039;BOTH&#039; ) 
returns char(20)
begin atomic
  declare &quot;newid&quot; char(20);
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcomplete&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempTimesheetComplete</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcomplete&amp;rev=1786130660</link>
        <description>﻿

pears.TempTimesheetComplete

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempTimesheetComplete&quot;( in @TempTimeSheetID char(20) ) 
returns char(250)
begin
  declare &quot;jobmasterid&quot; char(20);
  declare &quot;placeid&quot; char(20);
  declare &quot;persid&quot; char(20);
  declare &quot;vacid&quot; char(20);
  declare @period integer;
  declare &quot;maxdate&quot; date;
  declare &quot;mindate&quot; date;
  declare &quot;TS…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcompletewarning&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempTimesheetCompleteWarning</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetcompletewarning&amp;rev=1786130660</link>
        <description>﻿

pears.TempTimesheetCompleteWarning

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempTimesheetCompleteWarning&quot;( 
  in @TempTimeSheetID char(20) ) 
returns char(250)
begin
  return null
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetinvoice&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempTimesheetInvoice</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetinvoice&amp;rev=1786130660</link>
        <description>﻿

pears.TempTimesheetInvoice

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempTimesheetInvoice&quot;( in @TempTimeSheetID char(20) ) 
returns char(250)
begin
  -- anything other than &#039;&#039; will block invoicing this timesheet silently
  return &#039;&#039;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetselfbill&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempTimesheetSelfBill</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_temptimesheetselfbill&amp;rev=1786130660</link>
        <description>﻿

pears.TempTimesheetSelfBill

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempTimesheetSelfBill&quot;( 
  in @TempTimeSheetID char(20) ) 
returns char(250)
begin
  -- anything other than &#039;&#039; will block invoicing this timesheet silently
  return &#039;&#039;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatch&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempVacancyShiftMatch</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatch&amp;rev=1786130660</link>
        <description>﻿

pears.TempVacancyShiftMatch

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempVacancyShiftMatch&quot;( in @PersonID char(20),in @VacancyID char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  set &quot;rv&quot;
     = &quot;DistanceBetweenPostCodes&quot;(
    (select &quot;Person&quot;.&quot;PostCode&quot; from &quot;Person&quot; where &quot;Person&quot;.&quot;PersonID&quot; = @PersonID),
    (select &quot;isnull&quot;(&quot;vacancy&quot;.&quot;postcode&quot;,&quot;co…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatch2&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempVacancyShiftMatch2</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatch2&amp;rev=1786130660</link>
        <description>﻿

pears.TempVacancyShiftMatch2

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempVacancyShiftMatch2&quot;( in @PersonID char(20),in @VacancyID char(20) ) 
returns char(50)
begin
  -- Not passed to TempVacancyShiftMatchOrder needs to be looked up, if used
  declare &quot;rv&quot; char(50);
  set &quot;rv&quot; = null;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatchorder&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TempVacancyShiftMatchOrder</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_tempvacancyshiftmatchorder&amp;rev=1786130660</link>
        <description>﻿

pears.TempVacancyShiftMatchOrder

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TempVacancyShiftMatchOrder&quot;( in &quot;pScore&quot; double,in &quot;pCustom&quot; double,in &quot;pHighlight&quot; smallint,in &quot;Persid&quot; char(20),in &quot;Vacid&quot; char(20) ) 
returns double
begin
  -- Will sort in DESCENDING order of the value returned.
  -- pScore (the default) is the number of the shifts they can do with e…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_timesheetallowed&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TimesheetAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_timesheetallowed&amp;rev=1786130660</link>
        <description>﻿

pears.TimesheetAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TimesheetAllowed&quot;( in &quot;persid&quot; char(20),in &quot;vacid&quot; char(20),in &quot;placid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_timesheetdayhours&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.TimesheetDayHours</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_timesheetdayhours&amp;rev=1786130660</link>
        <description>﻿

pears.TimesheetDayHours

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;TimesheetDayHours&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;bprocess&quot; tinyint,in &quot;bprovisional&quot; tinyint,in &quot;tsid&quot; char(20),in &quot;pdate&quot; date ) 
returns double
begin
  declare &quot;rv&quot; double;
  declare &quot;placid&quot; char(20);
  declare &quot;vacid&quot; char(20);
  declare &quot;persid&quot; cha…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_uniquekey&amp;rev=1786130660">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.UniqueKey</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_uniquekey&amp;rev=1786130660</link>
        <description>﻿

pears.UniqueKey

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;UniqueKey&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;x&quot; char(50) default null ) 
returns char(20)
not deterministic
begin
  return &quot;string&quot;(&quot;IQXDBID&quot;,&quot;upper&quot;(&quot;right&quot;(&quot;inttohex&quot;(&quot;UniqSeq&quot;.&quot;NextVal&quot;),7)),&quot;right&quot;(&quot;dateformat&quot;(current timestamp,&#039;yyyymmddhhnn&#039;),11))
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_urlsafe&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.URLSafe</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_urlsafe&amp;rev=1786130662</link>
        <description>﻿

pears.URLSafe

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;URLSafe&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;OldString&quot; long varchar ) 
returns long varchar
begin
  -- Partial solution. Â£ is the only multi-byte utf-8 char handled. If possible use the Delphi or jobrunner httpsafe implementations
  declare &quot;NewString&quot; long varchar;
 …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyallowed&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyallowed&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyAllowed&quot;( in &quot;empid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancydetailscontents&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyDetailsContents</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancydetailscontents&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyDetailsContents

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyDetailsContents&quot;( in @SMSOrEmail char(1),in @CandidateOrVacancy char(1),in @ProgressIDs long varchar ) 
returns long varchar
begin
  -- @SMSorEmail S or E, @CandidateOrVacancy C or V, @ProgressIDs ID1,ID2... for sa_split_list(@ProgressIDs) 
  -- sample for candidate
  --   select firs…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyextrahols&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyExtraHols</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyextrahols&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyExtraHols

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyExtraHols&quot;( in @TempTimeSheetID char(20) ) 
returns double
begin
  declare &quot;rv&quot; double;
  -- check earns hol pay
  if exists(select * from &quot;temptimesheetline&quot; key join &quot;temppayband&quot; where &quot;temptimesheetid&quot; = @temptimesheetid and &quot;includeinholidaypay&quot; = 1) then
    select &quot;vacancy&quot;.&quot;ExtraHol…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyheadline&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyHeadline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyheadline&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyHeadline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyHeadline&quot;( in &quot;recordid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancykeywordscustom&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyKeyWordsCustom</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancykeywordscustom&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyKeyWordsCustom

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyKeyWordsCustom&quot;( 
  in @VacancyID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  return &quot;rv&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancykeywordsquestion&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyKeyWordsQuestion</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancykeywordsquestion&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyKeyWordsQuestion

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyKeyWordsQuestion&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @VacancyID char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  select &quot;list&quot;(distinct &quot;GetQuestAnswer&quot;(&quot;t&quot;.&quot;TagLocation&quot;,&quot;t&quot;.&quot;TagID&quot;,@VacancyID),&#039; &#039;)
    into &quot;rv&quot;
    from &quot;Ta…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyrecipientheadline&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyRecipientHeadline</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyrecipientheadline&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyRecipientHeadline

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyRecipientHeadline&quot;( in &quot;vacid&quot; char(20),in &quot;recipid&quot; char(20) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;Part&quot; long varchar;
  declare &quot;Ref&quot; long varchar;
  declare &quot;NewLine&quot; char(2);
  set &quot;NewLine&quot; = &quot;char&quot;(13)+&quot;Char&quot;(10);
  if &quot;recipid&quot; is null then
   …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyroleallowed&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyRoleAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancyroleallowed&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyRoleAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyRoleAllowed&quot;( in @EmploymentID char(20),in @VacancyID char(20),in @VacancyRoleID char(20) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  set &quot;RV&quot; = &#039;&#039;;
  return &quot;RV&quot;
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancystatuschangeallowed&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyStatusChangeAllowed</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancystatuschangeallowed&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyStatusChangeAllowed

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyStatusChangeAllowed&quot;( in &quot;vacid&quot; char(20),in &quot;oldstatus&quot; char(1),in &quot;newstatus&quot; char(1) ) 
returns long varchar
-- If change is disallowed you must set status back to oldstatus before returning an error message
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;rv&quot;)
end…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancytemprate&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VacancyTempRate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vacancytemprate&amp;rev=1786130662</link>
        <description>﻿

pears.VacancyTempRate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VacancyTempRate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;VacID&quot; char(20),in &quot;BandID&quot; char(20),in &quot;GradeID&quot; char(4),in &quot;pFilter1&quot; char(4),in &quot;pFilter2&quot; char(4),in &quot;pFilter3&quot; char(4),in &quot;dFrom&quot; date,in &quot;dTo&quot; date ) 
returns char(20)
begin
  declare &quot;rv&quot; char(20);
  se…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatedateofbirth&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidateDateOfBirth</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatedateofbirth&amp;rev=1786130662</link>
        <description>﻿

pears.ValidateDateOfBirth

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidateDateOfBirth&quot;( 
  in @DOB date,in @status char(1),in @persid char(20) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;RV&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateemailaddress&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidateEmailAddress</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateemailaddress&amp;rev=1786130662</link>
        <description>﻿

pears.ValidateEmailAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidateEmailAddress&quot;( 
  in @email varchar(200) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  select if(&quot;ISNULL&quot;(@email,&#039;&#039;) &lt;&gt; &#039;&#039; and @email like &#039;%@%._%&#039;) or(&quot;ISNULL&quot;(@email,&#039;&#039;) = &#039;&#039;) then &#039;&#039; else &#039;Invalid Email Address&#039; endif into &quot;rv&quot;;
  return(&quot;RV&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateemailaddressstd&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidateEmailAddressStd</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateemailaddressstd&amp;rev=1786130662</link>
        <description>﻿

pears.ValidateEmailAddressStd

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidateEmailAddressStd&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in @email varchar(200) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  set &quot;rv&quot; = if exists(select 1
      from &quot;sa_split_list&quot;(@email,&#039;;&#039;)
      where &quot;trim&quot;(&quot;row_value&quot;) not regexp &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatelinkedin&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidateLinkedIn</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatelinkedin&amp;rev=1786130662</link>
        <description>﻿

pears.ValidateLinkedIn

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidateLinkedIn&quot;( 
  in @LinkedIn varchar(200) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;RV&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateninumber&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidateNINumber</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateninumber&amp;rev=1786130662</link>
        <description>﻿

pears.ValidateNINumber

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidateNINumber&quot;( in @NI char(10) ) 
returns char(250)
begin
  // based on IR Quality Standard Validation Specification From April 2005 Version 2.0
  // Sep 2020 HMRC Rules advice
  //  The characters D, F, I, Q, U, and V are not used as either the first or second letter of a NINO prefix.
  //  T…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatepayroll&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidatePayroll</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validatepayroll&amp;rev=1786130662</link>
        <description>﻿

pears.ValidatePayroll

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidatePayroll&quot;( in &quot;recordid&quot; varchar(20),in @BankName varchar(30),in @BankAddr1 varchar(30),in @BankAddr2 varchar(30),in @BankSortCode varchar(8),in @BankAcName varchar(50),in @BankAcNo varchar(15),in @BankRef varchar(20),in @PayMethod tinyint,in @PayFrequency tinyint,in @TaxMethod tinyint,in @C…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateplacement&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidatePlacement</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validateplacement&amp;rev=1786130662</link>
        <description>﻿

pears.ValidatePlacement

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidatePlacement&quot;( 
  in &quot;Placid&quot; varchar(20),in &quot;Vacid&quot; varchar(20),in &quot;persid&quot; varchar(20),in &quot;jobtitle&quot; varchar(50) ) 
returns long varchar
begin
  declare &quot;RV&quot; long varchar;
  set &quot;rv&quot; = &#039;&#039;;
  return(&quot;RV&quot;)
end</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validationresults&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValidationResults</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_validationresults&amp;rev=1786130662</link>
        <description>﻿

pears.ValidationResults

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValidationResults&quot;()
returns long varchar
begin
  declare &quot;ValidationText&quot; long varchar;
  declare &quot;LoopCounter&quot; integer;
  declare &quot;NewLine&quot; char(2);
  set &quot;NewLine&quot; = &quot;char&quot;(13)+&quot;char&quot;(10);
  set &quot;LoopCounter&quot; = 0;
  for &quot;GetText&quot; as &quot;TextCursor&quot; dynamic scroll cursor for call &quot;sa_validate&quot;() d…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforawrinvoicefixedniwtrline&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValuesForAWRInvoiceFixedNIWTRLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforawrinvoicefixedniwtrline&amp;rev=1786130662</link>
        <description>﻿

pears.ValuesForAWRInvoiceFixedNIWTRLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValuesForAWRInvoiceFixedNIWTRLine&quot;( in &quot;tsid&quot; char(20),in &quot;tslineid&quot; char(20),in &quot;RecordType&quot; char(1) ) 
returns double
begin
  -- RecordType W - WTR N - NI
  declare &quot;vid&quot; char(20);
  declare &quot;cid&quot; char(20);
  declare &quot;rv&quot; double;
  set &quot;rv&quot; = 0;
  select &quot;companyid&quot;,&quot;vacancyid&quot; …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicefixedniline&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValuesForInvoiceFixedNILine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicefixedniline&amp;rev=1786130662</link>
        <description>﻿

pears.ValuesForInvoiceFixedNILine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValuesForInvoiceFixedNILine&quot;( in &quot;tsid&quot; char(20),in &quot;tslineid&quot; char(20),in &quot;RecordType&quot; char(1) ) 
returns long varchar
-- can do line specific stuff with timesheet line id
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;vex&quot; integer;
  set &quot;rv&quot; = null;
  case &quot;RecordType&quot;
  when &#039;D&#039; then…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicefixedwtrline&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValuesForInvoiceFixedWTRLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicefixedwtrline&amp;rev=1786130662</link>
        <description>﻿

pears.ValuesForInvoiceFixedWTRLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValuesForInvoiceFixedWTRLine&quot;( in &quot;tsid&quot; char(20),in &quot;tslineid&quot; char(20),in &quot;RecordType&quot; char(1) ) 
returns long varchar
-- can do line specific stuff with timesheet line id
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;vex&quot; integer;
  set &quot;rv&quot; = null;
  case &quot;RecordType&quot;
  when &#039;D&#039; th…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicenirechargeline&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.ValuesForInvoiceNIRechargeLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_valuesforinvoicenirechargeline&amp;rev=1786130662</link>
        <description>﻿

pears.ValuesForInvoiceNIRechargeLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;ValuesForInvoiceNIRechargeLine&quot;( in &quot;tsid&quot; char(20),in &quot;tslineid&quot; char(20),in &quot;RecordType&quot; char(1) ) 
returns long varchar
-- can do line specific stuff with timesheet line id
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;vex&quot; integer;
  set &quot;rv&quot; = null;
  case &quot;RecordType&quot;
  when &#039;D…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vatcodefortimesheetline&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.VATCodeForTimesheetLine</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_vatcodefortimesheetline&amp;rev=1786130662</link>
        <description>﻿

pears.VATCodeForTimesheetLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;VATCodeForTimesheetLine&quot;( in &quot;tslineid&quot; char(20) ) 
returns char(3)
begin
  declare &quot;rv&quot; char(3);
  declare &quot;flg&quot; char(20);
  declare &quot;vex&quot; smallint;
  declare &quot;vmrg&quot; smallint;
  return &#039;&#039;;
  select &quot;companyaccount&quot;.&quot;vatexempt&quot;,&quot;companyaccount&quot;.&quot;vatontempmargin&quot; into &quot;vex&quot;,&quot;vmrg&quot; from &quot;temp…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekcontaining&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.WeekContaining</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekcontaining&amp;rev=1786130662</link>
        <description>﻿

pears.WeekContaining

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;WeekContaining&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;d&quot; date ) 
returns integer
begin
  declare &quot;yr&quot; integer;
  declare &quot;wk&quot; integer;
  declare &quot;dt&quot; date;
  select &quot;max&quot;(&quot;yearnumber&quot;) into &quot;yr&quot; from &quot;payrollyear&quot; where(&quot;week1friday&quot;-7) &lt; &quot;d&quot;;
  select &quot;week1friday…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekenddate&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.weekenddate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekenddate&amp;rev=1786130662</link>
        <description>﻿

pears.weekenddate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;weekenddate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pyearno&quot; integer,in &quot;pweekno&quot; integer ) 
returns date
begin
  declare &quot;rv&quot; date;
  select &quot;week1friday&quot; into &quot;rv&quot; from &quot;payrollyear&quot; where &quot;yearnumber&quot; = &quot;pyearno&quot;;
  if &quot;rv&quot; is null then
    select &quot;week1friday&quot;+(&quot;nu…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekmonthenddate&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.weekmonthenddate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekmonthenddate&amp;rev=1786130662</link>
        <description>﻿

pears.weekmonthenddate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;weekmonthenddate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;perd&quot; integer,in &quot;worm&quot; char(1) ) 
returns date
begin
  declare &quot;rv&quot; date;
  declare &quot;w&quot; integer;
  declare &quot;y&quot; integer;
  set &quot;y&quot; = &quot;truncnum&quot;(&quot;perd&quot;,-2);
  set &quot;w&quot; = &quot;perd&quot;-&quot;y&quot;;
  set &quot;y&quot; = &quot;y&quot;/100;
  if &quot;…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekmonthstartdate&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.weekmonthstartdate</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_weekmonthstartdate&amp;rev=1786130662</link>
        <description>﻿

pears.weekmonthstartdate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;weekmonthstartdate&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;perd&quot; integer,in &quot;worm&quot; char(1) ) 
returns date
begin
  declare &quot;rv&quot; date;
  declare &quot;w&quot; integer;
  declare &quot;y&quot; integer;
  set &quot;y&quot; = &quot;truncnum&quot;(&quot;perd&quot;,-2);
  set &quot;w&quot; = &quot;perd&quot;-&quot;y&quot;;
  set &quot;y&quot; = &quot;y&quot;/100;
  …</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkgetswitchvalue&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.WPKGetSwitchValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkgetswitchvalue&amp;rev=1786130662</link>
        <description>﻿

pears.WPKGetSwitchValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;WPKGetSwitchValue&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;SwitchID&quot; char(20),in &quot;SwitchLocation&quot; char(20) ) 
returns long varchar
begin
  declare &quot;srce&quot; char(1);
  declare &quot;rv&quot; long varchar;
  select &quot;source&quot; into &quot;srce&quot; from &quot;wpkglobalswitch&quot; where &quot;wpkglobalswi…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpklocalswitchvalue&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.WPKLocalSwitchValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpklocalswitchvalue&amp;rev=1786130662</link>
        <description>﻿

pears.WPKLocalSwitchValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;WPKLocalSwitchValue&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;SwitchID&quot; char(20),in &quot;SwitchLocation&quot; char(20),in &quot;SwitchSource&quot; char(1),in &quot;SwitchLocked&quot; smallint,in &quot;SwitchLocalisable&quot; smallint ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  set &quot;rv…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkmaintaingetswitchvalue&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.WPKMaintainGetSwitchValue</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkmaintaingetswitchvalue&amp;rev=1786130662</link>
        <description>﻿

pears.WPKMaintainGetSwitchValue

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;WPKMaintainGetSwitchValue&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;SwitchID&quot; char(20),in &quot;SwitchLocation&quot; char(20),in &quot;SwitchSource&quot; char(1) ) 
returns long varchar
begin
  declare &quot;rv&quot; long varchar;
  declare &quot;param&quot; char(100);
  declare &quot;def&quot; long varcha…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkuserperformsrole&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.WPKUserPerformsRole</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wpkuserperformsrole&amp;rev=1786130662</link>
        <description>﻿

pears.WPKUserPerformsRole

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;WPKUserPerformsRole&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;sStaffID&quot; char(20),in &quot;sRole&quot; char(31) ) 
returns integer
begin
  if &quot;sRole&quot; = any(select &quot;WPKRoleID&quot; from &quot;WPKAssignedRole&quot; where &quot;OwnerID&quot; = &quot;sStaffID&quot; and &quot;isnull&quot;(&quot;Expires&quot;,current date) &gt;= current…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wtd_holiday_stat&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.wtd_holiday_stat</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wtd_holiday_stat&amp;rev=1786130662</link>
        <description>﻿

pears.wtd_holiday_stat

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;wtd_holiday_stat&quot;( in &quot;pid&quot; char(20),in &quot;yr&quot; integer,in &quot;wk&quot; integer,in &quot;Stat&quot; integer ) 
returns real
/* Stat parameter values- 
0: 1=qualifies for hol pay (i.e. Stat 1 &gt;= 13), 0=does not qualify
1: Weeks worked this holiday year (if still working or stopped &gt;= last week)  
2: As 1 but pre 23/11/…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wtd_start_of_hol_year&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pears.wtd_start_of_hol_year</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:pears_wtd_start_of_hol_year&amp;rev=1786130662</link>
        <description>﻿

pears.wtd_start_of_hol_year

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Original SQL


create function &quot;pears&quot;.&quot;wtd_start_of_hol_year&quot;( 
  /* Application Maintained Function / Procedure - DO NOT EDIT*/
  in &quot;pid&quot; char(20),in &quot;yr&quot; integer,in &quot;wk&quot; integer ) 
returns date
begin
  declare &quot;sdate&quot; date;
  declare &quot;wedate&quot; date;
  set &quot;wedate&quot; = &quot;date&quot;(&quot;weekenddate&quot;(&quot;yr&quot;,&quot;wk&quot;));
  if &quot;wedate&quot; is null then --…</description>
    </item>
    <item rdf:about="https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:start&amp;rev=1786130662">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-07T19:24:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Functions</title>
        <link>https://iqxusers.co.uk/iqxhelp/doku.php?id=database:functions:start&amp;rev=1786130662</link>
        <description>﻿

Functions

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

	*  pears.AccordCompCode
	*  pears.AccordEmployeeCode
	*  pears.AccordERNITimesheet
	*  pears.AccordPayrollCode
	*  pears.AddRecoveryHours
	*  pears.AddressValidation
	*  pears.AdjustPayForceNI
	*  pears.AgencyIDForRateScript
	*  pears.AutoMatchShiftMatchOrder
	*  pears.AWREntityGrade
	*  pears.AWRGap
	*  pears.AWRPlacement
	*  pears.AWRQualified
	*…</description>
    </item>
</rdf:RDF>
