<?php
global $runnerTableSettings;
$runnerTableSettings['augmentation_request_for_approval'] = array(
	'name' => 'augmentation_request_for_approval',
	'type' => 1,
	'shortName' => 'augmentation_request2',
	'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' => 'augmentation_request_for_approval',
	'afterAddDetail' => 'augmentation_request_for_approval',
	'detailsBadgeColor' => '000',
	'strOrderBy' => 'ORDER BY augmentation_request_id DESC',
	'orderInfo' => array( 
		array(
			'index' => 1,
			'dir' => 'DESC',
			'field' => 'augmentation_request_id' 
		) 
	),
	'sql' => 'SELECT
    augmentation_request_id,
    request_no,
    ris_no,

    request_date,
    date_needed,

    request_channel,

    mother_facility_id,

    requesting_office,
    office_bureau,
    division_unit,

    requestor_name,
    requestor_contact_no,

    delivery_site,
    delivery_date,

    disaster_type,
    purpose,

    status,
    current_step,
    allocation_status,

    date_allocated,

    created_at,
    updated_at

FROM augmentation_request

WHERE
    status = \'PENDING\'

    AND allocation_status = \'FOR_APPROVAL\'

ORDER BY 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' => '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' => 'request_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'request_date' => array(
			'name' => 'request_date',
			'goodName' => 'request_date',
			'strField' => 'request_date',
			'index' => 4,
			'type' => 7,
			'sqlExpression' => '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' => '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' => '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' => 8,
			'sqlExpression' => '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' => 9,
			'sqlExpression' => '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' => 10,
			'sqlExpression' => 'division_unit',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'requestor_name' => array(
			'name' => 'requestor_name',
			'goodName' => 'requestor_name',
			'strField' => 'requestor_name',
			'index' => 11,
			'sqlExpression' => 'requestor_name',
			'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' => 12,
			'sqlExpression' => 'requestor_contact_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'delivery_site' => array(
			'name' => 'delivery_site',
			'goodName' => 'delivery_site',
			'strField' => 'delivery_site',
			'index' => 13,
			'sqlExpression' => 'delivery_site',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'disaster_type' => array(
			'name' => 'disaster_type',
			'goodName' => 'disaster_type',
			'strField' => 'disaster_type',
			'index' => 15,
			'sqlExpression' => 'disaster_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'purpose' => array(
			'name' => 'purpose',
			'goodName' => 'purpose',
			'strField' => 'purpose',
			'index' => 16,
			'type' => 201,
			'sqlExpression' => 'purpose',
			'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' => 18,
			'sqlExpression' => 'current_step',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 21,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 22,
			'type' => 135,
			'sqlExpression' => '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' => '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' => 14,
			'type' => 7,
			'sqlExpression' => 'delivery_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'mother_facility_id' => array(
			'name' => 'mother_facility_id',
			'goodName' => 'mother_facility_id',
			'strField' => 'mother_facility_id',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => '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' => 17,
			'type' => 129,
			'sqlExpression' => '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' => 19,
			'type' => 129,
			'sqlExpression' => 'allocation_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'For Allocation',
						'Done' 
					) 
				) 
			),
			'tableName' => 'augmentation_request' 
		),
		'date_allocated' => array(
			'name' => 'date_allocated',
			'goodName' => 'date_allocated',
			'strField' => 'date_allocated',
			'index' => 20,
			'type' => 7,
			'sqlExpression' => 'date_allocated',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'augmentation_request' 
		) 
	),
	'detailsTables' => array( 
		'augmentation_request_item',
		'augmentation_request_allocation' 
	),
	'query' => array(
		'sql' => 'SELECT
    augmentation_request_id,
    request_no,
    ris_no,

    request_date,
    date_needed,

    request_channel,

    mother_facility_id,

    requesting_office,
    office_bureau,
    division_unit,

    requestor_name,
    requestor_contact_no,

    delivery_site,
    delivery_date,

    disaster_type,
    purpose,

    status,
    current_step,
    allocation_status,

    date_allocated,

    created_at,
    updated_at

FROM augmentation_request

WHERE
    status = \'PENDING\'

    AND allocation_status = \'FOR_APPROVAL\'

ORDER BY augmentation_request_id DESC;',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'augmentation_request_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'augmentation_request_id' 
				),
				'encrypted' => false,
				'columnName' => 'augmentation_request_id' 
			),
			array(
				'sql' => 'request_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'request_no' 
				),
				'encrypted' => false,
				'columnName' => 'request_no' 
			),
			array(
				'sql' => 'ris_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'ris_no' 
				),
				'encrypted' => false,
				'columnName' => 'ris_no' 
			),
			array(
				'sql' => 'request_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'request_date' 
				),
				'encrypted' => false,
				'columnName' => 'request_date' 
			),
			array(
				'sql' => 'date_needed',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'date_needed' 
				),
				'encrypted' => false,
				'columnName' => 'date_needed' 
			),
			array(
				'sql' => 'request_channel',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'request_channel' 
				),
				'encrypted' => false,
				'columnName' => 'request_channel' 
			),
			array(
				'sql' => 'mother_facility_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'mother_facility_id' 
				),
				'encrypted' => false,
				'columnName' => 'mother_facility_id' 
			),
			array(
				'sql' => 'requesting_office',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'requesting_office' 
				),
				'encrypted' => false,
				'columnName' => 'requesting_office' 
			),
			array(
				'sql' => 'office_bureau',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'office_bureau' 
				),
				'encrypted' => false,
				'columnName' => 'office_bureau' 
			),
			array(
				'sql' => 'division_unit',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'division_unit' 
				),
				'encrypted' => false,
				'columnName' => 'division_unit' 
			),
			array(
				'sql' => 'requestor_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'requestor_name' 
				),
				'encrypted' => false,
				'columnName' => 'requestor_name' 
			),
			array(
				'sql' => 'requestor_contact_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'requestor_contact_no' 
				),
				'encrypted' => false,
				'columnName' => 'requestor_contact_no' 
			),
			array(
				'sql' => 'delivery_site',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'delivery_site' 
				),
				'encrypted' => false,
				'columnName' => 'delivery_site' 
			),
			array(
				'sql' => 'delivery_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'delivery_date' 
				),
				'encrypted' => false,
				'columnName' => 'delivery_date' 
			),
			array(
				'sql' => 'disaster_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'disaster_type' 
				),
				'encrypted' => false,
				'columnName' => 'disaster_type' 
			),
			array(
				'sql' => 'purpose',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'purpose' 
				),
				'encrypted' => false,
				'columnName' => 'purpose' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'current_step',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'current_step' 
				),
				'encrypted' => false,
				'columnName' => 'current_step' 
			),
			array(
				'sql' => 'allocation_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'allocation_status' 
				),
				'encrypted' => false,
				'columnName' => 'allocation_status' 
			),
			array(
				'sql' => 'date_allocated',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'date_allocated' 
				),
				'encrypted' => false,
				'columnName' => 'date_allocated' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			),
			array(
				'sql' => 'updated_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'augmentation_request',
				'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( 
						 
					) 
				),
				'link' => 0 
			) 
		),
		'where' => array(
			'sql' => 'status = \'PENDING\'

    AND allocation_status = \'FOR_APPROVAL\'',
			'parsed' => true,
			'type' => 'LogicalExpression',
			'contained' => array( 
				array(
					'sql' => 'status = \'PENDING\'',
					'parsed' => true,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => array(
						'sql' => '',
						'parsed' => true,
						'type' => 'SQLField',
						'table' => 'augmentation_request',
						'name' => 'status' 
					),
					'case' => '= \'PENDING\'',
					'useAlias' => false 
				),
				array(
					'sql' => 'allocation_status = \'FOR_APPROVAL\'',
					'parsed' => true,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => array(
						'sql' => '',
						'parsed' => true,
						'type' => 'SQLField',
						'table' => 'augmentation_request',
						'name' => 'allocation_status' 
					),
					'case' => '= \'FOR_APPROVAL\'',
					'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' => 'augmentation_request_id DESC',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'augmentation_request',
					'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' => 0,
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'augmentation_request_id,
    request_no,
    ris_no,

    request_date,
    date_needed,

    request_channel,

    mother_facility_id,

    requesting_office,
    office_bureau,
    division_unit,

    requestor_name,
    requestor_contact_no,

    delivery_site,
    delivery_date,

    disaster_type,
    purpose,

    status,
    current_step,
    allocation_status,

    date_allocated,

    created_at,
    updated_at',
		'fromListSql' => 'FROM augmentation_request',
		'whereSql' => 'status = \'PENDING\'

    AND allocation_status = \'FOR_APPROVAL\'',
		'orderBySql' => 'ORDER BY 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_date',
			'date_needed',
			'request_channel',
			'requesting_office',
			'office_bureau',
			'division_unit',
			'requestor_name',
			'requestor_contact_no',
			'delivery_site',
			'disaster_type',
			'purpose',
			'current_step',
			'created_at',
			'updated_at',
			'ris_no',
			'delivery_date',
			'mother_facility_id',
			'status',
			'allocation_status',
			'date_allocated' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'augmentation_request_id',
			'request_no',
			'request_date',
			'date_needed',
			'request_channel',
			'requesting_office',
			'office_bureau',
			'division_unit',
			'requestor_name',
			'requestor_contact_no',
			'delivery_site',
			'disaster_type',
			'purpose',
			'current_step',
			'created_at',
			'updated_at',
			'ris_no',
			'delivery_date',
			'mother_facility_id',
			'status',
			'allocation_status',
			'date_allocated' 
		) 
	),
	'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['augmentation_request_for_approval'] = array(
	'tableCaption' => 'Augmentation Request For Approval',
	'fieldLabels' => array(
		'augmentation_request_id' => 'Augmentation Request ID',
		'request_no' => 'Request No.',
		'request_date' => 'Request Date',
		'date_needed' => 'Date Needed',
		'request_channel' => 'Request Channel',
		'requesting_office' => 'Requesting Office',
		'office_bureau' => 'Office Bureau',
		'division_unit' => 'Division Unit',
		'requestor_name' => 'Requestor Name',
		'requestor_contact_no' => 'Requestor Contact No.',
		'delivery_site' => 'Delivery Site',
		'disaster_type' => 'Disaster Type',
		'purpose' => 'Purpose',
		'current_step' => 'Current Step',
		'created_at' => 'Created At',
		'updated_at' => 'Updated At',
		'ris_no' => 'RIS No.',
		'delivery_date' => 'Delivery Date',
		'mother_facility_id' => 'Mother Facility ID',
		'status' => 'Status',
		'allocation_status' => 'Allocation Status',
		'date_allocated' => 'Date Allocated' 
	),
	'fieldTooltips' => array(
		'augmentation_request_id' => '',
		'request_no' => '',
		'request_date' => '',
		'date_needed' => '',
		'request_channel' => '',
		'requesting_office' => '',
		'office_bureau' => '',
		'division_unit' => '',
		'requestor_name' => '',
		'requestor_contact_no' => '',
		'delivery_site' => '',
		'disaster_type' => '',
		'purpose' => '',
		'current_step' => '',
		'created_at' => '',
		'updated_at' => '',
		'ris_no' => '',
		'delivery_date' => '',
		'mother_facility_id' => '',
		'status' => '',
		'allocation_status' => '',
		'date_allocated' => '' 
	),
	'fieldPlaceholders' => array(
		'augmentation_request_id' => '',
		'request_no' => '',
		'request_date' => '',
		'date_needed' => '',
		'request_channel' => '',
		'requesting_office' => '',
		'office_bureau' => '',
		'division_unit' => '',
		'requestor_name' => '',
		'requestor_contact_no' => '',
		'delivery_site' => '',
		'disaster_type' => '',
		'purpose' => '',
		'current_step' => '',
		'created_at' => '',
		'updated_at' => '',
		'ris_no' => '',
		'delivery_date' => '',
		'mother_facility_id' => '',
		'status' => '',
		'allocation_status' => '',
		'date_allocated' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>