<?php
global $runnerTableSettings;
$runnerTableSettings['pending_augmentation_requests'] = array(
	'name' => 'pending_augmentation_requests',
	'type' => 1,
	'shortName' => 'augmentation_request1',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'afterEditDetails' => 'pending_augmentation_requests',
	'afterAddDetail' => 'pending_augmentation_requests',
	'detailsBadgeColor' => 'e67349',
	'strOrderBy' => 'ORDER BY
	ar.augmentation_request_id DESC',
	'orderInfo' => array( 
		array(
			'index' => 1,
			'dir' => 'DESC',
			'field' => 'augmentation_request_id' 
		) 
	),
	'sql' => 'SELECT
	ar.augmentation_request_id,
	ar.request_no,
	ar.ris_no,
	ar.request_date,
	ar.date_needed,
	ar.request_channel,
	ar.request_type_id,
	ar.mother_facility_id,
	mf.facility_code,
	mf.facility_name,
	ar.requesting_office,
	ar.office_bureau,
	ar.division_unit,
	ar.organization_id,
	ar.requestor_name,
	ar.requestor_position,
	ar.requestor_contact_no,
	ar.requestor_email,
	ar.delivery_site,
	ar.delivery_date,
	ar.address,
	ar.contact_person,
	ar.contact_number,
	ar.disaster_type,
	ar.purpose,
	ar.remarks,
	ar.justification,
	ar.status,
	ar.current_step,
	ar.allocation_status,
	ar.dromic_allocation_go_signal_status,
	ar.dromic_sync_status,
	ar.created_by,
	ar.created_at,
	ar.updated_by,
	ar.updated_at
FROM
	augmentation_request AS ar
	LEFT OUTER JOIN mother_facility AS mf ON mf.id = ar.mother_facility_id
WHERE
ar.status = \'PENDING\' AND ar.allocation_status IN (
        \'FOR_ALLOCATION\',
        \'WAITING_DROMIC_CONFIRMATION\'
    )
ORDER BY
	ar.augmentation_request_id DESC
