<?php
global $runnerTableSettings;
$runnerTableSettings['sales_detail'] = array(
	'name' => 'sales_detail',
	'shortName' => 'sales_detail',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'sales_detail',
	'afterAddDetail' => 'sales_detail',
	'detailsBadgeColor' => '000',
	'sql' => 'SELECT
	id,
	sales_detail_uuid,
	sales_id,
	line_no,
	item_id,
	item_code_snapshot,
	description,
	uom_code,
	quantity,
	unit_price,
	gross_amount,
	commercial_discount_rate,
	commercial_discount_amount,
	discount_type_id,
	statutory_discount_rate,
	statutory_discount_amount,
	net_before_tax_amount,
	vat_tax_code_id,
	vat_rate_snapshot,
	vatable_amount,
	vat_exempt_amount,
	zero_rated_amount,
	vat_amount,
	withholding_tax_code_id,
	withholding_rate_snapshot,
	withholding_amount,
	line_total_amount,
	base_line_total_amount,
	warehouse_id,
	department_id,
	cost_center_id,
	project_id,
	project_task_id,
	sales_agent_id,
	campaign_id,
	created_at,
	updated_at
FROM
	sales_detail',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 20,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'sales_detail_uuid' => array(
			'name' => 'sales_detail_uuid',
			'goodName' => 'sales_detail_uuid',
			'strField' => 'sales_detail_uuid',
			'index' => 2,
			'sqlExpression' => 'sales_detail_uuid',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'sales_id' => array(
			'name' => 'sales_id',
			'goodName' => 'sales_id',
			'strField' => 'sales_id',
			'index' => 3,
			'type' => 20,
			'sqlExpression' => 'sales_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail',
			'viewLinkTable' => 'sales',
			'viewLinkLookup' => false 
		),
		'line_no' => array(
			'name' => 'line_no',
			'goodName' => 'line_no',
			'strField' => 'line_no',
			'index' => 4,
			'type' => 3,
			'sqlExpression' => 'line_no',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'item_id' => array(
			'name' => 'item_id',
			'goodName' => 'item_id',
			'strField' => 'item_id',
			'index' => 5,
			'type' => 20,
			'sqlExpression' => 'item_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'item',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'item_name',
					'lookupOrderBy' => 'item_name',
					'lookupAutofillEdit' => true,
					'lookupAutofillFields' => array( 
						array(
							'masterField' => 'item_code_snapshot',
							'lookupField' => 'item_code' 
						),
						array(
							'masterField' => 'description',
							'lookupField' => 'item_name' 
						),
						array(
							'masterField' => 'uom_code',
							'lookupField' => 'uom_code' 
						),
						array(
							'masterField' => 'unit_price',
							'lookupField' => 'default_sales_price' 
						),
						array(
							'masterField' => 'vat_tax_code_id',
							'lookupField' => 'default_tax_code_id' 
						) 
					) 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'item_code_snapshot' => array(
			'name' => 'item_code_snapshot',
			'goodName' => 'item_code_snapshot',
			'strField' => 'item_code_snapshot',
			'index' => 6,
			'sqlExpression' => 'item_code_snapshot',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'description' => array(
			'name' => 'description',
			'goodName' => 'description',
			'strField' => 'description',
			'index' => 7,
			'sqlExpression' => 'description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'uom_code' => array(
			'name' => 'uom_code',
			'goodName' => 'uom_code',
			'strField' => 'uom_code',
			'index' => 8,
			'sqlExpression' => 'uom_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'quantity' => array(
			'name' => 'quantity',
			'goodName' => 'quantity',
			'strField' => 'quantity',
			'index' => 9,
			'type' => 14,
			'sqlExpression' => 'quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'unit_price' => array(
			'name' => 'unit_price',
			'goodName' => 'unit_price',
			'strField' => 'unit_price',
			'index' => 10,
			'type' => 14,
			'sqlExpression' => 'unit_price',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'gross_amount' => array(
			'name' => 'gross_amount',
			'goodName' => 'gross_amount',
			'strField' => 'gross_amount',
			'index' => 11,
			'type' => 14,
			'sqlExpression' => 'gross_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'commercial_discount_rate' => array(
			'name' => 'commercial_discount_rate',
			'goodName' => 'commercial_discount_rate',
			'strField' => 'commercial_discount_rate',
			'index' => 12,
			'type' => 14,
			'sqlExpression' => 'commercial_discount_rate',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'commercial_discount_amount' => array(
			'name' => 'commercial_discount_amount',
			'goodName' => 'commercial_discount_amount',
			'strField' => 'commercial_discount_amount',
			'index' => 13,
			'type' => 14,
			'sqlExpression' => 'commercial_discount_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'discount_type_id' => array(
			'name' => 'discount_type_id',
			'goodName' => 'discount_type_id',
			'strField' => 'discount_type_id',
			'index' => 14,
			'type' => 20,
			'sqlExpression' => 'discount_type_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'discount_type',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'discount_code',
					'lookupOrderBy' => 'discount_code' 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'statutory_discount_rate' => array(
			'name' => 'statutory_discount_rate',
			'goodName' => 'statutory_discount_rate',
			'strField' => 'statutory_discount_rate',
			'index' => 15,
			'type' => 14,
			'sqlExpression' => 'statutory_discount_rate',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'statutory_discount_amount' => array(
			'name' => 'statutory_discount_amount',
			'goodName' => 'statutory_discount_amount',
			'strField' => 'statutory_discount_amount',
			'index' => 16,
			'type' => 14,
			'sqlExpression' => 'statutory_discount_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'net_before_tax_amount' => array(
			'name' => 'net_before_tax_amount',
			'goodName' => 'net_before_tax_amount',
			'strField' => 'net_before_tax_amount',
			'index' => 17,
			'type' => 14,
			'sqlExpression' => 'net_before_tax_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'vat_tax_code_id' => array(
			'name' => 'vat_tax_code_id',
			'goodName' => 'vat_tax_code_id',
			'strField' => 'vat_tax_code_id',
			'index' => 18,
			'type' => 20,
			'sqlExpression' => 'vat_tax_code_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'tax_code',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'tax_code',
					'lookupOrderBy' => 'tax_code',
					'lookupAutofillEdit' => true,
					'lookupAutofillFields' => array( 
						array(
							'masterField' => 'vat_rate_snapshot',
							'lookupField' => 'rate_percent' 
						) 
					) 
				) 
			),
			'tableName' => 'sales_detail',
			'viewLinkTable' => 'tax_code',
			'viewLinkLookup' => true 
		),
		'vat_rate_snapshot' => array(
			'name' => 'vat_rate_snapshot',
			'goodName' => 'vat_rate_snapshot',
			'strField' => 'vat_rate_snapshot',
			'index' => 19,
			'type' => 14,
			'sqlExpression' => 'vat_rate_snapshot',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'vatable_amount' => array(
			'name' => 'vatable_amount',
			'goodName' => 'vatable_amount',
			'strField' => 'vatable_amount',
			'index' => 20,
			'type' => 14,
			'sqlExpression' => 'vatable_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'vat_exempt_amount' => array(
			'name' => 'vat_exempt_amount',
			'goodName' => 'vat_exempt_amount',
			'strField' => 'vat_exempt_amount',
			'index' => 21,
			'type' => 14,
			'sqlExpression' => 'vat_exempt_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'zero_rated_amount' => array(
			'name' => 'zero_rated_amount',
			'goodName' => 'zero_rated_amount',
			'strField' => 'zero_rated_amount',
			'index' => 22,
			'type' => 14,
			'sqlExpression' => 'zero_rated_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'vat_amount' => array(
			'name' => 'vat_amount',
			'goodName' => 'vat_amount',
			'strField' => 'vat_amount',
			'index' => 23,
			'type' => 14,
			'sqlExpression' => 'vat_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'withholding_tax_code_id' => array(
			'name' => 'withholding_tax_code_id',
			'goodName' => 'withholding_tax_code_id',
			'strField' => 'withholding_tax_code_id',
			'index' => 24,
			'type' => 20,
			'sqlExpression' => 'withholding_tax_code_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'tax_code',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'tax_code',
					'lookupOrderBy' => 'tax_code',
					'lookupAutofillEdit' => true,
					'lookupAutofillFields' => array( 
						array(
							'masterField' => 'withholding_rate_snapshot',
							'lookupField' => 'rate_percent' 
						) 
					) 
				) 
			),
			'tableName' => 'sales_detail',
			'viewLinkTable' => 'tax_code',
			'viewLinkLookup' => true 
		),
		'withholding_rate_snapshot' => array(
			'name' => 'withholding_rate_snapshot',
			'goodName' => 'withholding_rate_snapshot',
			'strField' => 'withholding_rate_snapshot',
			'index' => 25,
			'type' => 14,
			'sqlExpression' => 'withholding_rate_snapshot',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'withholding_amount' => array(
			'name' => 'withholding_amount',
			'goodName' => 'withholding_amount',
			'strField' => 'withholding_amount',
			'index' => 26,
			'type' => 14,
			'sqlExpression' => 'withholding_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'line_total_amount' => array(
			'name' => 'line_total_amount',
			'goodName' => 'line_total_amount',
			'strField' => 'line_total_amount',
			'index' => 27,
			'type' => 14,
			'sqlExpression' => 'line_total_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'base_line_total_amount' => array(
			'name' => 'base_line_total_amount',
			'goodName' => 'base_line_total_amount',
			'strField' => 'base_line_total_amount',
			'index' => 28,
			'type' => 14,
			'sqlExpression' => 'base_line_total_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'warehouse_id' => array(
			'name' => 'warehouse_id',
			'goodName' => 'warehouse_id',
			'strField' => 'warehouse_id',
			'index' => 29,
			'type' => 20,
			'sqlExpression' => 'warehouse_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'warehouse',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'warehouse_name',
					'lookupOrderBy' => 'warehouse_name' 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'department_id' => array(
			'name' => 'department_id',
			'goodName' => 'department_id',
			'strField' => 'department_id',
			'index' => 30,
			'type' => 20,
			'sqlExpression' => 'department_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'cost_center_id' => array(
			'name' => 'cost_center_id',
			'goodName' => 'cost_center_id',
			'strField' => 'cost_center_id',
			'index' => 31,
			'type' => 20,
			'sqlExpression' => 'cost_center_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'project_id' => array(
			'name' => 'project_id',
			'goodName' => 'project_id',
			'strField' => 'project_id',
			'index' => 32,
			'type' => 20,
			'sqlExpression' => 'project_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'project_task_id' => array(
			'name' => 'project_task_id',
			'goodName' => 'project_task_id',
			'strField' => 'project_task_id',
			'index' => 33,
			'type' => 20,
			'sqlExpression' => 'project_task_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'project_task',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'task_name',
					'lookupOrderBy' => 'task_name',
					'lookupDependent' => true,
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'project_id',
							'lookupField' => 'project_id' 
						) 
					) 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'sales_agent_id' => array(
			'name' => 'sales_agent_id',
			'goodName' => 'sales_agent_id',
			'strField' => 'sales_agent_id',
			'index' => 34,
			'type' => 20,
			'sqlExpression' => 'sales_agent_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'campaign_id' => array(
			'name' => 'campaign_id',
			'goodName' => 'campaign_id',
			'strField' => 'campaign_id',
			'index' => 35,
			'type' => 20,
			'sqlExpression' => 'campaign_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 36,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'sales_detail' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 37,
			'type' => 135,
			'sqlExpression' => 'updated_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'sales_detail' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'sales',
			'detailsKeys' => array( 
				'sales_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	sales_detail_uuid,
	sales_id,
	line_no,
	item_id,
	item_code_snapshot,
	description,
	uom_code,
	quantity,
	unit_price,
	gross_amount,
	commercial_discount_rate,
	commercial_discount_amount,
	discount_type_id,
	statutory_discount_rate,
	statutory_discount_amount,
	net_before_tax_amount,
	vat_tax_code_id,
	vat_rate_snapshot,
	vatable_amount,
	vat_exempt_amount,
	zero_rated_amount,
	vat_amount,
	withholding_tax_code_id,
	withholding_rate_snapshot,
	withholding_amount,
	line_total_amount,
	base_line_total_amount,
	warehouse_id,
	department_id,
	cost_center_id,
	project_id,
	project_task_id,
	sales_agent_id,
	campaign_id,
	created_at,
	updated_at
FROM
	sales_detail',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'sales_detail_uuid',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'sales_detail_uuid' 
				),
				'encrypted' => false,
				'columnName' => 'sales_detail_uuid' 
			),
			array(
				'sql' => 'sales_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'sales_id' 
				),
				'encrypted' => false,
				'columnName' => 'sales_id' 
			),
			array(
				'sql' => 'line_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'line_no' 
				),
				'encrypted' => false,
				'columnName' => 'line_no' 
			),
			array(
				'sql' => 'item_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'item_id' 
				),
				'encrypted' => false,
				'columnName' => 'item_id' 
			),
			array(
				'sql' => 'item_code_snapshot',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'item_code_snapshot' 
				),
				'encrypted' => false,
				'columnName' => 'item_code_snapshot' 
			),
			array(
				'sql' => 'description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'description' 
				),
				'encrypted' => false,
				'columnName' => 'description' 
			),
			array(
				'sql' => 'uom_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'uom_code' 
				),
				'encrypted' => false,
				'columnName' => 'uom_code' 
			),
			array(
				'sql' => 'quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'quantity' 
				),
				'encrypted' => false,
				'columnName' => 'quantity' 
			),
			array(
				'sql' => 'unit_price',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'unit_price' 
				),
				'encrypted' => false,
				'columnName' => 'unit_price' 
			),
			array(
				'sql' => 'gross_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'gross_amount' 
				),
				'encrypted' => false,
				'columnName' => 'gross_amount' 
			),
			array(
				'sql' => 'commercial_discount_rate',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'commercial_discount_rate' 
				),
				'encrypted' => false,
				'columnName' => 'commercial_discount_rate' 
			),
			array(
				'sql' => 'commercial_discount_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'commercial_discount_amount' 
				),
				'encrypted' => false,
				'columnName' => 'commercial_discount_amount' 
			),
			array(
				'sql' => 'discount_type_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'discount_type_id' 
				),
				'encrypted' => false,
				'columnName' => 'discount_type_id' 
			),
			array(
				'sql' => 'statutory_discount_rate',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'statutory_discount_rate' 
				),
				'encrypted' => false,
				'columnName' => 'statutory_discount_rate' 
			),
			array(
				'sql' => 'statutory_discount_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'statutory_discount_amount' 
				),
				'encrypted' => false,
				'columnName' => 'statutory_discount_amount' 
			),
			array(
				'sql' => 'net_before_tax_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'net_before_tax_amount' 
				),
				'encrypted' => false,
				'columnName' => 'net_before_tax_amount' 
			),
			array(
				'sql' => 'vat_tax_code_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'vat_tax_code_id' 
				),
				'encrypted' => false,
				'columnName' => 'vat_tax_code_id' 
			),
			array(
				'sql' => 'vat_rate_snapshot',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'vat_rate_snapshot' 
				),
				'encrypted' => false,
				'columnName' => 'vat_rate_snapshot' 
			),
			array(
				'sql' => 'vatable_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'vatable_amount' 
				),
				'encrypted' => false,
				'columnName' => 'vatable_amount' 
			),
			array(
				'sql' => 'vat_exempt_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'vat_exempt_amount' 
				),
				'encrypted' => false,
				'columnName' => 'vat_exempt_amount' 
			),
			array(
				'sql' => 'zero_rated_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'zero_rated_amount' 
				),
				'encrypted' => false,
				'columnName' => 'zero_rated_amount' 
			),
			array(
				'sql' => 'vat_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'vat_amount' 
				),
				'encrypted' => false,
				'columnName' => 'vat_amount' 
			),
			array(
				'sql' => 'withholding_tax_code_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'withholding_tax_code_id' 
				),
				'encrypted' => false,
				'columnName' => 'withholding_tax_code_id' 
			),
			array(
				'sql' => 'withholding_rate_snapshot',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'withholding_rate_snapshot' 
				),
				'encrypted' => false,
				'columnName' => 'withholding_rate_snapshot' 
			),
			array(
				'sql' => 'withholding_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'withholding_amount' 
				),
				'encrypted' => false,
				'columnName' => 'withholding_amount' 
			),
			array(
				'sql' => 'line_total_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'line_total_amount' 
				),
				'encrypted' => false,
				'columnName' => 'line_total_amount' 
			),
			array(
				'sql' => 'base_line_total_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'base_line_total_amount' 
				),
				'encrypted' => false,
				'columnName' => 'base_line_total_amount' 
			),
			array(
				'sql' => 'warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'warehouse_id' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_id' 
			),
			array(
				'sql' => 'department_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'department_id' 
				),
				'encrypted' => false,
				'columnName' => 'department_id' 
			),
			array(
				'sql' => 'cost_center_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'cost_center_id' 
				),
				'encrypted' => false,
				'columnName' => 'cost_center_id' 
			),
			array(
				'sql' => 'project_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'project_id' 
				),
				'encrypted' => false,
				'columnName' => 'project_id' 
			),
			array(
				'sql' => 'project_task_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'project_task_id' 
				),
				'encrypted' => false,
				'columnName' => 'project_task_id' 
			),
			array(
				'sql' => 'sales_agent_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'sales_agent_id' 
				),
				'encrypted' => false,
				'columnName' => 'sales_agent_id' 
			),
			array(
				'sql' => 'campaign_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'campaign_id' 
				),
				'encrypted' => false,
				'columnName' => 'campaign_id' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			),
			array(
				'sql' => 'updated_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'sales_detail',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'sales_detail',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'sales_detail',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'sales_detail_uuid',
						'sales_id',
						'line_no',
						'item_id',
						'item_code_snapshot',
						'description',
						'uom_code',
						'quantity',
						'unit_price',
						'gross_amount',
						'commercial_discount_rate',
						'commercial_discount_amount',
						'discount_type_id',
						'statutory_discount_rate',
						'statutory_discount_amount',
						'net_before_tax_amount',
						'vat_tax_code_id',
						'vat_rate_snapshot',
						'vatable_amount',
						'vat_exempt_amount',
						'zero_rated_amount',
						'vat_amount',
						'withholding_tax_code_id',
						'withholding_rate_snapshot',
						'withholding_amount',
						'line_total_amount',
						'base_line_total_amount',
						'warehouse_id',
						'department_id',
						'cost_center_id',
						'project_id',
						'project_task_id',
						'sales_agent_id',
						'campaign_id',
						'created_at',
						'updated_at' 
					),
					'name' => 'sales_detail' 
				),
				'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 
			),
			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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	sales_detail_uuid,
	sales_id,
	line_no,
	item_id,
	item_code_snapshot,
	description,
	uom_code,
	quantity,
	unit_price,
	gross_amount,
	commercial_discount_rate,
	commercial_discount_amount,
	discount_type_id,
	statutory_discount_rate,
	statutory_discount_amount,
	net_before_tax_amount,
	vat_tax_code_id,
	vat_rate_snapshot,
	vatable_amount,
	vat_exempt_amount,
	zero_rated_amount,
	vat_amount,
	withholding_tax_code_id,
	withholding_rate_snapshot,
	withholding_amount,
	line_total_amount,
	base_line_total_amount,
	warehouse_id,
	department_id,
	cost_center_id,
	project_id,
	project_task_id,
	sales_agent_id,
	campaign_id,
	created_at,
	updated_at',
		'fromListSql' => 'FROM
	sales_detail',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'originalTable' => 'sales_detail',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'sales_detail_uuid',
			'sales_id',
			'line_no',
			'item_id',
			'item_code_snapshot',
			'description',
			'uom_code',
			'quantity',
			'unit_price',
			'gross_amount',
			'commercial_discount_rate',
			'commercial_discount_amount',
			'discount_type_id',
			'statutory_discount_rate',
			'statutory_discount_amount',
			'net_before_tax_amount',
			'vat_tax_code_id',
			'vat_rate_snapshot',
			'vatable_amount',
			'vat_exempt_amount',
			'zero_rated_amount',
			'vat_amount',
			'withholding_tax_code_id',
			'withholding_rate_snapshot',
			'withholding_amount',
			'line_total_amount',
			'base_line_total_amount',
			'warehouse_id',
			'department_id',
			'cost_center_id',
			'project_id',
			'project_task_id',
			'sales_agent_id',
			'campaign_id',
			'created_at',
			'updated_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'sales_detail_uuid',
			'sales_id',
			'line_no',
			'item_id',
			'item_code_snapshot',
			'description',
			'uom_code',
			'quantity',
			'unit_price',
			'gross_amount',
			'commercial_discount_rate',
			'commercial_discount_amount',
			'discount_type_id',
			'statutory_discount_rate',
			'statutory_discount_amount',
			'net_before_tax_amount',
			'vat_tax_code_id',
			'vat_rate_snapshot',
			'vatable_amount',
			'vat_exempt_amount',
			'zero_rated_amount',
			'vat_amount',
			'withholding_tax_code_id',
			'withholding_rate_snapshot',
			'withholding_amount',
			'line_total_amount',
			'base_line_total_amount',
			'warehouse_id',
			'department_id',
			'cost_center_id',
			'project_id',
			'project_task_id',
			'sales_agent_id',
			'campaign_id',
			'created_at',
			'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['sales_detail'] = array(
	'tableCaption' => 'Sales Detail',
	'fieldLabels' => array(
		'id' => 'Id',
		'sales_detail_uuid' => 'Sales Detail Uuid',
		'sales_id' => 'Sales Id',
		'line_no' => 'Line No',
		'item_id' => 'Item',
		'item_code_snapshot' => 'Item Code Snapshot',
		'description' => 'Description',
		'uom_code' => 'Unit',
		'quantity' => 'Quantity',
		'unit_price' => 'Unit Price',
		'gross_amount' => 'Gross Amount',
		'commercial_discount_rate' => 'Commercial Discount %',
		'commercial_discount_amount' => 'Commercial Discount Amount',
		'discount_type_id' => 'Discount Type ',
		'statutory_discount_rate' => 'Statutory Discount %',
		'statutory_discount_amount' => 'Statutory Discount Amount',
		'net_before_tax_amount' => 'Net Before Tax Amount',
		'vat_tax_code_id' => 'VAT Code',
		'vat_rate_snapshot' => 'Vat Rate Snapshot',
		'vatable_amount' => 'Vatable Amount',
		'vat_exempt_amount' => 'Vat Exempt Amount',
		'zero_rated_amount' => 'Zero Rated Amount',
		'vat_amount' => 'Vat Amount',
		'withholding_tax_code_id' => 'Withholding Tax Code',
		'withholding_rate_snapshot' => 'Withholding Rate Snapshot',
		'withholding_amount' => 'Withholding Amount',
		'line_total_amount' => 'Line Total Amount',
		'base_line_total_amount' => 'Base Line Total Amount',
		'warehouse_id' => 'Warehouse',
		'department_id' => 'Department',
		'cost_center_id' => 'Cost Center',
		'project_id' => 'Project',
		'project_task_id' => 'Project Task',
		'sales_agent_id' => 'Sales Agent',
		'campaign_id' => 'Campaign',
		'created_at' => 'Created At',
		'updated_at' => 'Updated At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'sales_detail_uuid' => '',
		'sales_id' => '',
		'line_no' => '',
		'item_id' => '',
		'item_code_snapshot' => '',
		'description' => '',
		'uom_code' => '',
		'quantity' => '',
		'unit_price' => '',
		'gross_amount' => '',
		'commercial_discount_rate' => '',
		'commercial_discount_amount' => '',
		'discount_type_id' => '',
		'statutory_discount_rate' => '',
		'statutory_discount_amount' => '',
		'net_before_tax_amount' => '',
		'vat_tax_code_id' => '',
		'vat_rate_snapshot' => '',
		'vatable_amount' => '',
		'vat_exempt_amount' => '',
		'zero_rated_amount' => '',
		'vat_amount' => '',
		'withholding_tax_code_id' => '',
		'withholding_rate_snapshot' => '',
		'withholding_amount' => '',
		'line_total_amount' => '',
		'base_line_total_amount' => '',
		'warehouse_id' => '',
		'department_id' => '',
		'cost_center_id' => '',
		'project_id' => '',
		'project_task_id' => '',
		'sales_agent_id' => '',
		'campaign_id' => '',
		'created_at' => '',
		'updated_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'sales_detail_uuid' => '',
		'sales_id' => '',
		'line_no' => '',
		'item_id' => '',
		'item_code_snapshot' => '',
		'description' => '',
		'uom_code' => '',
		'quantity' => '',
		'unit_price' => '',
		'gross_amount' => '',
		'commercial_discount_rate' => '',
		'commercial_discount_amount' => '',
		'discount_type_id' => '',
		'statutory_discount_rate' => '',
		'statutory_discount_amount' => '',
		'net_before_tax_amount' => '',
		'vat_tax_code_id' => '',
		'vat_rate_snapshot' => '',
		'vatable_amount' => '',
		'vat_exempt_amount' => '',
		'zero_rated_amount' => '',
		'vat_amount' => '',
		'withholding_tax_code_id' => '',
		'withholding_rate_snapshot' => '',
		'withholding_amount' => '',
		'line_total_amount' => '',
		'base_line_total_amount' => '',
		'warehouse_id' => '',
		'department_id' => '',
		'cost_center_id' => '',
		'project_id' => '',
		'project_task_id' => '',
		'sales_agent_id' => '',
		'campaign_id' => '',
		'created_at' => '',
		'updated_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>