<?php

	// Perform Login
    $SHORTCODE_STATUS = PHPCUS_SHORTCODE::CUS_QUICK_LOGIN();
	
	// Check Array Input
	PHPCUS_PARAM::CUS_DOES_NOT_SUPPORT_ARRAY();
	
	// Check already authenticated
	PHPCUS_PARAM::CUS_REQUIRES_AUTHENTICATION();
	// Check access rights
	PHPCUS_PARAM::CUS_HAS_PERMISSION(PHPCUS_SYSTEM::AUTHORITY_VIEW_ONLY, 'record_pos_return');
	
	if
	(
		PHPRC_HTTP_PARAM::REF_ISSET_IN_ARRAY
		(
			[
					'PARAM_REC_POSRETURN_ID',
					'PARAM_REC_POSRETURN_CODE',
					'PARAM_REC_POSRETURN_ACC_GROUP_ID',
					'PARAM_REC_POSRETURN_REC_POSDEVICE_ID',
					'PARAM_REC_POSRETURN_REC_POSSALE_ID',
					'PARAM_REC_POSRETURN_REC_CLIENT_ID',
					'PARAM_REC_POSRETURN_REC_LOYALTY_ID',
					'PARAM_REC_POSRETURN_REMARKS',
					'PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_FROM',
					'PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_TO',
					'PARAM_REC_POSRETURN_TOTAL_DISCOUNT_FROM',
					'PARAM_REC_POSRETURN_TOTAL_DISCOUNT_TO',
					'PARAM_REC_POSRETURN_TOTAL_VATABLE_FROM',
					'PARAM_REC_POSRETURN_TOTAL_VATABLE_TO',
					'PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_FROM',
					'PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_TO',
					'PARAM_REC_POSRETURN_TOTAL_NONVAT_FROM',
					'PARAM_REC_POSRETURN_TOTAL_NONVAT_TO',
					'PARAM_REC_POSRETURN_TOTAL_ZERORATED_FROM',
					'PARAM_REC_POSRETURN_TOTAL_ZERORATED_TO',
					'PARAM_REC_POSRETURN_TOTAL_VATOTHER_FROM',
					'PARAM_REC_POSRETURN_TOTAL_VATOTHER_TO',
					'PARAM_REC_POSRETURN_TOTAL_VAT_FROM',
					'PARAM_REC_POSRETURN_TOTAL_VAT_TO',
					'PARAM_REC_POSRETURN_TOTAL_VAT_LESS_FROM',
					'PARAM_REC_POSRETURN_TOTAL_VAT_LESS_TO',
					'PARAM_REC_POSRETURN_TOTAL_POINT_FROM',
					'PARAM_REC_POSRETURN_TOTAL_POINT_TO',
					'PARAM_REC_POSRETURN_ACC_ACCOUNT_ID',
					'PARAM_REC_POSRETURN_DATE_PROCESSED_FROM',
					'PARAM_REC_POSRETURN_DATE_PROCESSED_TO',
					'PARAM_REC_POSRETURN_STATUS',
					
					'PARAM_ORDER_FIELD',
					'PARAM_ORDER_TYPE',
					'PARAM_SKIP',
					'PARAM_LIMIT'
			], True
		)
	)
	{
		Try
		{
			// Read params
			// ------------------------------------------------------------------	
			$PARAM_REC_POSRETURN_ID = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_REC_POSRETURN_ID');
			$PARAM_REC_POSRETURN_CODE = PHPCUS_PARAM::CUS_READ_NVARCHAR('PARAM_REC_POSRETURN_CODE');
			$PARAM_REC_POSRETURN_ACC_GROUP_ID = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_REC_POSRETURN_ACC_GROUP_ID');
			$PARAM_REC_POSRETURN_REC_POSDEVICE_ID = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_REC_POSRETURN_REC_POSDEVICE_ID');
			$PARAM_REC_POSRETURN_REC_POSSALE_ID = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_REC_POSRETURN_REC_POSSALE_ID');
			$PARAM_REC_POSRETURN_REC_CLIENT_ID = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_REC_POSRETURN_REC_CLIENT_ID');
			$PARAM_REC_POSRETURN_REC_LOYALTY_ID = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_REC_POSRETURN_REC_LOYALTY_ID');
			$PARAM_REC_POSRETURN_REMARKS = PHPCUS_PARAM::CUS_READ_NVARCHAR('PARAM_REC_POSRETURN_REMARKS');
			$PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_FROM');
			$PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_TO');
			$PARAM_REC_POSRETURN_TOTAL_DISCOUNT_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_DISCOUNT_FROM');
			$PARAM_REC_POSRETURN_TOTAL_DISCOUNT_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_DISCOUNT_TO');
			$PARAM_REC_POSRETURN_TOTAL_VATABLE_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VATABLE_FROM');
			$PARAM_REC_POSRETURN_TOTAL_VATABLE_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VATABLE_TO');
			$PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_FROM');
			$PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_TO');
			$PARAM_REC_POSRETURN_TOTAL_NONVAT_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_NONVAT_FROM');
			$PARAM_REC_POSRETURN_TOTAL_NONVAT_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_NONVAT_TO');
			$PARAM_REC_POSRETURN_TOTAL_ZERORATED_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_ZERORATED_FROM');
			$PARAM_REC_POSRETURN_TOTAL_ZERORATED_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_ZERORATED_TO');
			$PARAM_REC_POSRETURN_TOTAL_VATOTHER_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VATOTHER_FROM');
			$PARAM_REC_POSRETURN_TOTAL_VATOTHER_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VATOTHER_TO');
			$PARAM_REC_POSRETURN_TOTAL_VAT_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VAT_FROM');
			$PARAM_REC_POSRETURN_TOTAL_VAT_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VAT_TO');
			$PARAM_REC_POSRETURN_TOTAL_VAT_LESS_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VAT_LESS_FROM');
			$PARAM_REC_POSRETURN_TOTAL_VAT_LESS_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_VAT_LESS_TO');
			$PARAM_REC_POSRETURN_TOTAL_POINT_FROM = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_POINT_FROM');
			$PARAM_REC_POSRETURN_TOTAL_POINT_TO = PHPCUS_PARAM::CUS_READ_DECIMAL('PARAM_REC_POSRETURN_TOTAL_POINT_TO');
			$PARAM_REC_POSRETURN_ACC_ACCOUNT_ID = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_REC_POSRETURN_ACC_ACCOUNT_ID');
			$PARAM_REC_POSRETURN_DATE_PROCESSED_FROM = PHPCUS_PARAM::CUS_READ_DATETIME('PARAM_REC_POSRETURN_DATE_PROCESSED_FROM');
			$PARAM_REC_POSRETURN_DATE_PROCESSED_TO = PHPCUS_PARAM::CUS_READ_DATETIME('PARAM_REC_POSRETURN_DATE_PROCESSED_TO');
			$PARAM_REC_POSRETURN_STATUS = PHPCUS_PARAM::CUS_READ_INT('PARAM_REC_POSRETURN_STATUS');
			
			$PARAM_ORDER_FIELD = PHPCUS_PARAM::CUS_READ_SORT_FIELD
			(
					'PARAM_ORDER_FIELD',
					[
						'REC_POSRETURN_ID', 
						'REC_POSRETURN_CODE', 
						'REC_POSRETURN_ACC_GROUP_ID', 
						'REC_POSRETURN_REC_POSDEVICE_ID', 
						'REC_POSRETURN_REC_POSSALE_ID', 
						'REC_POSRETURN_REC_CLIENT_ID', 
						'REC_POSRETURN_REC_LOYALTY_ID', 
						'REC_POSRETURN_REMARKS', 
						'REC_POSRETURN_TOTAL_SUBTOTAL', 
						'REC_POSRETURN_TOTAL_DISCOUNT', 
						'REC_POSRETURN_TOTAL_VATABLE', 
						'REC_POSRETURN_TOTAL_VATEXEMPT', 
						'REC_POSRETURN_TOTAL_NONVAT', 
						'REC_POSRETURN_TOTAL_ZERORATED', 
						'REC_POSRETURN_TOTAL_VATOTHER', 
						'REC_POSRETURN_TOTAL_VAT', 
						'REC_POSRETURN_TOTAL_VAT_LESS', 
						'REC_POSRETURN_TOTAL_POINT', 
						'REC_POSRETURN_ACC_ACCOUNT_ID', 
						'REC_POSRETURN_DATE_PROCESSED', 
						'REC_POSRETURN_STATUS'
						, 
						'ACC_GROUP_ID',		
						'ACC_GROUP_DESCRIPTION',		
						'ACC_GROUP_STATUS',		
						'ACC_GROUP_SYSTEM_GENERATED',		
						'REC_POSDEVICE_ID',		
						'REC_POSDEVICE_ACC_GROUP_ID',		
						'REC_POSDEVICE_DESCRIPTION',		
						'REC_POSDEVICE_MODEL',		
						'REC_POSDEVICE_CODE',		
						'REC_POSDEVICE_OS',		
						'REC_POSDEVICE_MACHINE_ID',		
						'REC_POSDEVICE_PERMIT_NUMBER',		
						'REC_POSDEVICE_DATE_ACCREDITED',		
						'REC_POSDEVICE_ADDRESS',		
						'REC_POSDEVICE_CONTACT',		
						'REC_POSDEVICE_TIN',		
						'REC_POSDEVICE_REGISTRATION_ACC_ACCOUNT_ID',		
						'REC_POSDEVICE_DATE_REGISTERED',		
						'REC_POSDEVICE_PROCESSED_ACC_ACCOUNT_ID',		
						'REC_POSDEVICE_DATE_PROCESSED',		
						'REC_POSDEVICE_STATUS',		
						'REC_POSSALE_ID',		
						'REC_POSSALE_ACC_GROUP_ID',		
						'REC_POSSALE_REC_POSDEVICE_ID',		
						'REC_POSSALE_REC_CLIENT_ID',		
						'REC_POSSALE_REC_LOYALTY_ID',		
						'REC_POSSALE_CODE',		
						'REC_POSSALE_TOTAL_SUBTOTAL',		
						'REC_POSSALE_TOTAL_DISCOUNT',		
						'REC_POSSALE_TOTAL_VATABLE',		
						'REC_POSSALE_TOTAL_VATEXEMPT',		
						'REC_POSSALE_TOTAL_NONVAT',		
						'REC_POSSALE_TOTAL_ZERORATED',		
						'REC_POSSALE_TOTAL_VATOTHER',		
						'REC_POSSALE_TOTAL_VAT',		
						'REC_POSSALE_TOTAL_VAT_LESS',		
						'REC_POSSALE_TOTAL_POINT',		
						'REC_POSSALE_TOTAL_RTN_SUBTOTAL',		
						'REC_POSSALE_TOTAL_PAID',		
						'REC_POSSALE_DATE_PAID',		
						'REC_POSSALE_REMARKS',		
						'REC_POSSALE_ACC_ACCOUNT_ID',		
						'REC_POSSALE_DATE_TRANSACT',		
						'REC_POSSALE_STATUS',		
						'REC_POSSALE_CAT_PAYTERM_ID',		
						'REC_CLIENT_ID',		
						'REC_CLIENT_CODE',		
						'REC_CLIENT_LASTNAME',		
						'REC_CLIENT_FIRSTNAME',		
						'REC_CLIENT_MIDDLENAME',		
						'REC_CLIENT_CAT_SUFFIX_ID',		
						'REC_CLIENT_SYS_GENDER_ID',		
						'REC_CLIENT_CONTACT',		
						'REC_CLIENT_EMAIL',		
						'REC_CLIENT_CAT_COMPANY_ID',		
						'REC_CLIENT_STATUS',		
						'REC_LOYALTY_ID',		
						'REC_LOYALTY_REC_CLIENT_ID',		
						'REC_LOYALTY_REC_LOYALTY_ID',		
						'REC_LOYALTY_CODE',		
						'REC_LOYALTY_BALANCE',		
						'REC_LOYALTY_DATE_EFFECTIVE',		
						'REC_LOYALTY_DATE_EXPIRY',		
						'REC_LOYALTY_STATUS',		
						'REC_LOYALTY_SYSTEM_GENERATED',		
						'ACC_ACCOUNT_ID',		
						'ACC_ACCOUNT_SERVER_ID',		
						'ACC_ACCOUNT_ACC_LEVEL_ID',		
						'ACC_ACCOUNT_ACC_GROUP_ID',		
						'ACC_ACCOUNT_ADD_RESOURCE_ID',		
						'ACC_ACCOUNT_USERNAME',		
						'ACC_ACCOUNT_PASSWORD',		
						'ACC_ACCOUNT_AUTH_CODE',		
						'ACC_ACCOUNT_FIRST_NAME',		
						'ACC_ACCOUNT_MIDDLE_NAME',		
						'ACC_ACCOUNT_LAST_NAME',		
						'ACC_ACCOUNT_POSITION',		
						'ACC_ACCOUNT_SYS_GENDER_ID',		
						'ACC_ACCOUNT_STATUS',		
						'ACC_ACCOUNT_SYSTEM_GENERATED'		
					]
			);		
			$PARAM_ORDER_TYPE = PHPCUS_PARAM::CUS_READ_SORT_TYPE('PARAM_ORDER_TYPE');
			$PARAM_SKIP	= PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_SKIP');
			$PARAM_LIMIT = PHPCUS_PARAM::CUS_READ_BIGINT('PARAM_LIMIT');
			
			// ------------------------------------------------------------------
			
			
			// Populate Map Array
			// ...........................................
			$GET_MAP_ARRAY = PHPCUS_RECORD_POS_RETURN::CUS_PREPARE_MAPPED_ARRAY_FOR_GET();
			
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_ID'] = $PARAM_REC_POSRETURN_ID;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_CODE'] = $PARAM_REC_POSRETURN_CODE;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_ACC_GROUP_ID'] = $PARAM_REC_POSRETURN_ACC_GROUP_ID;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_REC_POSDEVICE_ID'] = $PARAM_REC_POSRETURN_REC_POSDEVICE_ID;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_REC_POSSALE_ID'] = $PARAM_REC_POSRETURN_REC_POSSALE_ID;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_REC_CLIENT_ID'] = $PARAM_REC_POSRETURN_REC_CLIENT_ID;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_REC_LOYALTY_ID'] = $PARAM_REC_POSRETURN_REC_LOYALTY_ID;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_REMARKS'] = $PARAM_REC_POSRETURN_REMARKS;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_FROM'] = $PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_TO'] = $PARAM_REC_POSRETURN_TOTAL_SUBTOTAL_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_DISCOUNT_FROM'] = $PARAM_REC_POSRETURN_TOTAL_DISCOUNT_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_DISCOUNT_TO'] = $PARAM_REC_POSRETURN_TOTAL_DISCOUNT_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VATABLE_FROM'] = $PARAM_REC_POSRETURN_TOTAL_VATABLE_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VATABLE_TO'] = $PARAM_REC_POSRETURN_TOTAL_VATABLE_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_FROM'] = $PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_TO'] = $PARAM_REC_POSRETURN_TOTAL_VATEXEMPT_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_NONVAT_FROM'] = $PARAM_REC_POSRETURN_TOTAL_NONVAT_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_NONVAT_TO'] = $PARAM_REC_POSRETURN_TOTAL_NONVAT_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_ZERORATED_FROM'] = $PARAM_REC_POSRETURN_TOTAL_ZERORATED_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_ZERORATED_TO'] = $PARAM_REC_POSRETURN_TOTAL_ZERORATED_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VATOTHER_FROM'] = $PARAM_REC_POSRETURN_TOTAL_VATOTHER_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VATOTHER_TO'] = $PARAM_REC_POSRETURN_TOTAL_VATOTHER_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VAT_FROM'] = $PARAM_REC_POSRETURN_TOTAL_VAT_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VAT_TO'] = $PARAM_REC_POSRETURN_TOTAL_VAT_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VAT_LESS_FROM'] = $PARAM_REC_POSRETURN_TOTAL_VAT_LESS_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_VAT_LESS_TO'] = $PARAM_REC_POSRETURN_TOTAL_VAT_LESS_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_POINT_FROM'] = $PARAM_REC_POSRETURN_TOTAL_POINT_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_TOTAL_POINT_TO'] = $PARAM_REC_POSRETURN_TOTAL_POINT_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_ACC_ACCOUNT_ID'] = $PARAM_REC_POSRETURN_ACC_ACCOUNT_ID;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_DATE_PROCESSED_FROM'] = $PARAM_REC_POSRETURN_DATE_PROCESSED_FROM;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_DATE_PROCESSED_TO'] = $PARAM_REC_POSRETURN_DATE_PROCESSED_TO;
			$GET_MAP_ARRAY['PARAM_REC_POSRETURN_STATUS'] = $PARAM_REC_POSRETURN_STATUS;
			
			$GET_MAP_ARRAY["PARAM_ORDER_FIELD"] = $PARAM_ORDER_FIELD;
			$GET_MAP_ARRAY["PARAM_ORDER_TYPE"] = $PARAM_ORDER_TYPE;
			$GET_MAP_ARRAY["PARAM_SKIP"] = $PARAM_SKIP;
			$GET_MAP_ARRAY["PARAM_LIMIT"] = $PARAM_LIMIT;
			
			
			// Execute Stored Procedure
			// ...........................................
			$DATA_SET = PHPCUS_RECORD_POS_RETURN::CUS_GET_MA($GET_MAP_ARRAY);
			
						
			// Return JSON response
			// ...........................................
			if(empty($DATA_SET) === False)
			{
				PHPCUS_PARAM::CUS_JSON_SUCCESS($DATA_SET);
			}
			else
			{
				PHPCUS_PARAM::CUS_JSON_SUCCESS('');
			}
			
		}
		Catch(Exception $ERR)
		{		
			PHPVC_LOG::VAR_REPORT_ERROR($ERR, 0);
			if(isset($_SERVER['HTTP_ORIGIN']))
			{
			    PHPVC_LOG::VAR_ERROR('HTTP_ORIGIN', $_SERVER['HTTP_ORIGIN']);
			}
			if(isset($_SERVER['HTTP_HOST']))
			{
			    PHPVC_LOG::VAR_ERROR('HTTP_HOST', $_SERVER['HTTP_HOST']);
			}		
			if(isset($_SERVER['HTTP_REFERER']))
			{
			    PHPVC_LOG::VAR_ERROR('HTTP_REFERER', $_SERVER['HTTP_REFERER']);
			}
			if(isset($_SERVER['REMOTE_ADDR']))
			{
			    PHPVC_LOG::VAR_ERROR('REMOTE_ADDR', $_SERVER['REMOTE_ADDR']);
			}
			
			PHPCUS_PARAM::CUS_JSON_ERROR($ERR->getMessage());
		}
	}
	else
	{
		PHPCUS_PARAM::CUS_JSON_ERROR('Missing parameters');
	}

?>