',
	'keyFields' => array( 
		'augmentation_request_id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'augmentation_request_id' => array(
			'name' => 'augmentation_request_id',
			'goodName' => 'augmentation_request_id',
			'strField' => 'augmentation_request_id',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'ar.augmentation_request_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'request_no' => array(
			'name' => 'request_no',
			'goodName' => 'request_no',
			'strField' => 'request_no',
			'index' => 2,
			'sqlExpression' => 'ar.request_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'request_type_id' => array(
			'name' => 'request_type_id',
			'goodName' => 'request_type_id',
			'strField' => 'request_type_id',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'ar.request_type_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'augmentation_request_type',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'request_type_id',
					'lookupDisplayField' => 'request_type_code',
					'lookupAllowAdd' => true 
				) 
			),
			'tableName' => 'augmentation_request',
			'viewLinkTable' => 'augmentation_request_type',
			'viewLinkLookup' => true 
		),
		'request_date' => array(
			'name' => 'request_date',
			'goodName' => 'request_date',
			'strField' => 'request_date',
			'index' => 4,
			'type' => 7,
			'sqlExpression' => 'ar.request_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'date_needed' => array(
			'name' => 'date_needed',
			'goodName' => 'date_needed',
			'strField' => 'date_needed',
			'index' => 5,
			'type' => 7,
			'sqlExpression' => 'ar.date_needed',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'request_channel' => array(
			'name' => 'request_channel',
			'goodName' => 'request_channel',
			'strField' => 'request_channel',
			'index' => 6,
			'type' => 129,
			'sqlExpression' => 'ar.request_channel',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'portal',
						'internal' 
					) 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'requesting_office' => array(
			'name' => 'requesting_office',
			'goodName' => 'requesting_office',
			'strField' => 'requesting_office',
			'index' => 11,
			'sqlExpression' => 'ar.requesting_office',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'office_bureau' => array(
			'name' => 'office_bureau',
			'goodName' => 'office_bureau',
			'strField' => 'office_bureau',
			'index' => 12,
			'sqlExpression' => 'ar.office_bureau',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'defaultValue' => 'DRMB' 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'division_unit' => array(
			'name' => 'division_unit',
			'goodName' => 'division_unit',
			'strField' => 'division_unit',
			'index' => 13,
			'sqlExpression' => 'ar.division_unit',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'organization_id' => array(
			'name' => 'organization_id',
			'goodName' => 'organization_id',
			'strField' => 'organization_id',
			'index' => 14,
			'type' => 3,
			'sqlExpression' => 'ar.organization_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'augmentation_organization',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'organization_id',
					'lookupDisplayField' => 'organization_name' 
				) 
			),
			'tableName' => 'augmentation_request',
			'viewLinkTable' => 'augmentation_organization',
			'viewLinkLookup' => true 
		),
		'requestor_name' => array(
			'name' => 'requestor_name',
			'goodName' => 'requestor_name',
			'strField' => 'requestor_name',
			'index' => 15,
			'sqlExpression' => 'ar.requestor_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'requestor_position' => array(
			'name' => 'requestor_position',
			'goodName' => 'requestor_position',
			'strField' => 'requestor_position',
			'index' => 16,
			'sqlExpression' => 'ar.requestor_position',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'requestor_contact_no' => array(
			'name' => 'requestor_contact_no',
			'goodName' => 'requestor_contact_no',
			'strField' => 'requestor_contact_no',
			'index' => 17,
			'sqlExpression' => 'ar.requestor_contact_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'requestor_email' => array(
			'name' => 'requestor_email',
			'goodName' => 'requestor_email',
			'strField' => 'requestor_email',
			'index' => 18,
			'sqlExpression' => 'ar.requestor_email',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'delivery_site' => array(
			'name' => 'delivery_site',
			'goodName' => 'delivery_site',
			'strField' => 'delivery_site',
			'index' => 19,
			'sqlExpression' => 'ar.delivery_site',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'address' => array(
			'name' => 'address',
			'goodName' => 'address',
			'strField' => 'address',
			'index' => 21,
			'type' => 201,
			'sqlExpression' => 'ar.address',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'disaster_type' => array(
			'name' => 'disaster_type',
			'goodName' => 'disaster_type',
			'strField' => 'disaster_type',
			'index' => 24,
			'sqlExpression' => 'ar.disaster_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'purpose' => array(
			'name' => 'purpose',
			'goodName' => 'purpose',
			'strField' => 'purpose',
			'index' => 25,
			'type' => 201,
			'sqlExpression' => 'ar.purpose',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'justification' => array(
			'name' => 'justification',
			'goodName' => 'justification',
			'strField' => 'justification',
			'index' => 27,
			'type' => 201,
			'sqlExpression' => 'ar.justification',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'current_step' => array(
			'name' => 'current_step',
			'goodName' => 'current_step',
			'strField' => 'current_step',
			'index' => 29,
			'sqlExpression' => 'ar.current_step',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'created_by' => array(
			'name' => 'created_by',
			'goodName' => 'created_by',
			'strField' => 'created_by',
			'index' => 33,
			'type' => 3,
			'sqlExpression' => 'ar.created_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 34,
			'type' => 135,
			'sqlExpression' => 'ar.created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'updated_by' => array(
			'name' => 'updated_by',
			'goodName' => 'updated_by',
			'strField' => 'updated_by',
			'index' => 35,
			'type' => 3,
			'sqlExpression' => 'ar.updated_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 36,
			'type' => 135,
			'sqlExpression' => 'ar.updated_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'ris_no' => array(
			'name' => 'ris_no',
			'goodName' => 'ris_no',
			'strField' => 'ris_no',
			'index' => 3,
			'sqlExpression' => 'ar.ris_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'required' => true 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'delivery_date' => array(
			'name' => 'delivery_date',
			'goodName' => 'delivery_date',
			'strField' => 'delivery_date',
			'index' => 20,
			'type' => 7,
			'sqlExpression' => 'ar.delivery_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'contact_person' => array(
			'name' => 'contact_person',
			'goodName' => 'contact_person',
			'strField' => 'contact_person',
			'index' => 22,
			'sqlExpression' => 'ar.contact_person',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'contact_number' => array(
			'name' => 'contact_number',
			'goodName' => 'contact_number',
			'strField' => 'contact_number',
			'index' => 23,
			'sqlExpression' => 'ar.contact_number',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'remarks' => array(
			'name' => 'remarks',
			'goodName' => 'remarks',
			'strField' => 'remarks',
			'index' => 26,
			'type' => 201,
			'sqlExpression' => 'ar.remarks',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'mother_facility_id' => array(
			'name' => 'mother_facility_id',
			'goodName' => 'mother_facility_id',
			'strField' => 'mother_facility_id',
			'index' => 8,
			'type' => 3,
			'sqlExpression' => 'ar.mother_facility_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'mother_facility',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'facility_code' 
				) 
			),
			'tableName' => 'augmentation_request',
			'viewLinkTable' => 'mother_facility',
			'viewLinkLookup' => true 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 28,
			'type' => 129,
			'sqlExpression' => 'ar.status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'PENDING',
						'APPROVED' 
					) 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'allocation_status' => array(
			'name' => 'allocation_status',
			'goodName' => 'allocation_status',
			'strField' => 'allocation_status',
			'index' => 30,
			'type' => 129,
			'sqlExpression' => 'ar.allocation_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'For Allocation',
						'Waiting Dromic Confirmation' 
					) 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'dromic_allocation_go_signal_status' => array(
			'name' => 'dromic_allocation_go_signal_status',
			'goodName' => 'dromic_allocation_go_signal_status',
			'strField' => 'dromic_allocation_go_signal_status',
			'index' => 31,
			'type' => 129,
			'sqlExpression' => 'ar.dromic_allocation_go_signal_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'PENDING',
						'CONFIRMED',
						'REJECTED',
						'FAILED' 
					) 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'dromic_sync_status' => array(
			'name' => 'dromic_sync_status',
			'goodName' => 'dromic_sync_status',
			'strField' => 'dromic_sync_status',
			'index' => 32,
			'sqlExpression' => 'ar.dromic_sync_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'facility_code' => array(
			'name' => 'facility_code',
			'goodName' => 'facility_code',
			'strField' => 'facility_code',
			'index' => 9,
			'sqlExpression' => 'mf.facility_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'mother_facility' 
		),
		'facility_name' => array(
			'name' => 'facility_name',
			'goodName' => 'facility_name',
			'strField' => 'facility_name',
			'index' => 10,
			'sqlExpression' => 'mf.facility_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'mother_facility' 
		) 
	),
	'detailsTables' => array( 
		'pending_augmentation_requests_details',
		'vw_augmentation_request_item_allocation_summary' 
	),
	'query' => array(
		'sql' => 'SELECT
	ar.augmentation_request_id,
	ar.request_no,
	ar.ris_no,
	ar.request_date,
	ar.date_needed,
	ar.request_channel,
	ar.request_type_id,
	ar.mother_facility_id,
	mf.facility_code,
	mf.facility_name,
	ar.requesting_office,
	ar.office_bureau,
	ar.division_unit,
	ar.organization_id,
	ar.requestor_name,
	ar.requestor_position,
	ar.requestor_contact_no,
	ar.requestor_email,
	ar.delivery_site,
	ar.delivery_date,
	ar.address,
	ar.contact_person,
	ar.contact_number,
	ar.disaster_type,
	ar.purpose,
	ar.remarks,
	ar.justification,
	ar.status,
	ar.current_step,
	ar.allocation_status,
	ar.dromic_allocation_go_signal_status,
	ar.dromic_sync_status,
	ar.created_by,
	ar.created_at,
	ar.updated_by,
	ar.updated_at
FROM
	augmentation_request AS ar
	LEFT OUTER JOIN mother_facility AS mf ON mf.id = ar.mother_facility_id
WHERE
ar.status = \'PENDING\' AND ar.allocation_status IN (
        \'FOR_ALLOCATION\',
        \'WAITING_DROMIC_CONFIRMATION\'
    )
ORDER BY
	ar.augmentation_request_id DESC
',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'ar.augmentation_request_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'augmentation_request_id' 
				),
				'encrypted' => false,
				'columnName' => 'augmentation_request_id' 
			),
			array(
				'sql' => 'ar.request_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'request_no' 
				),
				'encrypted' => false,
				'columnName' => 'request_no' 
			),
			array(
				'sql' => 'ar.ris_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'ris_no' 
				),
				'encrypted' => false,
				'columnName' => 'ris_no' 
			),
			array(
				'sql' => 'ar.request_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'request_date' 
				),
				'encrypted' => false,
				'columnName' => 'request_date' 
			),
			array(
				'sql' => 'ar.date_needed',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'date_needed' 
				),
				'encrypted' => false,
				'columnName' => 'date_needed' 
			),
			array(
				'sql' => 'ar.request_channel',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'request_channel' 
				),
				'encrypted' => false,
				'columnName' => 'request_channel' 
			),
			array(
				'sql' => 'ar.request_type_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'request_type_id' 
				),
				'encrypted' => false,
				'columnName' => 'request_type_id' 
			),
			array(
				'sql' => 'ar.mother_facility_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'mother_facility_id' 
				),
				'encrypted' => false,
				'columnName' => 'mother_facility_id' 
			),
			array(
				'sql' => 'mf.facility_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'mf',
					'name' => 'facility_code' 
				),
				'encrypted' => false,
				'columnName' => 'facility_code' 
			),
			array(
				'sql' => 'mf.facility_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'mf',
					'name' => 'facility_name' 
				),
				'encrypted' => false,
				'columnName' => 'facility_name' 
			),
			array(
				'sql' => 'ar.requesting_office',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'requesting_office' 
				),
				'encrypted' => false,
				'columnName' => 'requesting_office' 
			),
			array(
				'sql' => 'ar.office_bureau',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'office_bureau' 
				),
				'encrypted' => false,
				'columnName' => 'office_bureau' 
			),
			array(
				'sql' => 'ar.division_unit',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'division_unit' 
				),
				'encrypted' => false,
				'columnName' => 'division_unit' 
			),
			array(
				'sql' => 'ar.organization_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'organization_id' 
				),
				'encrypted' => false,
				'columnName' => 'organization_id' 
			),
			array(
				'sql' => 'ar.requestor_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'requestor_name' 
				),
				'encrypted' => false,
				'columnName' => 'requestor_name' 
			),
			array(
				'sql' => 'ar.requestor_position',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'requestor_position' 
				),
				'encrypted' => false,
				'columnName' => 'requestor_position' 
			),
			array(
				'sql' => 'ar.requestor_contact_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'requestor_contact_no' 
				),
				'encrypted' => false,
				'columnName' => 'requestor_contact_no' 
			),
			array(
				'sql' => 'ar.requestor_email',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'requestor_email' 
				),
				'encrypted' => false,
				'columnName' => 'requestor_email' 
			),
			array(
				'sql' => 'ar.delivery_site',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'delivery_site' 
				),
				'encrypted' => false,
				'columnName' => 'delivery_site' 
			),
			array(
				'sql' => 'ar.delivery_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'delivery_date' 
				),
				'encrypted' => false,
				'columnName' => 'delivery_date' 
			),
			array(
				'sql' => 'ar.address',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'address' 
				),
				'encrypted' => false,
				'columnName' => 'address' 
			),
			array(
				'sql' => 'ar.contact_person',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'contact_person' 
				),
				'encrypted' => false,
				'columnName' => 'contact_person' 
			),
			array(
				'sql' => 'ar.contact_number',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'contact_number' 
				),
				'encrypted' => false,
				'columnName' => 'contact_number' 
			),
			array(
				'sql' => 'ar.disaster_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'disaster_type' 
				),
				'encrypted' => false,
				'columnName' => 'disaster_type' 
			),
			array(
				'sql' => 'ar.purpose',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'purpose' 
				),
				'encrypted' => false,
				'columnName' => 'purpose' 
			),
			array(
				'sql' => 'ar.remarks',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'remarks' 
				),
				'encrypted' => false,
				'columnName' => 'remarks' 
			),
			array(
				'sql' => 'ar.justification',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'justification' 
				),
				'encrypted' => false,
				'columnName' => 'justification' 
			),
			array(
				'sql' => 'ar.status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'ar.current_step',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'current_step' 
				),
				'encrypted' => false,
				'columnName' => 'current_step' 
			),
			array(
				'sql' => 'ar.allocation_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'allocation_status' 
				),
				'encrypted' => false,
				'columnName' => 'allocation_status' 
			),
			array(
				'sql' => 'ar.dromic_allocation_go_signal_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'dromic_allocation_go_signal_status' 
				),
				'encrypted' => false,
				'columnName' => 'dromic_allocation_go_signal_status' 
			),
			array(
				'sql' => 'ar.dromic_sync_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'dromic_sync_status' 
				),
				'encrypted' => false,
				'columnName' => 'dromic_sync_status' 
			),
			array(
				'sql' => 'ar.created_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'created_by' 
				),
				'encrypted' => false,
				'columnName' => 'created_by' 
			),
			array(
				'sql' => 'ar.created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			),
			array(
				'sql' => 'ar.updated_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'updated_by' 
				),
				'encrypted' => false,
				'columnName' => 'updated_by' 
			),
			array(
				'sql' => 'ar.updated_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'augmentation_request AS ar',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'augmentation_request',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'augmentation_request_id',
						'request_no',
						'ris_no',
						'request_type_id',
						'request_date',
						'ris_date',
						'date_needed',
						'request_channel',
						'external_source',
						'external_request_id',
						'dromic_report_id',
						'dromic_report_name',
						'dromic_report_status',
						'dromic_sync_status',
						'dromic_payload_json',
						'dromic_last_synced_at',
						'dromic_last_writeback_at',
						'dromic_allocation_go_signal_status',
						'dromic_allocation_go_signal_at',
						'dromic_allocation_go_signal_by',
						'dromic_allocation_go_signal_ref',
						'dromic_allocation_go_signal_remarks',
						'dromic_allocation_go_signal_payload_json',
						'portal_user_id',
						'mother_facility_id',
						'requesting_office',
						'office_bureau',
						'division_unit',
						'fund_cluster',
						'responsibility_center_code',
						'orf_no',
						'organization_id',
						'requestor_name',
						'requestor_position',
						'requestor_contact_no',
						'requestor_email',
						'delivery_site',
						'delivery_date',
						'address',
						'delivery_instructions',
						'contact_person',
						'contact_number',
						'disaster_type',
						'purpose',
						'remarks',
						'justification',
						'source_of_information',
						'actual_affected_families',
						'no_of_families_served',
						'area_of_operation',
						'endorsed_by_name',
						'endorsed_by_position',
						'endorsed_office',
						'requested_by_name',
						'requested_by_position',
						'requested_by_designation',
						'approved_by_name',
						'approved_by_position',
						'approved_by_designation',
						'issued_by_name',
						'issued_by_position',
						'issued_by_designation',
						'received_by_name',
						'received_by_position',
						'received_by_designation',
						'requested_signature_date',
						'approved_signature_date',
						'issued_signature_date',
						'received_signature_date',
						'status_id',
						'current_step',
						'status',
						'approval_remarks',
						'allocation_status',
						'date_allocated',
						'approval_action_by',
						'approval_action_at',
						'created_by',
						'created_at',
						'updated_by',
						'updated_at' 
					),
					'name' => 'augmentation_request' 
				),
				'joinOn' => array(
					'sql' => '',
					'parsed' => false,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => null 
				),
				'joinList' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'JoinOn',
					'field1' => array( 
						 
					),
					'field2' => array( 
						 
					) 
				),
				'alias' => 'ar',
				'link' => 0 
			),
			array(
				'sql' => 'LEFT OUTER JOIN mother_facility AS mf ON mf.id = ar.mother_facility_id',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'mother_facility',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'facility_code',
						'facility_name',
						'facility_type',
						'region',
						'province',
						'city_municipality',
						'address',
						'contact_person',
						'contact_number',
						'email',
						'status',
						'createdAt',
						'updatedAt' 
					),
					'name' => 'mother_facility' 
				),
				'joinOn' => array(
					'sql' => 'mf.id = ar.mother_facility_id',
					'parsed' => true,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => array(
						'sql' => '',
						'parsed' => true,
						'type' => 'SQLField',
						'table' => 'mf',
						'name' => 'id' 
					),
					'case' => '= ar.mother_facility_id',
					'useAlias' => false 
				),
				'joinList' => array(
					'sql' => 'mf.id = ar.mother_facility_id',
					'parsed' => true,
					'type' => 'JoinOn',
					'field1' => array( 
						array(
							'sql' => '',
							'parsed' => true,
							'type' => 'SQLField',
							'table' => 'mf',
							'name' => 'id' 
						) 
					),
					'field2' => array( 
						array(
							'sql' => '',
							'parsed' => true,
							'type' => 'SQLField',
							'table' => 'ar',
							'name' => 'mother_facility_id' 
						) 
					) 
				),
				'alias' => 'mf',
				'link' => 3 
			) 
		),
		'where' => array(
			'sql' => 'ar.status = \'PENDING\' AND ar.allocation_status IN (
        \'FOR_ALLOCATION\',
        \'WAITING_DROMIC_CONFIRMATION\'
    )',
			'parsed' => true,
			'type' => 'LogicalExpression',
			'contained' => array( 
				array(
					'sql' => 'ar.status = \'PENDING\'',
					'parsed' => true,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => array(
						'sql' => '',
						'parsed' => true,
						'type' => 'SQLField',
						'table' => 'ar',
						'name' => 'status' 
					),
					'case' => '= \'PENDING\'',
					'useAlias' => false 
				),
				array(
					'sql' => 'ar.allocation_status IN (
        \'FOR_ALLOCATION\',
        \'WAITING_DROMIC_CONFIRMATION\'
    )',
					'parsed' => true,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => array(
						'sql' => '',
						'parsed' => true,
						'type' => 'SQLField',
						'table' => 'ar',
						'name' => 'allocation_status' 
					),
					'case' => 'IN (
        \'FOR_ALLOCATION\',
        \'WAITING_DROMIC_CONFIRMATION\'
    )',
					'useAlias' => false 
				) 
			),
			'unionType' => 1,
			'column' => null 
		),
		'groupBy' => array( 
			 
		),
		'having' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'orderBy' => array( 
			array(
				'sql' => 'ar.augmentation_request_id DESC',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'ar',
					'name' => 'augmentation_request_id' 
				),
				'asc' => false,
				'columnNumber' => 1 
			) 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => 0,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 1,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 2,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 3,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 4,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 5,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 6,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 7,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 8,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 9,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 10,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 11,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 12,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 13,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 14,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 15,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 16,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 17,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 18,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 19,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 20,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 21,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 22,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 23,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 24,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 25,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 26,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 27,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => 0,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 28,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 29,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => 1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 30,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 31,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 32,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 33,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 34,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 35,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'ar.augmentation_request_id,
	ar.request_no,
	ar.ris_no,
	ar.request_date,
	ar.date_needed,
	ar.request_channel,
	ar.request_type_id,
	ar.mother_facility_id,
	mf.facility_code,
	mf.facility_name,
	ar.requesting_office,
	ar.office_bureau,
	ar.division_unit,
	ar.organization_id,
	ar.requestor_name,
	ar.requestor_position,
	ar.requestor_contact_no,
	ar.requestor_email,
	ar.delivery_site,
	ar.delivery_date,
	ar.address,
	ar.contact_person,
	ar.contact_number,
	ar.disaster_type,
	ar.purpose,
	ar.remarks,
	ar.justification,
	ar.status,
	ar.current_step,
	ar.allocation_status,
	ar.dromic_allocation_go_signal_status,
	ar.dromic_sync_status,
	ar.created_by,
	ar.created_at,
	ar.updated_by,
	ar.updated_at',
		'fromListSql' => 'FROM
	augmentation_request AS ar
	LEFT OUTER JOIN mother_facility AS mf ON mf.id = ar.mother_facility_id',
		'whereSql' => 'ar.status = \'PENDING\' AND ar.allocation_status IN (
        \'FOR_ALLOCATION\',
        \'WAITING_DROMIC_CONFIRMATION\'
    )',
		'orderBySql' => 'ORDER BY
	ar.augmentation_request_id DESC',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'hasJsEvents' => true,
	'originalTable' => 'augmentation_request',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'augmentation_request_id',
			'request_no',
			'request_type_id',
			'request_date',
			'date_needed',
			'request_channel',
			'requesting_office',
			'office_bureau',
			'division_unit',
			'organization_id',
			'requestor_name',
			'requestor_position',
			'requestor_contact_no',
			'requestor_email',
			'delivery_site',
			'address',
			'disaster_type',
			'purpose',
			'justification',
			'current_step',
			'created_by',
			'created_at',
			'updated_by',
			'updated_at',
			'ris_no',
			'delivery_date',
			'contact_person',
			'contact_number',
			'remarks',
			'mother_facility_id',
			'status',
			'allocation_status',
			'dromic_allocation_go_signal_status',
			'dromic_sync_status',
			'facility_code',
			'facility_name' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'augmentation_request_id',
			'request_no',
			'request_type_id',
			'request_date',
			'date_needed',
			'request_channel',
			'requesting_office',
			'office_bureau',
			'division_unit',
			'organization_id',
			'requestor_name',
			'requestor_position',
			'requestor_contact_no',
			'requestor_email',
			'delivery_site',
			'address',
			'disaster_type',
			'purpose',
			'justification',
			'current_step',
			'created_by',
			'created_at',
			'updated_by',
			'updated_at',
			'ris_no',
			'delivery_date',
			'contact_person',
			'contact_number',
			'remarks',
			'mother_facility_id',
			'status',
			'allocation_status',
			'dromic_allocation_go_signal_status',
			'dromic_sync_status',
			'facility_code',
			'facility_name' 
		) 
	),
	'connId' => 'conn',
	'clickActions' => array(
		'row' => array(
			'action' => 'noaction' 
		),
		'fields' => array(
			 
		) 
	),
	'geoCoding' => array(
		'enabled' => false,
		'latField' => '',
		'lonField' => '',
		'addressFields' => array( 
			 
		) 
	),
	'whereTabs' => array( 
		 
	),
	'labels' => array(
		 
	),
	'chartSettings' => array(
		 
	),
	'dataSourceOperations' => array(
		 
	),
	'calendarSettings' => array(
		'categoryColors' => array( 
			 
		) 
	),
	'ganttSettings' => array(
		'categoryColors' => array( 
			 
		) 
	) 
);

