<?php
global $runnerTableSettings;
$runnerTableSettings['qa_report'] = array(
	'name' => 'qa_report',
	'shortName' => 'qa_report',
	'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' => 'qa_report',
	'afterAddDetail' => 'qa_report',
	'detailsBadgeColor' => '6493ea',
	'sql' => 'SELECT
	qa_report_id,
	qa_no,
	qa_date,
	qa_time_start,
	qa_time_end,
	source_type,
	source_id,
	source_no,
	warehouse_id,
	location_id,
	supplier_id,
	donor_id,
	inspected_by,
	concurred_by,
	prepared_by,
	inspection_type,
	sample_size,
	total_received_qty,
	result_status,
	passed_qty,
	partial_qty,
	failed_qty,
	accepted_qty,
	rejected_qty,
	disposition,
	notes,
	observations,
	recommendations,
	status,
	created_by,
	created_at,
	updated_by,
	updated_at
FROM
	qa_report',
	'keyFields' => array( 
		'qa_report_id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'qa_report_id' => array(
			'name' => 'qa_report_id',
			'goodName' => 'qa_report_id',
			'strField' => 'qa_report_id',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'qa_report_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'qa_no' => array(
			'name' => 'qa_no',
			'goodName' => 'qa_no',
			'strField' => 'qa_no',
			'index' => 2,
			'sqlExpression' => 'qa_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'qa_date' => array(
			'name' => 'qa_date',
			'goodName' => 'qa_date',
			'strField' => 'qa_date',
			'index' => 3,
			'type' => 7,
			'sqlExpression' => 'qa_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'qa_time_start' => array(
			'name' => 'qa_time_start',
			'goodName' => 'qa_time_start',
			'strField' => 'qa_time_start',
			'index' => 4,
			'type' => 134,
			'sqlExpression' => 'qa_time_start',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Time' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Time',
					'timeUseTimepicker' => true,
					'timeMinutesStep' => '30' 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'qa_time_end' => array(
			'name' => 'qa_time_end',
			'goodName' => 'qa_time_end',
			'strField' => 'qa_time_end',
			'index' => 5,
			'type' => 134,
			'sqlExpression' => 'qa_time_end',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Time' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Time',
					'timeUseTimepicker' => true,
					'timeMinutesStep' => '30' 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'source_type' => array(
			'name' => 'source_type',
			'goodName' => 'source_type',
			'strField' => 'source_type',
			'index' => 6,
			'type' => 129,
			'sqlExpression' => 'source_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'INBOUND_RECEIVING',
						'INBOUND_DONATION',
						'PRODUCTION',
						'MANUAL_RECONDITIONING',
						'AUTOMATIC_RECONDITIONING',
						'STOCK_TRANSFER',
						'OTHER' 
					) 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'source_id' => array(
			'name' => 'source_id',
			'goodName' => 'source_id',
			'strField' => 'source_id',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'source_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'source_no' => array(
			'name' => 'source_no',
			'goodName' => 'source_no',
			'strField' => 'source_no',
			'index' => 8,
			'sqlExpression' => 'source_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'warehouse_id' => array(
			'name' => 'warehouse_id',
			'goodName' => 'warehouse_id',
			'strField' => 'warehouse_id',
			'index' => 9,
			'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' => 'reference_number',
					'lookupOrderBy' => 'reference_number' 
				) 
			),
			'tableName' => 'qa_report',
			'viewLinkTable' => 'warehouse',
			'viewLinkLookup' => true 
		),
		'location_id' => array(
			'name' => 'location_id',
			'goodName' => 'location_id',
			'strField' => 'location_id',
			'index' => 10,
			'type' => 3,
			'sqlExpression' => 'location_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'supplier_id' => array(
			'name' => 'supplier_id',
			'goodName' => 'supplier_id',
			'strField' => 'supplier_id',
			'index' => 11,
			'type' => 3,
			'sqlExpression' => 'supplier_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'supplier',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'reference_number',
					'lookupOrderBy' => 'reference_number' 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'donor_id' => array(
			'name' => 'donor_id',
			'goodName' => 'donor_id',
			'strField' => 'donor_id',
			'index' => 12,
			'type' => 3,
			'sqlExpression' => 'donor_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'inspected_by' => array(
			'name' => 'inspected_by',
			'goodName' => 'inspected_by',
			'strField' => 'inspected_by',
			'index' => 13,
			'type' => 3,
			'sqlExpression' => 'inspected_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'concurred_by' => array(
			'name' => 'concurred_by',
			'goodName' => 'concurred_by',
			'strField' => 'concurred_by',
			'index' => 14,
			'type' => 3,
			'sqlExpression' => 'concurred_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'prepared_by' => array(
			'name' => 'prepared_by',
			'goodName' => 'prepared_by',
			'strField' => 'prepared_by',
			'index' => 15,
			'type' => 3,
			'sqlExpression' => 'prepared_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'inspection_type' => array(
			'name' => 'inspection_type',
			'goodName' => 'inspection_type',
			'strField' => 'inspection_type',
			'index' => 16,
			'type' => 129,
			'sqlExpression' => 'inspection_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'FULL',
						'SAMPLING' 
					) 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'sample_size' => array(
			'name' => 'sample_size',
			'goodName' => 'sample_size',
			'strField' => 'sample_size',
			'index' => 17,
			'type' => 14,
			'sqlExpression' => 'sample_size',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'total_received_qty' => array(
			'name' => 'total_received_qty',
			'goodName' => 'total_received_qty',
			'strField' => 'total_received_qty',
			'index' => 18,
			'type' => 14,
			'sqlExpression' => 'total_received_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'result_status' => array(
			'name' => 'result_status',
			'goodName' => 'result_status',
			'strField' => 'result_status',
			'index' => 19,
			'type' => 129,
			'sqlExpression' => 'result_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'PASSED',
						'PARTIAL',
						'FAILED' 
					) 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'passed_qty' => array(
			'name' => 'passed_qty',
			'goodName' => 'passed_qty',
			'strField' => 'passed_qty',
			'index' => 20,
			'type' => 14,
			'sqlExpression' => 'passed_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'partial_qty' => array(
			'name' => 'partial_qty',
			'goodName' => 'partial_qty',
			'strField' => 'partial_qty',
			'index' => 21,
			'type' => 14,
			'sqlExpression' => 'partial_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'failed_qty' => array(
			'name' => 'failed_qty',
			'goodName' => 'failed_qty',
			'strField' => 'failed_qty',
			'index' => 22,
			'type' => 14,
			'sqlExpression' => 'failed_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'accepted_qty' => array(
			'name' => 'accepted_qty',
			'goodName' => 'accepted_qty',
			'strField' => 'accepted_qty',
			'index' => 23,
			'type' => 14,
			'sqlExpression' => 'accepted_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'rejected_qty' => array(
			'name' => 'rejected_qty',
			'goodName' => 'rejected_qty',
			'strField' => 'rejected_qty',
			'index' => 24,
			'type' => 14,
			'sqlExpression' => 'rejected_qty',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'disposition' => array(
			'name' => 'disposition',
			'goodName' => 'disposition',
			'strField' => 'disposition',
			'index' => 25,
			'type' => 129,
			'sqlExpression' => 'disposition',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'FOR_RELEASE',
						'FOR_RECONDITIONING',
						'FOR_RETURN',
						'FOR_DISPOSAL',
						'FOR_FURTHER_INSPECTION' 
					) 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'notes' => array(
			'name' => 'notes',
			'goodName' => 'notes',
			'strField' => 'notes',
			'index' => 26,
			'type' => 201,
			'sqlExpression' => 'notes',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'observations' => array(
			'name' => 'observations',
			'goodName' => 'observations',
			'strField' => 'observations',
			'index' => 27,
			'type' => 201,
			'sqlExpression' => 'observations',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'recommendations' => array(
			'name' => 'recommendations',
			'goodName' => 'recommendations',
			'strField' => 'recommendations',
			'index' => 28,
			'type' => 201,
			'sqlExpression' => 'recommendations',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 29,
			'type' => 129,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'DRAFT',
						'SUBMITTED',
						'APPROVED',
						'CLOSED',
						'CANCELLED' 
					) 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'created_by' => array(
			'name' => 'created_by',
			'goodName' => 'created_by',
			'strField' => 'created_by',
			'index' => 30,
			'type' => 3,
			'sqlExpression' => 'created_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 31,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'updated_by' => array(
			'name' => 'updated_by',
			'goodName' => 'updated_by',
			'strField' => 'updated_by',
			'index' => 32,
			'type' => 3,
			'sqlExpression' => 'updated_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_report' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 33,
			'type' => 135,
			'sqlExpression' => 'updated_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_report' 
		) 
	),
	'detailsTables' => array( 
		'qa_report_checklist',
		'qa_report_detail' 
	),
	'query' => array(
		'sql' => 'SELECT
	qa_report_id,
	qa_no,
	qa_date,
	qa_time_start,
	qa_time_end,
	source_type,
	source_id,
	source_no,
	warehouse_id,
	location_id,
	supplier_id,
	donor_id,
	inspected_by,
	concurred_by,
	prepared_by,
	inspection_type,
	sample_size,
	total_received_qty,
	result_status,
	passed_qty,
	partial_qty,
	failed_qty,
	accepted_qty,
	rejected_qty,
	disposition,
	notes,
	observations,
	recommendations,
	status,
	created_by,
	created_at,
	updated_by,
	updated_at
FROM
	qa_report',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'qa_report_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'qa_report_id' 
				),
				'encrypted' => false,
				'columnName' => 'qa_report_id' 
			),
			array(
				'sql' => 'qa_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'qa_no' 
				),
				'encrypted' => false,
				'columnName' => 'qa_no' 
			),
			array(
				'sql' => 'qa_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'qa_date' 
				),
				'encrypted' => false,
				'columnName' => 'qa_date' 
			),
			array(
				'sql' => 'qa_time_start',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'qa_time_start' 
				),
				'encrypted' => false,
				'columnName' => 'qa_time_start' 
			),
			array(
				'sql' => 'qa_time_end',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'qa_time_end' 
				),
				'encrypted' => false,
				'columnName' => 'qa_time_end' 
			),
			array(
				'sql' => 'source_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'source_type' 
				),
				'encrypted' => false,
				'columnName' => 'source_type' 
			),
			array(
				'sql' => 'source_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'source_id' 
				),
				'encrypted' => false,
				'columnName' => 'source_id' 
			),
			array(
				'sql' => 'source_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'source_no' 
				),
				'encrypted' => false,
				'columnName' => 'source_no' 
			),
			array(
				'sql' => 'warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'warehouse_id' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_id' 
			),
			array(
				'sql' => 'location_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'location_id' 
				),
				'encrypted' => false,
				'columnName' => 'location_id' 
			),
			array(
				'sql' => 'supplier_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'supplier_id' 
				),
				'encrypted' => false,
				'columnName' => 'supplier_id' 
			),
			array(
				'sql' => 'donor_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'donor_id' 
				),
				'encrypted' => false,
				'columnName' => 'donor_id' 
			),
			array(
				'sql' => 'inspected_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'inspected_by' 
				),
				'encrypted' => false,
				'columnName' => 'inspected_by' 
			),
			array(
				'sql' => 'concurred_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'concurred_by' 
				),
				'encrypted' => false,
				'columnName' => 'concurred_by' 
			),
			array(
				'sql' => 'prepared_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'prepared_by' 
				),
				'encrypted' => false,
				'columnName' => 'prepared_by' 
			),
			array(
				'sql' => 'inspection_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'inspection_type' 
				),
				'encrypted' => false,
				'columnName' => 'inspection_type' 
			),
			array(
				'sql' => 'sample_size',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'sample_size' 
				),
				'encrypted' => false,
				'columnName' => 'sample_size' 
			),
			array(
				'sql' => 'total_received_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'total_received_qty' 
				),
				'encrypted' => false,
				'columnName' => 'total_received_qty' 
			),
			array(
				'sql' => 'result_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'result_status' 
				),
				'encrypted' => false,
				'columnName' => 'result_status' 
			),
			array(
				'sql' => 'passed_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'passed_qty' 
				),
				'encrypted' => false,
				'columnName' => 'passed_qty' 
			),
			array(
				'sql' => 'partial_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'partial_qty' 
				),
				'encrypted' => false,
				'columnName' => 'partial_qty' 
			),
			array(
				'sql' => 'failed_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'failed_qty' 
				),
				'encrypted' => false,
				'columnName' => 'failed_qty' 
			),
			array(
				'sql' => 'accepted_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'accepted_qty' 
				),
				'encrypted' => false,
				'columnName' => 'accepted_qty' 
			),
			array(
				'sql' => 'rejected_qty',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'rejected_qty' 
				),
				'encrypted' => false,
				'columnName' => 'rejected_qty' 
			),
			array(
				'sql' => 'disposition',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'disposition' 
				),
				'encrypted' => false,
				'columnName' => 'disposition' 
			),
			array(
				'sql' => 'notes',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'notes' 
				),
				'encrypted' => false,
				'columnName' => 'notes' 
			),
			array(
				'sql' => 'observations',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'observations' 
				),
				'encrypted' => false,
				'columnName' => 'observations' 
			),
			array(
				'sql' => 'recommendations',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'recommendations' 
				),
				'encrypted' => false,
				'columnName' => 'recommendations' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'created_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'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' => 'qa_report',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			),
			array(
				'sql' => 'updated_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'updated_by' 
				),
				'encrypted' => false,
				'columnName' => 'updated_by' 
			),
			array(
				'sql' => 'updated_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_report',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'qa_report',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'qa_report',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'qa_report_id',
						'qa_no',
						'qa_date',
						'qa_time_start',
						'qa_time_end',
						'source_type',
						'source_id',
						'source_no',
						'warehouse_id',
						'location_id',
						'supplier_id',
						'donor_id',
						'inspected_by',
						'concurred_by',
						'prepared_by',
						'inspection_type',
						'sample_size',
						'total_received_qty',
						'result_status',
						'passed_qty',
						'partial_qty',
						'failed_qty',
						'accepted_qty',
						'rejected_qty',
						'disposition',
						'notes',
						'observations',
						'recommendations',
						'status',
						'created_by',
						'created_at',
						'updated_by',
						'updated_at' 
					),
					'name' => 'qa_report' 
				),
				'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( 
			 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => -1,
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'qa_report_id,
	qa_no,
	qa_date,
	qa_time_start,
	qa_time_end,
	source_type,
	source_id,
	source_no,
	warehouse_id,
	location_id,
	supplier_id,
	donor_id,
	inspected_by,
	concurred_by,
	prepared_by,
	inspection_type,
	sample_size,
	total_received_qty,
	result_status,
	passed_qty,
	partial_qty,
	failed_qty,
	accepted_qty,
	rejected_qty,
	disposition,
	notes,
	observations,
	recommendations,
	status,
	created_by,
	created_at,
	updated_by,
	updated_at',
		'fromListSql' => 'FROM
	qa_report',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'qa_report',
	'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( 
			'qa_report_id',
			'qa_no',
			'qa_date',
			'qa_time_start',
			'qa_time_end',
			'source_type',
			'source_id',
			'source_no',
			'warehouse_id',
			'location_id',
			'supplier_id',
			'donor_id',
			'inspected_by',
			'concurred_by',
			'prepared_by',
			'inspection_type',
			'sample_size',
			'total_received_qty',
			'result_status',
			'passed_qty',
			'partial_qty',
			'failed_qty',
			'accepted_qty',
			'rejected_qty',
			'disposition',
			'notes',
			'observations',
			'recommendations',
			'status',
			'created_by',
			'created_at',
			'updated_by',
			'updated_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'qa_report_id',
			'qa_no',
			'qa_date',
			'qa_time_start',
			'qa_time_end',
			'source_type',
			'source_id',
			'source_no',
			'warehouse_id',
			'location_id',
			'supplier_id',
			'donor_id',
			'inspected_by',
			'concurred_by',
			'prepared_by',
			'inspection_type',
			'sample_size',
			'total_received_qty',
			'result_status',
			'passed_qty',
			'partial_qty',
			'failed_qty',
			'accepted_qty',
			'rejected_qty',
			'disposition',
			'notes',
			'observations',
			'recommendations',
			'status',
			'created_by',
			'created_at',
			'updated_by',
			'updated_at' 
		) 
	),
	'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['qa_report'] = array(
	'tableCaption' => 'Qa Report',
	'fieldLabels' => array(
		'qa_report_id' => 'QA Report ID',
		'qa_no' => 'QA No.',
		'qa_date' => 'QA Date',
		'qa_time_start' => 'QA Time Start',
		'qa_time_end' => 'QA Time End',
		'source_type' => 'Source Type',
		'source_id' => 'Source ID',
		'source_no' => 'Source No.',
		'warehouse_id' => 'Warehouse ID',
		'location_id' => 'Location ID',
		'supplier_id' => 'Supplier ID',
		'donor_id' => 'Donor ID',
		'inspected_by' => 'Inspected by',
		'concurred_by' => 'Concurred by',
		'prepared_by' => 'Prepared by',
		'inspection_type' => 'Inspection Type',
		'sample_size' => 'Sample Size',
		'total_received_qty' => 'Total Received Qty',
		'result_status' => 'Result Status',
		'passed_qty' => 'Passed Qty',
		'partial_qty' => 'Partial Qty',
		'failed_qty' => 'Failed Qty',
		'accepted_qty' => 'Accepted Qty',
		'rejected_qty' => 'Rejected Qty',
		'disposition' => 'Disposition',
		'notes' => 'Notes',
		'observations' => 'Observations',
		'recommendations' => 'Recommendations',
		'status' => 'Status',
		'created_by' => 'Created by',
		'created_at' => 'Created At',
		'updated_by' => 'Updated By',
		'updated_at' => 'Updated At' 
	),
	'fieldTooltips' => array(
		'qa_report_id' => '',
		'qa_no' => '',
		'qa_date' => '',
		'qa_time_start' => '',
		'qa_time_end' => '',
		'source_type' => '',
		'source_id' => '',
		'source_no' => '',
		'warehouse_id' => '',
		'location_id' => '',
		'supplier_id' => '',
		'donor_id' => '',
		'inspected_by' => '',
		'concurred_by' => '',
		'prepared_by' => '',
		'inspection_type' => '',
		'sample_size' => '',
		'total_received_qty' => '',
		'result_status' => '',
		'passed_qty' => '',
		'partial_qty' => '',
		'failed_qty' => '',
		'accepted_qty' => '',
		'rejected_qty' => '',
		'disposition' => '',
		'notes' => '',
		'observations' => '',
		'recommendations' => '',
		'status' => '',
		'created_by' => '',
		'created_at' => '',
		'updated_by' => '',
		'updated_at' => '' 
	),
	'fieldPlaceholders' => array(
		'qa_report_id' => '',
		'qa_no' => '',
		'qa_date' => '',
		'qa_time_start' => '',
		'qa_time_end' => '',
		'source_type' => '',
		'source_id' => '',
		'source_no' => '',
		'warehouse_id' => '',
		'location_id' => '',
		'supplier_id' => '',
		'donor_id' => '',
		'inspected_by' => '',
		'concurred_by' => '',
		'prepared_by' => '',
		'inspection_type' => '',
		'sample_size' => '',
		'total_received_qty' => '',
		'result_status' => '',
		'passed_qty' => '',
		'partial_qty' => '',
		'failed_qty' => '',
		'accepted_qty' => '',
		'rejected_qty' => '',
		'disposition' => '',
		'notes' => '',
		'observations' => '',
		'recommendations' => '',
		'status' => '',
		'created_by' => '',
		'created_at' => '',
		'updated_by' => '',
		'updated_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>