<?php
global $runnerTableSettings;
$runnerTableSettings['qa_incoming_goods'] = array(
	'name' => 'qa_incoming_goods',
	'shortName' => 'qa_incoming_goods',
	'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_incoming_goods',
	'afterAddDetail' => 'qa_incoming_goods',
	'detailsBadgeColor' => 'dc143c',
	'strOrderBy' => 'ORDER BY
	id DESC',
	'orderInfo' => array( 
		array(
			'index' => 1,
			'dir' => 'DESC',
			'field' => 'id' 
		) 
	),
	'sql' => 'SELECT
	id,
	"" AS `print`,
	"" AS batch_barcode,
	qa_no,
	receiving_report_no,
	series_number,
	source_transaction_type,
	source_transaction_id,
	source_detail_id,
	po_no,
	dr_no,
	ar_no,
	po_receiving_id,
	po_receiving_detail_id,
	delivery_receipt_id,
	delivery_receipt_detail_id,
	augmentation_request_id,
	augmentation_request_detail_id,
	inspection_date,
	time_started,
	time_finished,
	receiving_warehouse_id,
	receiving_warehouse_name,
	no_of_inspectors,
	item_id,
	item_name,
	kind,
	brand,
	unit,
	audit_type,
	delivery,
	source,
	delivered_quantity,
	inspected_quantity,
	accepted_quantity,
	returned_quantity,
	for_disposal_quantity,
	rejected_quantity,
	on_hold_quantity,
	uninspected_quantity,
	unresolved_quantity,
	total_sample_inspected,
	average_acceptance_rate,
	average_rejection_rate,
	final_action_taken,
	receiving_status,
	inspector_notes,
	inspected_by,
	inspected_by_name,
	concurred_by,
	concurred_by_name,
	approval_status,
	created_by,
	createdAt,
	updatedAt,
	supplier,
	donor,
	location,
	waranty_date,
	manufacture_date,
	expiry_date,
	batch_no,
	vbn,
	mother_facility_id
FROM
	qa_incoming_goods
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' => 'qa_incoming_goods' 
		),
		'qa_no' => array(
			'name' => 'qa_no',
			'goodName' => 'qa_no',
			'strField' => 'qa_no',
			'index' => 4,
			'sqlExpression' => 'qa_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'receiving_report_no' => array(
			'name' => 'receiving_report_no',
			'goodName' => 'receiving_report_no',
			'strField' => 'receiving_report_no',
			'index' => 5,
			'sqlExpression' => 'receiving_report_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'series_number' => array(
			'name' => 'series_number',
			'goodName' => 'series_number',
			'strField' => 'series_number',
			'index' => 6,
			'sqlExpression' => 'series_number',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'source_transaction_type' => array(
			'name' => 'source_transaction_type',
			'goodName' => 'source_transaction_type',
			'strField' => 'source_transaction_type',
			'index' => 7,
			'type' => 129,
			'sqlExpression' => 'source_transaction_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'PO_RECEIVING',
						'DONATION_RECEIVING',
						'DELIVERY_RECEIPT',
						'AUGMENTATION_REQUEST',
						'MANUAL' 
					) 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'source_transaction_id' => array(
			'name' => 'source_transaction_id',
			'goodName' => 'source_transaction_id',
			'strField' => 'source_transaction_id',
			'index' => 8,
			'type' => 3,
			'sqlExpression' => 'source_transaction_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'source_detail_id' => array(
			'name' => 'source_detail_id',
			'goodName' => 'source_detail_id',
			'strField' => 'source_detail_id',
			'index' => 9,
			'type' => 3,
			'sqlExpression' => 'source_detail_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'po_no' => array(
			'name' => 'po_no',
			'goodName' => 'po_no',
			'strField' => 'po_no',
			'index' => 10,
			'sqlExpression' => 'po_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'lookupType' => 2,
					'lookupTable' => 'purchaseorder',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'reference_number' 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'dr_no' => array(
			'name' => 'dr_no',
			'goodName' => 'dr_no',
			'strField' => 'dr_no',
			'index' => 11,
			'sqlExpression' => 'dr_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'ar_no' => array(
			'name' => 'ar_no',
			'goodName' => 'ar_no',
			'strField' => 'ar_no',
			'index' => 12,
			'sqlExpression' => 'ar_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'po_receiving_id' => array(
			'name' => 'po_receiving_id',
			'goodName' => 'po_receiving_id',
			'strField' => 'po_receiving_id',
			'index' => 13,
			'type' => 3,
			'sqlExpression' => 'po_receiving_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'po_receiving_detail_id' => array(
			'name' => 'po_receiving_detail_id',
			'goodName' => 'po_receiving_detail_id',
			'strField' => 'po_receiving_detail_id',
			'index' => 14,
			'type' => 3,
			'sqlExpression' => 'po_receiving_detail_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'delivery_receipt_id' => array(
			'name' => 'delivery_receipt_id',
			'goodName' => 'delivery_receipt_id',
			'strField' => 'delivery_receipt_id',
			'index' => 15,
			'type' => 3,
			'sqlExpression' => 'delivery_receipt_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'delivery_receipt_detail_id' => array(
			'name' => 'delivery_receipt_detail_id',
			'goodName' => 'delivery_receipt_detail_id',
			'strField' => 'delivery_receipt_detail_id',
			'index' => 16,
			'type' => 3,
			'sqlExpression' => 'delivery_receipt_detail_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'augmentation_request_id' => array(
			'name' => 'augmentation_request_id',
			'goodName' => 'augmentation_request_id',
			'strField' => 'augmentation_request_id',
			'index' => 17,
			'type' => 3,
			'sqlExpression' => 'augmentation_request_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'augmentation_request_detail_id' => array(
			'name' => 'augmentation_request_detail_id',
			'goodName' => 'augmentation_request_detail_id',
			'strField' => 'augmentation_request_detail_id',
			'index' => 18,
			'type' => 3,
			'sqlExpression' => 'augmentation_request_detail_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'inspection_date' => array(
			'name' => 'inspection_date',
			'goodName' => 'inspection_date',
			'strField' => 'inspection_date',
			'index' => 19,
			'type' => 7,
			'sqlExpression' => 'inspection_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'defaultValue' => 'Now()',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'time_started' => array(
			'name' => 'time_started',
			'goodName' => 'time_started',
			'strField' => 'time_started',
			'index' => 20,
			'type' => 135,
			'sqlExpression' => 'time_started',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Time',
					'dateEditType' => 11,
					'timeUseTimepicker' => true,
					'timeMinutesStep' => '30' 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'time_finished' => array(
			'name' => 'time_finished',
			'goodName' => 'time_finished',
			'strField' => 'time_finished',
			'index' => 21,
			'type' => 135,
			'sqlExpression' => 'time_finished',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Time',
					'dateEditType' => 11,
					'timeUseTimepicker' => true 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'receiving_warehouse_id' => array(
			'name' => 'receiving_warehouse_id',
			'goodName' => 'receiving_warehouse_id',
			'strField' => 'receiving_warehouse_id',
			'index' => 22,
			'type' => 3,
			'sqlExpression' => 'receiving_warehouse_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'warehouse',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'warehouse_code',
					'lookupDependent' => true,
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'mother_facility_id',
							'lookupField' => 'mother_facility_id' 
						) 
					) 
				) 
			),
			'tableName' => 'qa_incoming_goods',
			'viewLinkTable' => 'warehouse',
			'viewLinkLookup' => true 
		),
		'receiving_warehouse_name' => array(
			'name' => 'receiving_warehouse_name',
			'goodName' => 'receiving_warehouse_name',
			'strField' => 'receiving_warehouse_name',
			'index' => 23,
			'sqlExpression' => 'receiving_warehouse_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'no_of_inspectors' => array(
			'name' => 'no_of_inspectors',
			'goodName' => 'no_of_inspectors',
			'strField' => 'no_of_inspectors',
			'index' => 24,
			'type' => 3,
			'sqlExpression' => 'no_of_inspectors',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'item_id' => array(
			'name' => 'item_id',
			'goodName' => 'item_id',
			'strField' => 'item_id',
			'index' => 25,
			'type' => 3,
			'sqlExpression' => 'item_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'item',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'sku',
					'lookupControlType' => 1,
					'lookupAutofillFields' => array( 
						array(
							'masterField' => 'item_name',
							'lookupField' => 'description' 
						) 
					) 
				) 
			),
			'tableName' => 'qa_incoming_goods',
			'viewLinkTable' => 'item',
			'viewLinkLookup' => true 
		),
		'item_name' => array(
			'name' => 'item_name',
			'goodName' => 'item_name',
			'strField' => 'item_name',
			'index' => 26,
			'sqlExpression' => 'item_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'kind' => array(
			'name' => 'kind',
			'goodName' => 'kind',
			'strField' => 'kind',
			'index' => 27,
			'sqlExpression' => 'kind',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'brand' => array(
			'name' => 'brand',
			'goodName' => 'brand',
			'strField' => 'brand',
			'index' => 28,
			'sqlExpression' => 'brand',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'itembrand',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'brand_name' 
				) 
			),
			'tableName' => 'qa_incoming_goods',
			'viewLinkTable' => 'itembrand',
			'viewLinkLookup' => true 
		),
		'unit' => array(
			'name' => 'unit',
			'goodName' => 'unit',
			'strField' => 'unit',
			'index' => 29,
			'sqlExpression' => 'unit',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'itemunit',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'name' 
				) 
			),
			'tableName' => 'qa_incoming_goods',
			'viewLinkTable' => 'itemunit',
			'viewLinkLookup' => true 
		),
		'audit_type' => array(
			'name' => 'audit_type',
			'goodName' => 'audit_type',
			'strField' => 'audit_type',
			'index' => 30,
			'sqlExpression' => 'audit_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'delivery' => array(
			'name' => 'delivery',
			'goodName' => 'delivery',
			'strField' => 'delivery',
			'index' => 31,
			'sqlExpression' => 'delivery',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'source' => array(
			'name' => 'source',
			'goodName' => 'source',
			'strField' => 'source',
			'index' => 32,
			'sqlExpression' => 'source',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'lookupType' => 2,
					'lookupTable' => 'item_category',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'prefix',
					'lookupDisplayField' => 'prefix' 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'delivered_quantity' => array(
			'name' => 'delivered_quantity',
			'goodName' => 'delivered_quantity',
			'strField' => 'delivered_quantity',
			'index' => 33,
			'type' => 14,
			'sqlExpression' => 'delivered_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'inspected_quantity' => array(
			'name' => 'inspected_quantity',
			'goodName' => 'inspected_quantity',
			'strField' => 'inspected_quantity',
			'index' => 34,
			'type' => 14,
			'sqlExpression' => 'inspected_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'accepted_quantity' => array(
			'name' => 'accepted_quantity',
			'goodName' => 'accepted_quantity',
			'strField' => 'accepted_quantity',
			'index' => 35,
			'type' => 14,
			'sqlExpression' => 'accepted_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'returned_quantity' => array(
			'name' => 'returned_quantity',
			'goodName' => 'returned_quantity',
			'strField' => 'returned_quantity',
			'index' => 36,
			'type' => 14,
			'sqlExpression' => 'returned_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'for_disposal_quantity' => array(
			'name' => 'for_disposal_quantity',
			'goodName' => 'for_disposal_quantity',
			'strField' => 'for_disposal_quantity',
			'index' => 37,
			'type' => 14,
			'sqlExpression' => 'for_disposal_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'rejected_quantity' => array(
			'name' => 'rejected_quantity',
			'goodName' => 'rejected_quantity',
			'strField' => 'rejected_quantity',
			'index' => 38,
			'type' => 14,
			'sqlExpression' => 'rejected_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'on_hold_quantity' => array(
			'name' => 'on_hold_quantity',
			'goodName' => 'on_hold_quantity',
			'strField' => 'on_hold_quantity',
			'index' => 39,
			'type' => 14,
			'sqlExpression' => 'on_hold_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'uninspected_quantity' => array(
			'name' => 'uninspected_quantity',
			'goodName' => 'uninspected_quantity',
			'strField' => 'uninspected_quantity',
			'index' => 40,
			'type' => 14,
			'sqlExpression' => 'uninspected_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'unresolved_quantity' => array(
			'name' => 'unresolved_quantity',
			'goodName' => 'unresolved_quantity',
			'strField' => 'unresolved_quantity',
			'index' => 41,
			'type' => 14,
			'sqlExpression' => 'unresolved_quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'total_sample_inspected' => array(
			'name' => 'total_sample_inspected',
			'goodName' => 'total_sample_inspected',
			'strField' => 'total_sample_inspected',
			'index' => 42,
			'type' => 14,
			'sqlExpression' => 'total_sample_inspected',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'average_acceptance_rate' => array(
			'name' => 'average_acceptance_rate',
			'goodName' => 'average_acceptance_rate',
			'strField' => 'average_acceptance_rate',
			'index' => 43,
			'type' => 14,
			'sqlExpression' => 'average_acceptance_rate',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'average_rejection_rate' => array(
			'name' => 'average_rejection_rate',
			'goodName' => 'average_rejection_rate',
			'strField' => 'average_rejection_rate',
			'index' => 44,
			'type' => 14,
			'sqlExpression' => 'average_rejection_rate',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'final_action_taken' => array(
			'name' => 'final_action_taken',
			'goodName' => 'final_action_taken',
			'strField' => 'final_action_taken',
			'index' => 45,
			'type' => 129,
			'sqlExpression' => 'final_action_taken',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'Partially Accepted',
						'For Disposal',
						'For Replacement',
						'For Reconditioning',
						'For Further Inspection',
						'On Hold' 
					) 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'receiving_status' => array(
			'name' => 'receiving_status',
			'goodName' => 'receiving_status',
			'strField' => 'receiving_status',
			'index' => 46,
			'type' => 129,
			'sqlExpression' => 'receiving_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'FOR_QA',
						'PARTIALLY_ACCEPTED',
						'ACCEPTED',
						'REJECTED',
						'RETURNED',
						'FOR_DISPOSAL',
						'ON_HOLD',
						'COMPLETED' 
					) 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'inspector_notes' => array(
			'name' => 'inspector_notes',
			'goodName' => 'inspector_notes',
			'strField' => 'inspector_notes',
			'index' => 47,
			'type' => 201,
			'sqlExpression' => 'inspector_notes',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'inspected_by' => array(
			'name' => 'inspected_by',
			'goodName' => 'inspected_by',
			'strField' => 'inspected_by',
			'index' => 48,
			'type' => 3,
			'sqlExpression' => 'inspected_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'inspected_by_name' => array(
			'name' => 'inspected_by_name',
			'goodName' => 'inspected_by_name',
			'strField' => 'inspected_by_name',
			'index' => 49,
			'sqlExpression' => 'inspected_by_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'concurred_by' => array(
			'name' => 'concurred_by',
			'goodName' => 'concurred_by',
			'strField' => 'concurred_by',
			'index' => 50,
			'type' => 3,
			'sqlExpression' => 'concurred_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'concurred_by_name' => array(
			'name' => 'concurred_by_name',
			'goodName' => 'concurred_by_name',
			'strField' => 'concurred_by_name',
			'index' => 51,
			'sqlExpression' => 'concurred_by_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'approval_status' => array(
			'name' => 'approval_status',
			'goodName' => 'approval_status',
			'strField' => 'approval_status',
			'index' => 52,
			'type' => 129,
			'sqlExpression' => 'approval_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'DRAFT',
						'FOR_CHECKING',
						'FOR_APPROVAL',
						'APPROVED',
						'DISAPPROVED',
						'CANCELLED' 
					) 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'created_by' => array(
			'name' => 'created_by',
			'goodName' => 'created_by',
			'strField' => 'created_by',
			'index' => 53,
			'type' => 3,
			'sqlExpression' => 'created_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'createdAt' => array(
			'name' => 'createdAt',
			'goodName' => 'createdAt',
			'strField' => 'createdAt',
			'index' => 54,
			'type' => 135,
			'sqlExpression' => 'createdAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'updatedAt' => array(
			'name' => 'updatedAt',
			'goodName' => 'updatedAt',
			'strField' => 'updatedAt',
			'index' => 55,
			'type' => 135,
			'sqlExpression' => 'updatedAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'print' => array(
			'name' => 'print',
			'goodName' => 'print',
			'strField' => 'print',
			'index' => 2,
			'sqlExpression' => '""',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Custom',
					'customExpression' => '
$value = "<a href=\'" . $_SESSION["path"] . "frameset?__report=BoxBarcode_DSWD.rptdesign&txnid=".$data[\'id\']."&ea=".$_SESSION["ea"]."&&__dpi=96&__format=pdf&__pageoverflow=2&__overwrite=false\'>Print</a>";

' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		),
		'supplier' => array(
			'name' => 'supplier',
			'goodName' => 'supplier',
			'strField' => 'supplier',
			'index' => 56,
			'type' => 3,
			'sqlExpression' => 'supplier',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'lookupControlType' => 1 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'donor' => array(
			'name' => 'donor',
			'goodName' => 'donor',
			'strField' => 'donor',
			'index' => 57,
			'type' => 3,
			'sqlExpression' => 'donor',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'lookupType' => 2,
					'lookupTable' => 'donor',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'donor_name',
					'lookupOrderBy' => 'donor_name',
					'lookupControlType' => 1,
					'lookupAddPage' => 'add' 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'location' => array(
			'name' => 'location',
			'goodName' => 'location',
			'strField' => 'location',
			'index' => 58,
			'type' => 3,
			'sqlExpression' => 'location',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'rack',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'reference_number',
					'lookupOrderBy' => 'reference_number',
					'lookupDependent' => true,
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'receiving_warehouse_id',
							'lookupField' => 'warehouse_id' 
						) 
					) 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'batch_barcode' => array(
			'name' => 'batch_barcode',
			'goodName' => 'batch_barcode',
			'strField' => 'batch_barcode',
			'index' => 3,
			'sqlExpression' => '""',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Custom',
					'customExpression' => '
$value = "<a href=\'" . $_SESSION["path"] . "frameset?__report=BoxBarcode_DSWD.rptdesign&txnid=".$data[\'id\']."&ea=".$_SESSION["ea"]."&&__dpi=96&__format=pdf&__pageoverflow=2&__overwrite=false\'>Print</a>";

' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		),
		'waranty_date' => array(
			'name' => 'waranty_date',
			'goodName' => 'waranty_date',
			'strField' => 'waranty_date',
			'index' => 59,
			'type' => 7,
			'sqlExpression' => 'waranty_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'required' => true,
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'manufacture_date' => array(
			'name' => 'manufacture_date',
			'goodName' => 'manufacture_date',
			'strField' => 'manufacture_date',
			'index' => 60,
			'type' => 7,
			'sqlExpression' => 'manufacture_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'required' => true,
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'expiry_date' => array(
			'name' => 'expiry_date',
			'goodName' => 'expiry_date',
			'strField' => 'expiry_date',
			'index' => 61,
			'type' => 7,
			'sqlExpression' => 'expiry_date',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'required' => true,
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'batch_no' => array(
			'name' => 'batch_no',
			'goodName' => 'batch_no',
			'strField' => 'batch_no',
			'index' => 62,
			'sqlExpression' => 'batch_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'vbn' => array(
			'name' => 'vbn',
			'goodName' => 'vbn',
			'strField' => 'vbn',
			'index' => 63,
			'sqlExpression' => 'vbn',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Readonly' 
				) 
			),
			'tableName' => 'qa_incoming_goods' 
		),
		'mother_facility_id' => array(
			'name' => 'mother_facility_id',
			'goodName' => 'mother_facility_id',
			'strField' => 'mother_facility_id',
			'index' => 64,
			'type' => 3,
			'sqlExpression' => 'mother_facility_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'mother_facility',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'facility_code' 
				) 
			),
			'tableName' => 'qa_incoming_goods',
			'viewLinkTable' => 'mother_facility',
			'viewLinkLookup' => true 
		) 
	),
	'detailsTables' => array( 
		'qa_incoming_goods_detail',
		'qa_incoming_goods_item',
		'qa_incoming_goods_inspector' 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	"" AS `print`,
	"" AS batch_barcode,
	qa_no,
	receiving_report_no,
	series_number,
	source_transaction_type,
	source_transaction_id,
	source_detail_id,
	po_no,
	dr_no,
	ar_no,
	po_receiving_id,
	po_receiving_detail_id,
	delivery_receipt_id,
	delivery_receipt_detail_id,
	augmentation_request_id,
	augmentation_request_detail_id,
	inspection_date,
	time_started,
	time_finished,
	receiving_warehouse_id,
	receiving_warehouse_name,
	no_of_inspectors,
	item_id,
	item_name,
	kind,
	brand,
	unit,
	audit_type,
	delivery,
	source,
	delivered_quantity,
	inspected_quantity,
	accepted_quantity,
	returned_quantity,
	for_disposal_quantity,
	rejected_quantity,
	on_hold_quantity,
	uninspected_quantity,
	unresolved_quantity,
	total_sample_inspected,
	average_acceptance_rate,
	average_rejection_rate,
	final_action_taken,
	receiving_status,
	inspector_notes,
	inspected_by,
	inspected_by_name,
	concurred_by,
	concurred_by_name,
	approval_status,
	created_by,
	createdAt,
	updatedAt,
	supplier,
	donor,
	location,
	waranty_date,
	manufacture_date,
	expiry_date,
	batch_no,
	vbn,
	mother_facility_id
FROM
	qa_incoming_goods
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' => 'qa_incoming_goods',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => '""',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => 'print',
				'expression' => array(
					'sql' => '""',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'print' 
			),
			array(
				'sql' => '""',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => 'batch_barcode',
				'expression' => array(
					'sql' => '""',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'batch_barcode' 
			),
			array(
				'sql' => 'qa_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'qa_no' 
				),
				'encrypted' => false,
				'columnName' => 'qa_no' 
			),
			array(
				'sql' => 'receiving_report_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'receiving_report_no' 
				),
				'encrypted' => false,
				'columnName' => 'receiving_report_no' 
			),
			array(
				'sql' => 'series_number',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'series_number' 
				),
				'encrypted' => false,
				'columnName' => 'series_number' 
			),
			array(
				'sql' => 'source_transaction_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'source_transaction_type' 
				),
				'encrypted' => false,
				'columnName' => 'source_transaction_type' 
			),
			array(
				'sql' => 'source_transaction_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'source_transaction_id' 
				),
				'encrypted' => false,
				'columnName' => 'source_transaction_id' 
			),
			array(
				'sql' => 'source_detail_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'source_detail_id' 
				),
				'encrypted' => false,
				'columnName' => 'source_detail_id' 
			),
			array(
				'sql' => 'po_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'po_no' 
				),
				'encrypted' => false,
				'columnName' => 'po_no' 
			),
			array(
				'sql' => 'dr_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'dr_no' 
				),
				'encrypted' => false,
				'columnName' => 'dr_no' 
			),
			array(
				'sql' => 'ar_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'ar_no' 
				),
				'encrypted' => false,
				'columnName' => 'ar_no' 
			),
			array(
				'sql' => 'po_receiving_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'po_receiving_id' 
				),
				'encrypted' => false,
				'columnName' => 'po_receiving_id' 
			),
			array(
				'sql' => 'po_receiving_detail_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'po_receiving_detail_id' 
				),
				'encrypted' => false,
				'columnName' => 'po_receiving_detail_id' 
			),
			array(
				'sql' => 'delivery_receipt_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'delivery_receipt_id' 
				),
				'encrypted' => false,
				'columnName' => 'delivery_receipt_id' 
			),
			array(
				'sql' => 'delivery_receipt_detail_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'delivery_receipt_detail_id' 
				),
				'encrypted' => false,
				'columnName' => 'delivery_receipt_detail_id' 
			),
			array(
				'sql' => 'augmentation_request_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'augmentation_request_id' 
				),
				'encrypted' => false,
				'columnName' => 'augmentation_request_id' 
			),
			array(
				'sql' => 'augmentation_request_detail_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'augmentation_request_detail_id' 
				),
				'encrypted' => false,
				'columnName' => 'augmentation_request_detail_id' 
			),
			array(
				'sql' => 'inspection_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'inspection_date' 
				),
				'encrypted' => false,
				'columnName' => 'inspection_date' 
			),
			array(
				'sql' => 'time_started',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'time_started' 
				),
				'encrypted' => false,
				'columnName' => 'time_started' 
			),
			array(
				'sql' => 'time_finished',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'time_finished' 
				),
				'encrypted' => false,
				'columnName' => 'time_finished' 
			),
			array(
				'sql' => 'receiving_warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'receiving_warehouse_id' 
				),
				'encrypted' => false,
				'columnName' => 'receiving_warehouse_id' 
			),
			array(
				'sql' => 'receiving_warehouse_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'receiving_warehouse_name' 
				),
				'encrypted' => false,
				'columnName' => 'receiving_warehouse_name' 
			),
			array(
				'sql' => 'no_of_inspectors',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'no_of_inspectors' 
				),
				'encrypted' => false,
				'columnName' => 'no_of_inspectors' 
			),
			array(
				'sql' => 'item_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'item_id' 
				),
				'encrypted' => false,
				'columnName' => 'item_id' 
			),
			array(
				'sql' => 'item_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'item_name' 
				),
				'encrypted' => false,
				'columnName' => 'item_name' 
			),
			array(
				'sql' => 'kind',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'kind' 
				),
				'encrypted' => false,
				'columnName' => 'kind' 
			),
			array(
				'sql' => 'brand',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'brand' 
				),
				'encrypted' => false,
				'columnName' => 'brand' 
			),
			array(
				'sql' => 'unit',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'unit' 
				),
				'encrypted' => false,
				'columnName' => 'unit' 
			),
			array(
				'sql' => 'audit_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'audit_type' 
				),
				'encrypted' => false,
				'columnName' => 'audit_type' 
			),
			array(
				'sql' => 'delivery',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'delivery' 
				),
				'encrypted' => false,
				'columnName' => 'delivery' 
			),
			array(
				'sql' => 'source',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'source' 
				),
				'encrypted' => false,
				'columnName' => 'source' 
			),
			array(
				'sql' => 'delivered_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'delivered_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'delivered_quantity' 
			),
			array(
				'sql' => 'inspected_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'inspected_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'inspected_quantity' 
			),
			array(
				'sql' => 'accepted_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'accepted_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'accepted_quantity' 
			),
			array(
				'sql' => 'returned_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'returned_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'returned_quantity' 
			),
			array(
				'sql' => 'for_disposal_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'for_disposal_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'for_disposal_quantity' 
			),
			array(
				'sql' => 'rejected_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'rejected_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'rejected_quantity' 
			),
			array(
				'sql' => 'on_hold_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'on_hold_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'on_hold_quantity' 
			),
			array(
				'sql' => 'uninspected_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'uninspected_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'uninspected_quantity' 
			),
			array(
				'sql' => 'unresolved_quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'unresolved_quantity' 
				),
				'encrypted' => false,
				'columnName' => 'unresolved_quantity' 
			),
			array(
				'sql' => 'total_sample_inspected',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'total_sample_inspected' 
				),
				'encrypted' => false,
				'columnName' => 'total_sample_inspected' 
			),
			array(
				'sql' => 'average_acceptance_rate',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'average_acceptance_rate' 
				),
				'encrypted' => false,
				'columnName' => 'average_acceptance_rate' 
			),
			array(
				'sql' => 'average_rejection_rate',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'average_rejection_rate' 
				),
				'encrypted' => false,
				'columnName' => 'average_rejection_rate' 
			),
			array(
				'sql' => 'final_action_taken',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'final_action_taken' 
				),
				'encrypted' => false,
				'columnName' => 'final_action_taken' 
			),
			array(
				'sql' => 'receiving_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'receiving_status' 
				),
				'encrypted' => false,
				'columnName' => 'receiving_status' 
			),
			array(
				'sql' => 'inspector_notes',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'inspector_notes' 
				),
				'encrypted' => false,
				'columnName' => 'inspector_notes' 
			),
			array(
				'sql' => 'inspected_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'inspected_by' 
				),
				'encrypted' => false,
				'columnName' => 'inspected_by' 
			),
			array(
				'sql' => 'inspected_by_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'inspected_by_name' 
				),
				'encrypted' => false,
				'columnName' => 'inspected_by_name' 
			),
			array(
				'sql' => 'concurred_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'concurred_by' 
				),
				'encrypted' => false,
				'columnName' => 'concurred_by' 
			),
			array(
				'sql' => 'concurred_by_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'concurred_by_name' 
				),
				'encrypted' => false,
				'columnName' => 'concurred_by_name' 
			),
			array(
				'sql' => 'approval_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'approval_status' 
				),
				'encrypted' => false,
				'columnName' => 'approval_status' 
			),
			array(
				'sql' => 'created_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'created_by' 
				),
				'encrypted' => false,
				'columnName' => 'created_by' 
			),
			array(
				'sql' => 'createdAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'createdAt' 
				),
				'encrypted' => false,
				'columnName' => 'createdAt' 
			),
			array(
				'sql' => 'updatedAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'updatedAt' 
				),
				'encrypted' => false,
				'columnName' => 'updatedAt' 
			),
			array(
				'sql' => 'supplier',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'supplier' 
				),
				'encrypted' => false,
				'columnName' => 'supplier' 
			),
			array(
				'sql' => 'donor',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'donor' 
				),
				'encrypted' => false,
				'columnName' => 'donor' 
			),
			array(
				'sql' => 'location',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'location' 
				),
				'encrypted' => false,
				'columnName' => 'location' 
			),
			array(
				'sql' => 'waranty_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'waranty_date' 
				),
				'encrypted' => false,
				'columnName' => 'waranty_date' 
			),
			array(
				'sql' => 'manufacture_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'manufacture_date' 
				),
				'encrypted' => false,
				'columnName' => 'manufacture_date' 
			),
			array(
				'sql' => 'expiry_date',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'expiry_date' 
				),
				'encrypted' => false,
				'columnName' => 'expiry_date' 
			),
			array(
				'sql' => 'batch_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'batch_no' 
				),
				'encrypted' => false,
				'columnName' => 'batch_no' 
			),
			array(
				'sql' => 'vbn',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'vbn' 
				),
				'encrypted' => false,
				'columnName' => 'vbn' 
			),
			array(
				'sql' => 'mother_facility_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_incoming_goods',
					'name' => 'mother_facility_id' 
				),
				'encrypted' => false,
				'columnName' => 'mother_facility_id' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'qa_incoming_goods',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'qa_incoming_goods',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'qa_no',
						'receiving_report_no',
						'series_number',
						'source_transaction_type',
						'source_transaction_id',
						'source_detail_id',
						'po_no',
						'dr_no',
						'ar_no',
						'supplier_donor',
						'po_receiving_id',
						'po_receiving_detail_id',
						'delivery_receipt_id',
						'delivery_receipt_detail_id',
						'augmentation_request_id',
						'augmentation_request_detail_id',
						'inspection_date',
						'time_started',
						'time_finished',
						'receiving_warehouse_id',
						'receiving_warehouse_name',
						'warehouse_code',
						'no_of_inspectors',
						'item_id',
						'parent_item_id',
						'form_template_id',
						'inspection_schedule_id',
						'item_name',
						'kind',
						'brand',
						'unit',
						'audit_type',
						'delivery',
						'source',
						'delivered_quantity',
						'inspected_quantity',
						'accepted_quantity',
						'returned_quantity',
						'for_disposal_quantity',
						'rejected_quantity',
						'on_hold_quantity',
						'uninspected_quantity',
						'unresolved_quantity',
						'total_sample_inspected',
						'average_acceptance_rate',
						'average_rejection_rate',
						'final_action_taken',
						'receiving_status',
						'inspector_notes',
						'inspected_by',
						'inspected_by_name',
						'inspected_date_signed',
						'concurred_by',
						'concurred_by_name',
						'concurred_date_signed',
						'approval_status',
						'created_by',
						'createdAt',
						'updatedAt',
						'batch_no',
						'location',
						'supplier',
						'donor',
						'expiry_date',
						'manufacture_date',
						'waranty_date',
						'vbn',
						'mother_facility_id',
						'mother_facility_code',
						'mother_facility_name' 
					),
					'name' => 'qa_incoming_goods' 
				),
				'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' => 'qa_incoming_goods',
					'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 
			),
			array(
				'fieldIndex' => 48,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 49,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 50,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 51,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 52,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 53,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 54,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 55,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 56,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 57,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 58,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 59,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 60,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 61,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 62,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 63,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	"" AS `print`,
	"" AS batch_barcode,
	qa_no,
	receiving_report_no,
	series_number,
	source_transaction_type,
	source_transaction_id,
	source_detail_id,
	po_no,
	dr_no,
	ar_no,
	po_receiving_id,
	po_receiving_detail_id,
	delivery_receipt_id,
	delivery_receipt_detail_id,
	augmentation_request_id,
	augmentation_request_detail_id,
	inspection_date,
	time_started,
	time_finished,
	receiving_warehouse_id,
	receiving_warehouse_name,
	no_of_inspectors,
	item_id,
	item_name,
	kind,
	brand,
	unit,
	audit_type,
	delivery,
	source,
	delivered_quantity,
	inspected_quantity,
	accepted_quantity,
	returned_quantity,
	for_disposal_quantity,
	rejected_quantity,
	on_hold_quantity,
	uninspected_quantity,
	unresolved_quantity,
	total_sample_inspected,
	average_acceptance_rate,
	average_rejection_rate,
	final_action_taken,
	receiving_status,
	inspector_notes,
	inspected_by,
	inspected_by_name,
	concurred_by,
	concurred_by_name,
	approval_status,
	created_by,
	createdAt,
	updatedAt,
	supplier,
	donor,
	location,
	waranty_date,
	manufacture_date,
	expiry_date,
	batch_no,
	vbn,
	mother_facility_id',
		'fromListSql' => 'FROM
	qa_incoming_goods',
		'orderBySql' => 'ORDER BY
	id DESC',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'hasJsEvents' => true,
	'originalTable' => 'qa_incoming_goods',
	'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',
			'qa_no',
			'receiving_report_no',
			'series_number',
			'source_transaction_type',
			'source_transaction_id',
			'source_detail_id',
			'po_no',
			'dr_no',
			'ar_no',
			'po_receiving_id',
			'po_receiving_detail_id',
			'delivery_receipt_id',
			'delivery_receipt_detail_id',
			'augmentation_request_id',
			'augmentation_request_detail_id',
			'inspection_date',
			'time_started',
			'time_finished',
			'receiving_warehouse_id',
			'receiving_warehouse_name',
			'no_of_inspectors',
			'item_id',
			'item_name',
			'kind',
			'brand',
			'unit',
			'audit_type',
			'delivery',
			'source',
			'delivered_quantity',
			'inspected_quantity',
			'accepted_quantity',
			'returned_quantity',
			'for_disposal_quantity',
			'rejected_quantity',
			'on_hold_quantity',
			'uninspected_quantity',
			'unresolved_quantity',
			'total_sample_inspected',
			'average_acceptance_rate',
			'average_rejection_rate',
			'final_action_taken',
			'receiving_status',
			'inspector_notes',
			'inspected_by',
			'inspected_by_name',
			'concurred_by',
			'concurred_by_name',
			'approval_status',
			'created_by',
			'createdAt',
			'updatedAt',
			'print',
			'supplier',
			'donor',
			'location',
			'batch_barcode',
			'waranty_date',
			'manufacture_date',
			'expiry_date',
			'batch_no',
			'vbn',
			'mother_facility_id' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'qa_no',
			'receiving_report_no',
			'series_number',
			'source_transaction_type',
			'source_transaction_id',
			'source_detail_id',
			'po_no',
			'dr_no',
			'ar_no',
			'po_receiving_id',
			'po_receiving_detail_id',
			'delivery_receipt_id',
			'delivery_receipt_detail_id',
			'augmentation_request_id',
			'augmentation_request_detail_id',
			'inspection_date',
			'time_started',
			'time_finished',
			'receiving_warehouse_id',
			'receiving_warehouse_name',
			'no_of_inspectors',
			'item_id',
			'item_name',
			'kind',
			'brand',
			'unit',
			'audit_type',
			'delivery',
			'source',
			'delivered_quantity',
			'inspected_quantity',
			'accepted_quantity',
			'returned_quantity',
			'for_disposal_quantity',
			'rejected_quantity',
			'on_hold_quantity',
			'uninspected_quantity',
			'unresolved_quantity',
			'total_sample_inspected',
			'average_acceptance_rate',
			'average_rejection_rate',
			'final_action_taken',
			'receiving_status',
			'inspector_notes',
			'inspected_by',
			'inspected_by_name',
			'concurred_by',
			'concurred_by_name',
			'approval_status',
			'created_by',
			'createdAt',
			'updatedAt',
			'print',
			'supplier',
			'donor',
			'location',
			'batch_barcode',
			'waranty_date',
			'manufacture_date',
			'expiry_date',
			'batch_no',
			'vbn',
			'mother_facility_id' 
		) 
	),
	'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_incoming_goods'] = array(
	'tableCaption' => 'Qa Incoming Goods',
	'fieldLabels' => array(
		'id' => 'ID',
		'qa_no' => 'Quality Assurance No.',
		'receiving_report_no' => 'Receiving Report No.',
		'series_number' => 'Series Number',
		'source_transaction_type' => 'Source Transaction Type',
		'source_transaction_id' => 'Source Transaction',
		'source_detail_id' => 'Source Detail ID',
		'po_no' => 'Purchase Order No.',
		'dr_no' => 'Delivery Receipt No.',
		'ar_no' => 'Acceptance Report No.',
		'po_receiving_id' => 'Purchase Order Receiving ID',
		'po_receiving_detail_id' => 'Purchase Order Receiving Detail ID',
		'delivery_receipt_id' => 'Delivery Receipt ID',
		'delivery_receipt_detail_id' => 'Delivery Receipt Detail ID',
		'augmentation_request_id' => 'Augmentation Request ID',
		'augmentation_request_detail_id' => 'Augmentation Request Detail ID',
		'inspection_date' => 'Inspection Date',
		'time_started' => 'Time Started',
		'time_finished' => 'Time Finished',
		'receiving_warehouse_id' => 'Receiving Warehouse',
		'receiving_warehouse_name' => 'Receiving Warehouse Name',
		'no_of_inspectors' => 'No. of Inspectors',
		'item_id' => 'Stock Keeping Unit (SKU)',
		'item_name' => 'Item Name',
		'kind' => 'Kind',
		'brand' => 'Brand',
		'unit' => 'Unit',
		'audit_type' => 'Audit Type',
		'delivery' => 'Delivery',
		'source' => 'Source',
		'delivered_quantity' => 'Delivered Quantity',
		'inspected_quantity' => 'Inspected Quantity',
		'accepted_quantity' => 'Accepted Quantity',
		'returned_quantity' => 'Returned Quantity',
		'for_disposal_quantity' => 'For Disposal Quantity',
		'rejected_quantity' => 'Rejected Quantity',
		'on_hold_quantity' => 'On Hold Quantity',
		'uninspected_quantity' => 'Uninspected Quantity',
		'unresolved_quantity' => 'Unresolved Quantity',
		'total_sample_inspected' => 'Total Sample Inspected',
		'average_acceptance_rate' => 'Average Acceptance Rate',
		'average_rejection_rate' => 'Average Rejection Rate',
		'final_action_taken' => 'Final Action Taken',
		'receiving_status' => 'Receiving Status',
		'inspector_notes' => 'Inspector Notes',
		'inspected_by' => 'Inspected by',
		'inspected_by_name' => 'Inspected by Designation',
		'concurred_by' => 'Concurred by',
		'concurred_by_name' => 'Concurred by Designation',
		'approval_status' => 'Approval Status',
		'created_by' => 'Created by',
		'createdAt' => 'Created At',
		'updatedAt' => 'Updated At',
		'print' => 'Print',
		'supplier' => 'Supplier',
		'donor' => 'Donor',
		'location' => ' Assigned Rack',
		'batch_barcode' => 'Batch Barcode',
		'waranty_date' => 'Warranty Date',
		'manufacture_date' => 'Manufacture Date',
		'expiry_date' => 'Expiry Date',
		'batch_no' => 'Batch No.',
		'vbn' => 'Vendor Batch Number (VBN)',
		'mother_facility_id' => 'Mother Facility' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'qa_no' => '',
		'receiving_report_no' => '',
		'series_number' => '',
		'source_transaction_type' => '',
		'source_transaction_id' => '',
		'source_detail_id' => '',
		'po_no' => '',
		'dr_no' => '',
		'ar_no' => '',
		'po_receiving_id' => '',
		'po_receiving_detail_id' => '',
		'delivery_receipt_id' => '',
		'delivery_receipt_detail_id' => '',
		'augmentation_request_id' => '',
		'augmentation_request_detail_id' => '',
		'inspection_date' => '',
		'time_started' => '',
		'time_finished' => '',
		'receiving_warehouse_id' => '',
		'receiving_warehouse_name' => '',
		'no_of_inspectors' => '',
		'item_id' => '',
		'item_name' => '',
		'kind' => '',
		'brand' => '',
		'unit' => '',
		'audit_type' => '',
		'delivery' => '',
		'source' => '',
		'delivered_quantity' => '',
		'inspected_quantity' => '',
		'accepted_quantity' => '',
		'returned_quantity' => '',
		'for_disposal_quantity' => '',
		'rejected_quantity' => '',
		'on_hold_quantity' => '',
		'uninspected_quantity' => '',
		'unresolved_quantity' => '',
		'total_sample_inspected' => '',
		'average_acceptance_rate' => '',
		'average_rejection_rate' => '',
		'final_action_taken' => '',
		'receiving_status' => '',
		'inspector_notes' => '',
		'inspected_by' => '',
		'inspected_by_name' => '',
		'concurred_by' => '',
		'concurred_by_name' => '',
		'approval_status' => '',
		'created_by' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'print' => '',
		'supplier' => '',
		'donor' => '',
		'location' => '',
		'batch_barcode' => '',
		'waranty_date' => '',
		'manufacture_date' => '',
		'expiry_date' => '',
		'batch_no' => '',
		'vbn' => '',
		'mother_facility_id' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'qa_no' => '',
		'receiving_report_no' => '',
		'series_number' => '',
		'source_transaction_type' => '',
		'source_transaction_id' => '',
		'source_detail_id' => '',
		'po_no' => '',
		'dr_no' => '',
		'ar_no' => '',
		'po_receiving_id' => '',
		'po_receiving_detail_id' => '',
		'delivery_receipt_id' => '',
		'delivery_receipt_detail_id' => '',
		'augmentation_request_id' => '',
		'augmentation_request_detail_id' => '',
		'inspection_date' => '',
		'time_started' => '',
		'time_finished' => '',
		'receiving_warehouse_id' => '',
		'receiving_warehouse_name' => '',
		'no_of_inspectors' => '',
		'item_id' => '',
		'item_name' => '',
		'kind' => '',
		'brand' => '',
		'unit' => '',
		'audit_type' => '',
		'delivery' => '',
		'source' => '',
		'delivered_quantity' => '',
		'inspected_quantity' => '',
		'accepted_quantity' => '',
		'returned_quantity' => '',
		'for_disposal_quantity' => '',
		'rejected_quantity' => '',
		'on_hold_quantity' => '',
		'uninspected_quantity' => '',
		'unresolved_quantity' => '',
		'total_sample_inspected' => '',
		'average_acceptance_rate' => '',
		'average_rejection_rate' => '',
		'final_action_taken' => '',
		'receiving_status' => '',
		'inspector_notes' => '',
		'inspected_by' => '',
		'inspected_by_name' => '',
		'concurred_by' => '',
		'concurred_by_name' => '',
		'approval_status' => '',
		'created_by' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'print' => '',
		'supplier' => '',
		'donor' => '',
		'location' => '',
		'batch_barcode' => '',
		'waranty_date' => '',
		'manufacture_date' => '',
		'expiry_date' => '',
		'batch_no' => '',
		'vbn' => '',
		'mother_facility_id' => '' 
	),
	'pageTitles' => array(
		'add' => 'QA Incoming Goods, Add new',
		'list' => 'QA Incoming Goods Item' 
	) 
);
}
?>