global $runnerTableLabels;
if( mlang_getcurrentlang() === 'English' ) {
	$runnerTableLabels['pending_augmentation_requests'] = array(
	'tableCaption' => 'Pending Augmentation Requests',
	'fieldLabels' => array(
		'augmentation_request_id' => 'Augmentation Request ID',
		'request_no' => 'Request No.',
		'request_type_id' => 'Request Type ID',
		'request_date' => 'Request Date',
		'date_needed' => 'Date Needed',
		'request_channel' => 'Request Channel',
		'requesting_office' => 'Requesting Office',
		'office_bureau' => 'Office Bureau',
		'division_unit' => 'Division Unit',
		'organization_id' => 'Organization ID',
		'requestor_name' => 'Requestor Name',
		'requestor_position' => 'Requestor Position',
		'requestor_contact_no' => 'Requestor Contact No.',
		'requestor_email' => 'Requestor Email',
		'delivery_site' => 'Delivery Site',
		'address' => 'Address',
		'disaster_type' => 'Disaster Type',
		'purpose' => 'Purpose',
		'justification' => 'Justification',
		'current_step' => 'Current Step',
		'created_by' => 'Created By',
		'created_at' => 'Created At',
		'updated_by' => 'Updated byy',
		'updated_at' => 'Updated At',
		'ris_no' => 'No.',
		'delivery_date' => 'Delivery Date',
		'contact_person' => 'Contact Person',
		'contact_number' => 'Contact Number',
		'remarks' => 'Remarks',
		'mother_facility_id' => 'Mother Facility ID',
		'status' => 'Status',
		'allocation_status' => 'Allocation Status',
		'dromic_allocation_go_signal_status' => 'Dromic Allocation Go Signal Status',
		'dromic_sync_status' => 'Dromic Sync Status',
		'facility_code' => 'Facility Code',
		'facility_name' => 'Facility Name' 
	),
	'fieldTooltips' => array(
		'augmentation_request_id' => '',
		'request_no' => '',
		'request_type_id' => '',
		'request_date' => '',
		'date_needed' => '',
		'request_channel' => '',
		'requesting_office' => '',
		'office_bureau' => '',
		'division_unit' => '',
		'organization_id' => '',
		'requestor_name' => '',
		'requestor_position' => '',
		'requestor_contact_no' => '',
		'requestor_email' => '',
		'delivery_site' => '',
		'address' => '',
		'disaster_type' => '',
		'purpose' => '',
		'justification' => '',
		'current_step' => '',
		'created_by' => '',
		'created_at' => '',
		'updated_by' => '',
		'updated_at' => '',
		'ris_no' => '',
		'delivery_date' => '',
		'contact_person' => '',
		'contact_number' => '',
		'remarks' => '',
		'mother_facility_id' => '',
		'status' => '',
		'allocation_status' => '',
		'dromic_allocation_go_signal_status' => '',
		'dromic_sync_status' => '',
		'facility_code' => '',
		'facility_name' => '' 
	),
	'fieldPlaceholders' => array(
		'augmentation_request_id' => '',
		'request_no' => '',
		'request_type_id' => '',
		'request_date' => '',
		'date_needed' => '',
		'request_channel' => '',
		'requesting_office' => '',
		'office_bureau' => '',
		'division_unit' => '',
		'organization_id' => '',
		'requestor_name' => '',
		'requestor_position' => '',
		'requestor_contact_no' => '',
		'requestor_email' => '',
		'delivery_site' => '',
		'address' => '',
		'disaster_type' => '',
		'purpose' => '',
		'justification' => '',
		'current_step' => '',
		'created_by' => '',
		'created_at' => '',
		'updated_by' => '',
		'updated_at' => '',
		'ris_no' => '',
		'delivery_date' => '',
		'contact_person' => '',
		'contact_number' => '',
		'remarks' => '',
		'mother_facility_id' => '',
		'status' => '',
		'allocation_status' => '',
		'dromic_allocation_go_signal_status' => '',
		'dromic_sync_status' => '',
		'facility_code' => '',
		'facility_name' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>