<?php
global $runnerTableSettings;
$runnerTableSettings['disposal_form'] = array(
	'name' => 'disposal_form',
	'shortName' => 'disposal_form',
	'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' => 'disposal_form',
	'afterAddDetail' => 'disposal_form',
	'detailsBadgeColor' => '8fbc8b',
	'strOrderBy' => 'ORDER BY
	id DESC',
	'orderInfo' => array( 
		array(
			'index' => 1,
			'dir' => 'DESC',
			'field' => 'id' 
		) 
	),
	'sql' => 'SELECT
	id,
	"Print",
	"IIRP",
	report_type,
	disposal_no,
	agency_name,
	place_of_storage,
	storage_address,
	disposal_date,
	report_date,
	disposal_type,
	source_reference_type,
	source_reference_id,
	office_id,
	location_id,
	warehouse_id,
	prepared_by,
	reviewed_by,
	approved_by,
	witnessed_by,
	authorized_user_id,
	certified_correct_by_name,
	certified_correct_by_position,
	disposal_approved_by_name,
	disposal_approved_by_position,
	property_inspector_name,
	property_inspector_position,
	witness_to_disposition_name,
	witness_to_disposition_position,
	certificate_statement,
	certificate_date,
	total_sale_amount,
	disposal_method,
	disposal_reason,
	disposal_site,
	disposal_datetime,
	hauler_name,
	vehicle_details,
	proof_required,
	remarks,
	status,
	date_reviewed,
	date_approved,
	date_completed,
	stock_transfer_id,
	created_by,
	created_at,
	updated_at
FROM
	disposal_form
ORDER BY
	id DESC
',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_no' => array(
			'name' => 'disposal_no',
			'goodName' => 'disposal_no',
			'strField' => 'disposal_no',
			'index' => 5,
			'sqlExpression' => 'disposal_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_date' => array(
			'name' => 'disposal_date',
			'goodName' => 'disposal_date',
			'strField' => 'disposal_date',
			'index' => 9,
			'type' => 7,
			'sqlExpression' => 'disposal_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'defaultValue' => 'Now()',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_type' => array(
			'name' => 'disposal_type',
			'goodName' => 'disposal_type',
			'strField' => 'disposal_type',
			'index' => 11,
			'type' => 129,
			'sqlExpression' => 'disposal_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'Replacement Disposal',
						'Damaged',
						'Expired',
						'Obsolete',
						'Unserviceable',
						'Scrap',
						'Other' 
					) 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'source_reference_type' => array(
			'name' => 'source_reference_type',
			'goodName' => 'source_reference_type',
			'strField' => 'source_reference_type',
			'index' => 12,
			'type' => 129,
			'sqlExpression' => 'source_reference_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'Quality Inspection',
						'Kitting/Production',
						'Manual Reconditioning',
						'Automatic Reconditioning',
						'Replacement Request',
						'Inbound Receiving',
						'Other' 
					) 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'source_reference_id' => array(
			'name' => 'source_reference_id',
			'goodName' => 'source_reference_id',
			'strField' => 'source_reference_id',
			'index' => 13,
			'type' => 3,
			'sqlExpression' => 'source_reference_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'office_id' => array(
			'name' => 'office_id',
			'goodName' => 'office_id',
			'strField' => 'office_id',
			'index' => 14,
			'type' => 3,
			'sqlExpression' => 'office_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'location_id' => array(
			'name' => 'location_id',
			'goodName' => 'location_id',
			'strField' => 'location_id',
			'index' => 15,
			'type' => 3,
			'sqlExpression' => 'location_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'rack',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'reference_number',
					'lookupDependent' => true,
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'warehouse_id',
							'lookupField' => 'warehouse_id' 
						) 
					) 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'warehouse_id' => array(
			'name' => 'warehouse_id',
			'goodName' => 'warehouse_id',
			'strField' => 'warehouse_id',
			'index' => 16,
			'type' => 3,
			'sqlExpression' => 'warehouse_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'warehouse',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'warehouse_code' 
				) 
			),
			'tableName' => 'disposal_form',
			'viewLinkTable' => 'warehouse',
			'viewLinkLookup' => true 
		),
		'prepared_by' => array(
			'name' => 'prepared_by',
			'goodName' => 'prepared_by',
			'strField' => 'prepared_by',
			'index' => 17,
			'type' => 3,
			'sqlExpression' => 'prepared_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'reviewed_by' => array(
			'name' => 'reviewed_by',
			'goodName' => 'reviewed_by',
			'strField' => 'reviewed_by',
			'index' => 18,
			'type' => 3,
			'sqlExpression' => 'reviewed_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'approved_by' => array(
			'name' => 'approved_by',
			'goodName' => 'approved_by',
			'strField' => 'approved_by',
			'index' => 19,
			'type' => 3,
			'sqlExpression' => 'approved_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'witnessed_by' => array(
			'name' => 'witnessed_by',
			'goodName' => 'witnessed_by',
			'strField' => 'witnessed_by',
			'index' => 20,
			'type' => 3,
			'sqlExpression' => 'witnessed_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'authorized_user_id' => array(
			'name' => 'authorized_user_id',
			'goodName' => 'authorized_user_id',
			'strField' => 'authorized_user_id',
			'index' => 21,
			'type' => 3,
			'sqlExpression' => 'authorized_user_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_method' => array(
			'name' => 'disposal_method',
			'goodName' => 'disposal_method',
			'strField' => 'disposal_method',
			'index' => 33,
			'type' => 129,
			'sqlExpression' => 'disposal_method',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'Dumping',
						'Destruction',
						'Recycling',
						'Return to Supplier',
						'Transfer for Disposal',
						'Donation',
						'Other' 
					) 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_reason' => array(
			'name' => 'disposal_reason',
			'goodName' => 'disposal_reason',
			'strField' => 'disposal_reason',
			'index' => 34,
			'type' => 201,
			'sqlExpression' => 'disposal_reason',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_site' => array(
			'name' => 'disposal_site',
			'goodName' => 'disposal_site',
			'strField' => 'disposal_site',
			'index' => 35,
			'sqlExpression' => 'disposal_site',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_datetime' => array(
			'name' => 'disposal_datetime',
			'goodName' => 'disposal_datetime',
			'strField' => 'disposal_datetime',
			'index' => 36,
			'type' => 135,
			'sqlExpression' => 'disposal_datetime',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'hauler_name' => array(
			'name' => 'hauler_name',
			'goodName' => 'hauler_name',
			'strField' => 'hauler_name',
			'index' => 37,
			'sqlExpression' => 'hauler_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'vehicle_details' => array(
			'name' => 'vehicle_details',
			'goodName' => 'vehicle_details',
			'strField' => 'vehicle_details',
			'index' => 38,
			'sqlExpression' => 'vehicle_details',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'proof_required' => array(
			'name' => 'proof_required',
			'goodName' => 'proof_required',
			'strField' => 'proof_required',
			'index' => 39,
			'type' => 2,
			'sqlExpression' => 'proof_required',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'remarks' => array(
			'name' => 'remarks',
			'goodName' => 'remarks',
			'strField' => 'remarks',
			'index' => 40,
			'type' => 201,
			'sqlExpression' => 'remarks',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 41,
			'type' => 129,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'Pending',
						'Approved',
						'Draft',
						'For Review',
						'Rejected',
						'For Hauling',
						'In Progress',
						'Completed',
						'Audited',
						'Closed',
						'Cancelled' 
					) 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'date_reviewed' => array(
			'name' => 'date_reviewed',
			'goodName' => 'date_reviewed',
			'strField' => 'date_reviewed',
			'index' => 42,
			'type' => 135,
			'sqlExpression' => 'date_reviewed',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'date_approved' => array(
			'name' => 'date_approved',
			'goodName' => 'date_approved',
			'strField' => 'date_approved',
			'index' => 43,
			'type' => 135,
			'sqlExpression' => 'date_approved',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'date_completed' => array(
			'name' => 'date_completed',
			'goodName' => 'date_completed',
			'strField' => 'date_completed',
			'index' => 44,
			'type' => 135,
			'sqlExpression' => 'date_completed',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'stock_transfer_id' => array(
			'name' => 'stock_transfer_id',
			'goodName' => 'stock_transfer_id',
			'strField' => 'stock_transfer_id',
			'index' => 45,
			'type' => 3,
			'sqlExpression' => 'stock_transfer_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'created_by' => array(
			'name' => 'created_by',
			'goodName' => 'created_by',
			'strField' => 'created_by',
			'index' => 46,
			'type' => 3,
			'sqlExpression' => 'created_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 47,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 48,
			'type' => 135,
			'sqlExpression' => 'updated_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'report_type' => array(
			'name' => 'report_type',
			'goodName' => 'report_type',
			'strField' => 'report_type',
			'index' => 4,
			'type' => 129,
			'sqlExpression' => 'report_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'Waste Materials Report',
						'Other' 
					) 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'agency_name' => array(
			'name' => 'agency_name',
			'goodName' => 'agency_name',
			'strField' => 'agency_name',
			'index' => 6,
			'sqlExpression' => 'agency_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'place_of_storage' => array(
			'name' => 'place_of_storage',
			'goodName' => 'place_of_storage',
			'strField' => 'place_of_storage',
			'index' => 7,
			'sqlExpression' => 'place_of_storage',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'storage_address' => array(
			'name' => 'storage_address',
			'goodName' => 'storage_address',
			'strField' => 'storage_address',
			'index' => 8,
			'sqlExpression' => 'storage_address',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'report_date' => array(
			'name' => 'report_date',
			'goodName' => 'report_date',
			'strField' => 'report_date',
			'index' => 10,
			'type' => 7,
			'sqlExpression' => 'report_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'certified_correct_by_name' => array(
			'name' => 'certified_correct_by_name',
			'goodName' => 'certified_correct_by_name',
			'strField' => 'certified_correct_by_name',
			'index' => 22,
			'sqlExpression' => 'certified_correct_by_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'certified_correct_by_position' => array(
			'name' => 'certified_correct_by_position',
			'goodName' => 'certified_correct_by_position',
			'strField' => 'certified_correct_by_position',
			'index' => 23,
			'sqlExpression' => 'certified_correct_by_position',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_approved_by_name' => array(
			'name' => 'disposal_approved_by_name',
			'goodName' => 'disposal_approved_by_name',
			'strField' => 'disposal_approved_by_name',
			'index' => 24,
			'sqlExpression' => 'disposal_approved_by_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'disposal_approved_by_position' => array(
			'name' => 'disposal_approved_by_position',
			'goodName' => 'disposal_approved_by_position',
			'strField' => 'disposal_approved_by_position',
			'index' => 25,
			'sqlExpression' => 'disposal_approved_by_position',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'property_inspector_name' => array(
			'name' => 'property_inspector_name',
			'goodName' => 'property_inspector_name',
			'strField' => 'property_inspector_name',
			'index' => 26,
			'sqlExpression' => 'property_inspector_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'property_inspector_position' => array(
			'name' => 'property_inspector_position',
			'goodName' => 'property_inspector_position',
			'strField' => 'property_inspector_position',
			'index' => 27,
			'sqlExpression' => 'property_inspector_position',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'witness_to_disposition_name' => array(
			'name' => 'witness_to_disposition_name',
			'goodName' => 'witness_to_disposition_name',
			'strField' => 'witness_to_disposition_name',
			'index' => 28,
			'sqlExpression' => 'witness_to_disposition_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'witness_to_disposition_position' => array(
			'name' => 'witness_to_disposition_position',
			'goodName' => 'witness_to_disposition_position',
			'strField' => 'witness_to_disposition_position',
			'index' => 29,
			'sqlExpression' => 'witness_to_disposition_position',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'certificate_statement' => array(
			'name' => 'certificate_statement',
			'goodName' => 'certificate_statement',
			'strField' => 'certificate_statement',
			'index' => 30,
			'type' => 201,
			'sqlExpression' => 'certificate_statement',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'certificate_date' => array(
			'name' => 'certificate_date',
			'goodName' => 'certificate_date',
			'strField' => 'certificate_date',
			'index' => 31,
			'type' => 7,
			'sqlExpression' => 'certificate_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'total_sale_amount' => array(
			'name' => 'total_sale_amount',
			'goodName' => 'total_sale_amount',
			'strField' => 'total_sale_amount',
			'index' => 32,
			'type' => 14,
			'sqlExpression' => 'total_sale_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'disposal_form' 
		),
		'Print' => array(
			'name' => 'Print',
			'goodName' => 'Print',
			'strField' => 'Print',
			'index' => 2,
			'sqlExpression' => '"Print"',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Custom',
					'customExpression' => 'if($data[\'status\'] =="Approved"){

$value = "<a href=\'" . $_SESSION["path"] . "frameset?__report=DisposalForm_DSWD.rptdesign&txnid=".$data[\'id\']."&ea=".$_SESSION["ea"]."&&__dpi=96&__format=pdf&__pageoverflow=2&__overwrite=false\'>Print</a>";

}

else
{
$value ="";
}' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		),
		'IIRP' => array(
			'name' => 'IIRP',
			'goodName' => 'IIRP',
			'strField' => 'IIRP',
			'index' => 3,
			'sqlExpression' => '"IIRP"',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Custom',
					'customExpression' => 'if($data[\'status\'] =="Approved"){

$value = "<a href=\'" . $_SESSION["path"] . "frameset?__report=PurchaseOrder_DSWD.rptdesign&txnid=".$data[\'id\']."&ea=".$_SESSION["ea"]."&&__dpi=96&__format=pdf&__pageoverflow=2&__overwrite=false\'>Print</a>";

}

else
{
$value ="";
}' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		) 
	),
	'detailsTables' => array( 
		'disposal_form_attachments',
		'disposal_form_items' 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	"Print",
	"IIRP",
	report_type,
	disposal_no,
	agency_name,
	place_of_storage,
	storage_address,
	disposal_date,
	report_date,
	disposal_type,
	source_reference_type,
	source_reference_id,
	office_id,
	location_id,
	warehouse_id,
	prepared_by,
	reviewed_by,
	approved_by,
	witnessed_by,
	authorized_user_id,
	certified_correct_by_name,
	certified_correct_by_position,
	disposal_approved_by_name,
	disposal_approved_by_position,
	property_inspector_name,
	property_inspector_position,
	witness_to_disposition_name,
	witness_to_disposition_position,
	certificate_statement,
	certificate_date,
	total_sale_amount,
	disposal_method,
	disposal_reason,
	disposal_site,
	disposal_datetime,
	hauler_name,
	vehicle_details,
	proof_required,
	remarks,
	status,
	date_reviewed,
	date_approved,
	date_completed,
	stock_transfer_id,
	created_by,
	created_at,
	updated_at
FROM
	disposal_form
ORDER BY
	id DESC
',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => '"Print"',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '"Print"',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'Print' 
			),
			array(
				'sql' => '"IIRP"',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '"IIRP"',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'IIRP' 
			),
			array(
				'sql' => 'report_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'report_type' 
				),
				'encrypted' => false,
				'columnName' => 'report_type' 
			),
			array(
				'sql' => 'disposal_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_no' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_no' 
			),
			array(
				'sql' => 'agency_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'agency_name' 
				),
				'encrypted' => false,
				'columnName' => 'agency_name' 
			),
			array(
				'sql' => 'place_of_storage',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'place_of_storage' 
				),
				'encrypted' => false,
				'columnName' => 'place_of_storage' 
			),
			array(
				'sql' => 'storage_address',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'storage_address' 
				),
				'encrypted' => false,
				'columnName' => 'storage_address' 
			),
			array(
				'sql' => 'disposal_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_date' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_date' 
			),
			array(
				'sql' => 'report_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'report_date' 
				),
				'encrypted' => false,
				'columnName' => 'report_date' 
			),
			array(
				'sql' => 'disposal_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_type' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_type' 
			),
			array(
				'sql' => 'source_reference_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'source_reference_type' 
				),
				'encrypted' => false,
				'columnName' => 'source_reference_type' 
			),
			array(
				'sql' => 'source_reference_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'source_reference_id' 
				),
				'encrypted' => false,
				'columnName' => 'source_reference_id' 
			),
			array(
				'sql' => 'office_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'office_id' 
				),
				'encrypted' => false,
				'columnName' => 'office_id' 
			),
			array(
				'sql' => 'location_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'location_id' 
				),
				'encrypted' => false,
				'columnName' => 'location_id' 
			),
			array(
				'sql' => 'warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'warehouse_id' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_id' 
			),
			array(
				'sql' => 'prepared_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'prepared_by' 
				),
				'encrypted' => false,
				'columnName' => 'prepared_by' 
			),
			array(
				'sql' => 'reviewed_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'reviewed_by' 
				),
				'encrypted' => false,
				'columnName' => 'reviewed_by' 
			),
			array(
				'sql' => 'approved_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'approved_by' 
				),
				'encrypted' => false,
				'columnName' => 'approved_by' 
			),
			array(
				'sql' => 'witnessed_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'witnessed_by' 
				),
				'encrypted' => false,
				'columnName' => 'witnessed_by' 
			),
			array(
				'sql' => 'authorized_user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'authorized_user_id' 
				),
				'encrypted' => false,
				'columnName' => 'authorized_user_id' 
			),
			array(
				'sql' => 'certified_correct_by_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'certified_correct_by_name' 
				),
				'encrypted' => false,
				'columnName' => 'certified_correct_by_name' 
			),
			array(
				'sql' => 'certified_correct_by_position',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'certified_correct_by_position' 
				),
				'encrypted' => false,
				'columnName' => 'certified_correct_by_position' 
			),
			array(
				'sql' => 'disposal_approved_by_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_approved_by_name' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_approved_by_name' 
			),
			array(
				'sql' => 'disposal_approved_by_position',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_approved_by_position' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_approved_by_position' 
			),
			array(
				'sql' => 'property_inspector_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'property_inspector_name' 
				),
				'encrypted' => false,
				'columnName' => 'property_inspector_name' 
			),
			array(
				'sql' => 'property_inspector_position',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'property_inspector_position' 
				),
				'encrypted' => false,
				'columnName' => 'property_inspector_position' 
			),
			array(
				'sql' => 'witness_to_disposition_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'witness_to_disposition_name' 
				),
				'encrypted' => false,
				'columnName' => 'witness_to_disposition_name' 
			),
			array(
				'sql' => 'witness_to_disposition_position',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'witness_to_disposition_position' 
				),
				'encrypted' => false,
				'columnName' => 'witness_to_disposition_position' 
			),
			array(
				'sql' => 'certificate_statement',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'certificate_statement' 
				),
				'encrypted' => false,
				'columnName' => 'certificate_statement' 
			),
			array(
				'sql' => 'certificate_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'certificate_date' 
				),
				'encrypted' => false,
				'columnName' => 'certificate_date' 
			),
			array(
				'sql' => 'total_sale_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'total_sale_amount' 
				),
				'encrypted' => false,
				'columnName' => 'total_sale_amount' 
			),
			array(
				'sql' => 'disposal_method',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_method' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_method' 
			),
			array(
				'sql' => 'disposal_reason',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_reason' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_reason' 
			),
			array(
				'sql' => 'disposal_site',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_site' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_site' 
			),
			array(
				'sql' => 'disposal_datetime',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'disposal_datetime' 
				),
				'encrypted' => false,
				'columnName' => 'disposal_datetime' 
			),
			array(
				'sql' => 'hauler_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'hauler_name' 
				),
				'encrypted' => false,
				'columnName' => 'hauler_name' 
			),
			array(
				'sql' => 'vehicle_details',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'vehicle_details' 
				),
				'encrypted' => false,
				'columnName' => 'vehicle_details' 
			),
			array(
				'sql' => 'proof_required',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'proof_required' 
				),
				'encrypted' => false,
				'columnName' => 'proof_required' 
			),
			array(
				'sql' => 'remarks',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'remarks' 
				),
				'encrypted' => false,
				'columnName' => 'remarks' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'date_reviewed',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'date_reviewed' 
				),
				'encrypted' => false,
				'columnName' => 'date_reviewed' 
			),
			array(
				'sql' => 'date_approved',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'date_approved' 
				),
				'encrypted' => false,
				'columnName' => 'date_approved' 
			),
			array(
				'sql' => 'date_completed',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'date_completed' 
				),
				'encrypted' => false,
				'columnName' => 'date_completed' 
			),
			array(
				'sql' => 'stock_transfer_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'stock_transfer_id' 
				),
				'encrypted' => false,
				'columnName' => 'stock_transfer_id' 
			),
			array(
				'sql' => 'created_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => 'created_by' 
				),
				'encrypted' => false,
				'columnName' => 'created_by' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'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' => 'disposal_form',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'disposal_form',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'disposal_form',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'report_type',
						'disposal_no',
						'agency_name',
						'place_of_storage',
						'storage_address',
						'disposal_date',
						'report_date',
						'disposal_type',
						'source_reference_type',
						'source_reference_id',
						'office_id',
						'location_id',
						'warehouse_id',
						'prepared_by',
						'reviewed_by',
						'approved_by',
						'witnessed_by',
						'authorized_user_id',
						'certified_correct_by_name',
						'certified_correct_by_position',
						'disposal_approved_by_name',
						'disposal_approved_by_position',
						'property_inspector_name',
						'property_inspector_position',
						'witness_to_disposition_name',
						'witness_to_disposition_position',
						'certificate_statement',
						'certificate_date',
						'total_sale_amount',
						'disposal_method',
						'disposal_reason',
						'disposal_site',
						'disposal_datetime',
						'hauler_name',
						'vehicle_details',
						'proof_required',
						'remarks',
						'status',
						'date_reviewed',
						'date_approved',
						'date_completed',
						'stock_transfer_id',
						'created_by',
						'created_at',
						'updated_at' 
					),
					'name' => 'disposal_form' 
				),
				'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' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'groupBy' => array( 
			 
		),
		'having' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'orderBy' => array( 
			array(
				'sql' => 'id DESC',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'disposal_form',
					'name' => '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' => -1,
				'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 
			),
			array(
				'fieldIndex' => 36,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 37,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 38,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 39,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 40,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 41,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 42,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 43,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 44,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 45,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 46,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 47,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	"Print",
	"IIRP",
	report_type,
	disposal_no,
	agency_name,
	place_of_storage,
	storage_address,
	disposal_date,
	report_date,
	disposal_type,
	source_reference_type,
	source_reference_id,
	office_id,
	location_id,
	warehouse_id,
	prepared_by,
	reviewed_by,
	approved_by,
	witnessed_by,
	authorized_user_id,
	certified_correct_by_name,
	certified_correct_by_position,
	disposal_approved_by_name,
	disposal_approved_by_position,
	property_inspector_name,
	property_inspector_position,
	witness_to_disposition_name,
	witness_to_disposition_position,
	certificate_statement,
	certificate_date,
	total_sale_amount,
	disposal_method,
	disposal_reason,
	disposal_site,
	disposal_datetime,
	hauler_name,
	vehicle_details,
	proof_required,
	remarks,
	status,
	date_reviewed,
	date_approved,
	date_completed,
	stock_transfer_id,
	created_by,
	created_at,
	updated_at',
		'fromListSql' => 'FROM
	disposal_form',
		'orderBySql' => 'ORDER BY
	id DESC',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'hasJsEvents' => true,
	'originalTable' => 'disposal_form',
	'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( 
			'id',
			'disposal_no',
			'disposal_date',
			'disposal_type',
			'source_reference_type',
			'source_reference_id',
			'office_id',
			'location_id',
			'warehouse_id',
			'prepared_by',
			'reviewed_by',
			'approved_by',
			'witnessed_by',
			'authorized_user_id',
			'disposal_method',
			'disposal_reason',
			'disposal_site',
			'disposal_datetime',
			'hauler_name',
			'vehicle_details',
			'proof_required',
			'remarks',
			'status',
			'date_reviewed',
			'date_approved',
			'date_completed',
			'stock_transfer_id',
			'created_by',
			'created_at',
			'updated_at',
			'report_type',
			'agency_name',
			'place_of_storage',
			'storage_address',
			'report_date',
			'certified_correct_by_name',
			'certified_correct_by_position',
			'disposal_approved_by_name',
			'disposal_approved_by_position',
			'property_inspector_name',
			'property_inspector_position',
			'witness_to_disposition_name',
			'witness_to_disposition_position',
			'certificate_statement',
			'certificate_date',
			'total_sale_amount',
			'Print',
			'IIRP' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'disposal_no',
			'disposal_date',
			'disposal_type',
			'source_reference_type',
			'source_reference_id',
			'office_id',
			'location_id',
			'warehouse_id',
			'prepared_by',
			'reviewed_by',
			'approved_by',
			'witnessed_by',
			'authorized_user_id',
			'disposal_method',
			'disposal_reason',
			'disposal_site',
			'disposal_datetime',
			'hauler_name',
			'vehicle_details',
			'proof_required',
			'remarks',
			'status',
			'date_reviewed',
			'date_approved',
			'date_completed',
			'stock_transfer_id',
			'created_by',
			'created_at',
			'updated_at',
			'report_type',
			'agency_name',
			'place_of_storage',
			'storage_address',
			'report_date',
			'certified_correct_by_name',
			'certified_correct_by_position',
			'disposal_approved_by_name',
			'disposal_approved_by_position',
			'property_inspector_name',
			'property_inspector_position',
			'witness_to_disposition_name',
			'witness_to_disposition_position',
			'certificate_statement',
			'certificate_date',
			'total_sale_amount',
			'Print',
			'IIRP' 
		) 
	),
	'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['disposal_form'] = array(
	'tableCaption' => 'Disposal Form',
	'fieldLabels' => array(
		'id' => 'ID',
		'disposal_no' => 'Disposal No.',
		'disposal_date' => 'Disposal Date',
		'disposal_type' => 'Disposal Type',
		'source_reference_type' => 'Source Reference Type',
		'source_reference_id' => 'Source Reference ID',
		'office_id' => 'Office ID',
		'location_id' => 'Shelf/Rack',
		'warehouse_id' => 'Warehouse',
		'prepared_by' => 'Prepared by',
		'reviewed_by' => 'Reviewed by',
		'approved_by' => 'Approved by',
		'witnessed_by' => 'Witnessed by',
		'authorized_user_id' => 'Authorized User ID',
		'disposal_method' => 'Disposal Method',
		'disposal_reason' => '',
		'disposal_site' => 'Disposal Site',
		'disposal_datetime' => 'Disposal Datetime',
		'hauler_name' => 'Hauler Name',
		'vehicle_details' => 'Vehicle Details',
		'proof_required' => 'Proof Required',
		'remarks' => 'Disposal Reason/Remarks',
		'status' => 'Status',
		'date_reviewed' => 'Date Reviewed',
		'date_approved' => 'Date Approved',
		'date_completed' => 'Date Completed',
		'stock_transfer_id' => 'Stock Transfer ID',
		'created_by' => 'Created by',
		'created_at' => 'Created At',
		'updated_at' => 'Updated At',
		'report_type' => 'Report Type',
		'agency_name' => 'Agency Name',
		'place_of_storage' => 'Place Of Storage',
		'storage_address' => 'Storage Address',
		'report_date' => 'Report Date',
		'certified_correct_by_name' => 'Certified Correct by Name',
		'certified_correct_by_position' => 'Certified Correct by Position',
		'disposal_approved_by_name' => 'Disposal Approved by Name',
		'disposal_approved_by_position' => 'Disposal Approved by Position',
		'property_inspector_name' => 'Property Inspector Name',
		'property_inspector_position' => 'Property Inspector Position',
		'witness_to_disposition_name' => 'Witness To Disposition Name',
		'witness_to_disposition_position' => 'Witness To Disposition Position',
		'certificate_statement' => 'Certificate Statement',
		'certificate_date' => 'Certificate Date',
		'total_sale_amount' => 'Total Sale Amount',
		'Print' => 'Print',
		'IIRP' => 'IIRP' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'disposal_no' => '',
		'disposal_date' => '',
		'disposal_type' => '',
		'source_reference_type' => '',
		'source_reference_id' => '',
		'office_id' => '',
		'location_id' => '',
		'warehouse_id' => '',
		'prepared_by' => '',
		'reviewed_by' => '',
		'approved_by' => '',
		'witnessed_by' => '',
		'authorized_user_id' => '',
		'disposal_method' => '',
		'disposal_reason' => '',
		'disposal_site' => '',
		'disposal_datetime' => '',
		'hauler_name' => '',
		'vehicle_details' => '',
		'proof_required' => '',
		'remarks' => '',
		'status' => '',
		'date_reviewed' => '',
		'date_approved' => '',
		'date_completed' => '',
		'stock_transfer_id' => '',
		'created_by' => '',
		'created_at' => '',
		'updated_at' => '',
		'report_type' => '',
		'agency_name' => '',
		'place_of_storage' => '',
		'storage_address' => '',
		'report_date' => '',
		'certified_correct_by_name' => '',
		'certified_correct_by_position' => '',
		'disposal_approved_by_name' => '',
		'disposal_approved_by_position' => '',
		'property_inspector_name' => '',
		'property_inspector_position' => '',
		'witness_to_disposition_name' => '',
		'witness_to_disposition_position' => '',
		'certificate_statement' => '',
		'certificate_date' => '',
		'total_sale_amount' => '',
		'Print' => '',
		'IIRP' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'disposal_no' => '',
		'disposal_date' => '',
		'disposal_type' => '',
		'source_reference_type' => '',
		'source_reference_id' => '',
		'office_id' => '',
		'location_id' => '',
		'warehouse_id' => '',
		'prepared_by' => '',
		'reviewed_by' => '',
		'approved_by' => '',
		'witnessed_by' => '',
		'authorized_user_id' => '',
		'disposal_method' => '',
		'disposal_reason' => '',
		'disposal_site' => '',
		'disposal_datetime' => '',
		'hauler_name' => '',
		'vehicle_details' => '',
		'proof_required' => '',
		'remarks' => '',
		'status' => '',
		'date_reviewed' => '',
		'date_approved' => '',
		'date_completed' => '',
		'stock_transfer_id' => '',
		'created_by' => '',
		'created_at' => '',
		'updated_at' => '',
		'report_type' => '',
		'agency_name' => '',
		'place_of_storage' => '',
		'storage_address' => '',
		'report_date' => '',
		'certified_correct_by_name' => '',
		'certified_correct_by_position' => '',
		'disposal_approved_by_name' => '',
		'disposal_approved_by_position' => '',
		'property_inspector_name' => '',
		'property_inspector_position' => '',
		'witness_to_disposition_name' => '',
		'witness_to_disposition_position' => '',
		'certificate_statement' => '',
		'certificate_date' => '',
		'total_sale_amount' => '',
		'Print' => '',
		'IIRP' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>