<?php
global $runnerTableSettings;
$runnerTableSettings['supplier_bill_detail'] = array(
	'name' => 'supplier_bill_detail',
	'shortName' => 'supplier_bill_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' => 'supplier_bill_detail',
	'afterAddDetail' => 'supplier_bill_detail',
	'detailsBadgeColor' => '000',
	'sql' => 'SELECT
	id,
	supplier_bill_detail_uuid,
	supplier_bill_id,
	line_no,
	item_id,
	description,
	quantity,
	uom_code,
	unit_price,
	gross_amount,
	discount_amount,
	net_before_tax,
	vat_tax_code_id,
	vat_rate_percent,
	input_vat_amount,
	withholding_tax_code_id,
	withholding_rate_percent,
	withholding_amount,
	line_total_amount,
	expense_account_id,
	asset_account_id,
	inventory_account_id,
	warehouse_id,
	department_id,
	cost_center_id,
	project_id,
	project_task_id
FROM
	supplier_bill_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' => 'supplier_bill_detail' 
		),
		'supplier_bill_detail_uuid' => array(
			'name' => 'supplier_bill_detail_uuid',
			'goodName' => 'supplier_bill_detail_uuid',
			'strField' => 'supplier_bill_detail_uuid',
			'index' => 2,
			'sqlExpression' => 'supplier_bill_detail_uuid',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'supplier_bill_id' => array(
			'name' => 'supplier_bill_id',
			'goodName' => 'supplier_bill_id',
			'strField' => 'supplier_bill_id',
			'index' => 3,
			'type' => 20,
			'sqlExpression' => 'supplier_bill_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail',
			'viewLinkTable' => 'supplier_bill',
			'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' => 'supplier_bill_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' => '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' => 'supplier_bill_detail' 
		),
		'description' => array(
			'name' => 'description',
			'goodName' => 'description',
			'strField' => 'description',
			'index' => 6,
			'sqlExpression' => 'description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'quantity' => array(
			'name' => 'quantity',
			'goodName' => 'quantity',
			'strField' => 'quantity',
			'index' => 7,
			'type' => 14,
			'sqlExpression' => 'quantity',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_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' => 'supplier_bill_detail' 
		),
		'unit_price' => array(
			'name' => 'unit_price',
			'goodName' => 'unit_price',
			'strField' => 'unit_price',
			'index' => 9,
			'type' => 14,
			'sqlExpression' => 'unit_price',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'gross_amount' => array(
			'name' => 'gross_amount',
			'goodName' => 'gross_amount',
			'strField' => 'gross_amount',
			'index' => 10,
			'type' => 14,
			'sqlExpression' => 'gross_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'discount_amount' => array(
			'name' => 'discount_amount',
			'goodName' => 'discount_amount',
			'strField' => 'discount_amount',
			'index' => 11,
			'type' => 14,
			'sqlExpression' => 'discount_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'net_before_tax' => array(
			'name' => 'net_before_tax',
			'goodName' => 'net_before_tax',
			'strField' => 'net_before_tax',
			'index' => 12,
			'type' => 14,
			'sqlExpression' => 'net_before_tax',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'vat_tax_code_id' => array(
			'name' => 'vat_tax_code_id',
			'goodName' => 'vat_tax_code_id',
			'strField' => 'vat_tax_code_id',
			'index' => 13,
			'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',
					'lookupWhere' => 'tax_type = \'VAT\' AND status = \'ACTIVE\'' 
				) 
			),
			'tableName' => 'supplier_bill_detail',
			'viewLinkTable' => 'tax_code',
			'viewLinkLookup' => true 
		),
		'vat_rate_percent' => array(
			'name' => 'vat_rate_percent',
			'goodName' => 'vat_rate_percent',
			'strField' => 'vat_rate_percent',
			'index' => 14,
			'type' => 14,
			'sqlExpression' => 'vat_rate_percent',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'input_vat_amount' => array(
			'name' => 'input_vat_amount',
			'goodName' => 'input_vat_amount',
			'strField' => 'input_vat_amount',
			'index' => 15,
			'type' => 14,
			'sqlExpression' => 'input_vat_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'withholding_tax_code_id' => array(
			'name' => 'withholding_tax_code_id',
			'goodName' => 'withholding_tax_code_id',
			'strField' => 'withholding_tax_code_id',
			'index' => 16,
			'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',
					'lookupWhere' => 'tax_type = \'WITHHOLDING\' AND status = \'ACTIVE\'' 
				) 
			),
			'tableName' => 'supplier_bill_detail',
			'viewLinkTable' => 'tax_code',
			'viewLinkLookup' => true 
		),
		'withholding_rate_percent' => array(
			'name' => 'withholding_rate_percent',
			'goodName' => 'withholding_rate_percent',
			'strField' => 'withholding_rate_percent',
			'index' => 17,
			'type' => 14,
			'sqlExpression' => 'withholding_rate_percent',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'withholding_amount' => array(
			'name' => 'withholding_amount',
			'goodName' => 'withholding_amount',
			'strField' => 'withholding_amount',
			'index' => 18,
			'type' => 14,
			'sqlExpression' => 'withholding_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'line_total_amount' => array(
			'name' => 'line_total_amount',
			'goodName' => 'line_total_amount',
			'strField' => 'line_total_amount',
			'index' => 19,
			'type' => 14,
			'sqlExpression' => 'line_total_amount',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'expense_account_id' => array(
			'name' => 'expense_account_id',
			'goodName' => 'expense_account_id',
			'strField' => 'expense_account_id',
			'index' => 20,
			'type' => 20,
			'sqlExpression' => 'expense_account_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'chart_of_account',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'account_name',
					'lookupOrderBy' => 'account_code' 
				) 
			),
			'tableName' => 'supplier_bill_detail',
			'viewLinkTable' => 'chart_of_account',
			'viewLinkLookup' => true 
		),
		'asset_account_id' => array(
			'name' => 'asset_account_id',
			'goodName' => 'asset_account_id',
			'strField' => 'asset_account_id',
			'index' => 21,
			'type' => 20,
			'sqlExpression' => 'asset_account_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'chart_of_account',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'account_name',
					'lookupOrderBy' => 'account_code' 
				) 
			),
			'tableName' => 'supplier_bill_detail',
			'viewLinkTable' => 'chart_of_account',
			'viewLinkLookup' => true 
		),
		'inventory_account_id' => array(
			'name' => 'inventory_account_id',
			'goodName' => 'inventory_account_id',
			'strField' => 'inventory_account_id',
			'index' => 22,
			'type' => 20,
			'sqlExpression' => 'inventory_account_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'chart_of_account',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'account_name',
					'lookupOrderBy' => 'account_code' 
				) 
			),
			'tableName' => 'supplier_bill_detail',
			'viewLinkTable' => 'chart_of_account',
			'viewLinkLookup' => true 
		),
		'warehouse_id' => array(
			'name' => 'warehouse_id',
			'goodName' => 'warehouse_id',
			'strField' => 'warehouse_id',
			'index' => 23,
			'type' => 20,
			'sqlExpression' => 'warehouse_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'department_id' => array(
			'name' => 'department_id',
			'goodName' => 'department_id',
			'strField' => 'department_id',
			'index' => 24,
			'type' => 20,
			'sqlExpression' => 'department_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'cost_center_id' => array(
			'name' => 'cost_center_id',
			'goodName' => 'cost_center_id',
			'strField' => 'cost_center_id',
			'index' => 25,
			'type' => 20,
			'sqlExpression' => 'cost_center_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'project_id' => array(
			'name' => 'project_id',
			'goodName' => 'project_id',
			'strField' => 'project_id',
			'index' => 26,
			'type' => 20,
			'sqlExpression' => 'project_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		),
		'project_task_id' => array(
			'name' => 'project_task_id',
			'goodName' => 'project_task_id',
			'strField' => 'project_task_id',
			'index' => 27,
			'type' => 20,
			'sqlExpression' => 'project_task_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'supplier_bill_detail' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'supplier_bill',
			'detailsKeys' => array( 
				'supplier_bill_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	supplier_bill_detail_uuid,
	supplier_bill_id,
	line_no,
	item_id,
	description,
	quantity,
	uom_code,
	unit_price,
	gross_amount,
	discount_amount,
	net_before_tax,
	vat_tax_code_id,
	vat_rate_percent,
	input_vat_amount,
	withholding_tax_code_id,
	withholding_rate_percent,
	withholding_amount,
	line_total_amount,
	expense_account_id,
	asset_account_id,
	inventory_account_id,
	warehouse_id,
	department_id,
	cost_center_id,
	project_id,
	project_task_id
FROM
	supplier_bill_detail',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'supplier_bill_detail_uuid',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'supplier_bill_detail_uuid' 
				),
				'encrypted' => false,
				'columnName' => 'supplier_bill_detail_uuid' 
			),
			array(
				'sql' => 'supplier_bill_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'supplier_bill_id' 
				),
				'encrypted' => false,
				'columnName' => 'supplier_bill_id' 
			),
			array(
				'sql' => 'line_no',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_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' => 'supplier_bill_detail',
					'name' => 'item_id' 
				),
				'encrypted' => false,
				'columnName' => 'item_id' 
			),
			array(
				'sql' => 'description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'description' 
				),
				'encrypted' => false,
				'columnName' => 'description' 
			),
			array(
				'sql' => 'quantity',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'quantity' 
				),
				'encrypted' => false,
				'columnName' => 'quantity' 
			),
			array(
				'sql' => 'uom_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'uom_code' 
				),
				'encrypted' => false,
				'columnName' => 'uom_code' 
			),
			array(
				'sql' => 'unit_price',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_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' => 'supplier_bill_detail',
					'name' => 'gross_amount' 
				),
				'encrypted' => false,
				'columnName' => 'gross_amount' 
			),
			array(
				'sql' => 'discount_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'discount_amount' 
				),
				'encrypted' => false,
				'columnName' => 'discount_amount' 
			),
			array(
				'sql' => 'net_before_tax',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'net_before_tax' 
				),
				'encrypted' => false,
				'columnName' => 'net_before_tax' 
			),
			array(
				'sql' => 'vat_tax_code_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'vat_tax_code_id' 
				),
				'encrypted' => false,
				'columnName' => 'vat_tax_code_id' 
			),
			array(
				'sql' => 'vat_rate_percent',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'vat_rate_percent' 
				),
				'encrypted' => false,
				'columnName' => 'vat_rate_percent' 
			),
			array(
				'sql' => 'input_vat_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'input_vat_amount' 
				),
				'encrypted' => false,
				'columnName' => 'input_vat_amount' 
			),
			array(
				'sql' => 'withholding_tax_code_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'withholding_tax_code_id' 
				),
				'encrypted' => false,
				'columnName' => 'withholding_tax_code_id' 
			),
			array(
				'sql' => 'withholding_rate_percent',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'withholding_rate_percent' 
				),
				'encrypted' => false,
				'columnName' => 'withholding_rate_percent' 
			),
			array(
				'sql' => 'withholding_amount',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_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' => 'supplier_bill_detail',
					'name' => 'line_total_amount' 
				),
				'encrypted' => false,
				'columnName' => 'line_total_amount' 
			),
			array(
				'sql' => 'expense_account_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'expense_account_id' 
				),
				'encrypted' => false,
				'columnName' => 'expense_account_id' 
			),
			array(
				'sql' => 'asset_account_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'asset_account_id' 
				),
				'encrypted' => false,
				'columnName' => 'asset_account_id' 
			),
			array(
				'sql' => 'inventory_account_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_detail',
					'name' => 'inventory_account_id' 
				),
				'encrypted' => false,
				'columnName' => 'inventory_account_id' 
			),
			array(
				'sql' => 'warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'supplier_bill_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' => 'supplier_bill_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' => 'supplier_bill_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' => 'supplier_bill_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' => 'supplier_bill_detail',
					'name' => 'project_task_id' 
				),
				'encrypted' => false,
				'columnName' => 'project_task_id' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'supplier_bill_detail',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'supplier_bill_detail',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'supplier_bill_detail_uuid',
						'supplier_bill_id',
						'line_no',
						'item_id',
						'description',
						'quantity',
						'uom_code',
						'unit_price',
						'gross_amount',
						'discount_amount',
						'net_before_tax',
						'vat_tax_code_id',
						'vat_rate_percent',
						'input_vat_amount',
						'withholding_tax_code_id',
						'withholding_rate_percent',
						'withholding_amount',
						'line_total_amount',
						'expense_account_id',
						'asset_account_id',
						'inventory_account_id',
						'warehouse_id',
						'department_id',
						'cost_center_id',
						'project_id',
						'project_task_id' 
					),
					'name' => 'supplier_bill_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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	supplier_bill_detail_uuid,
	supplier_bill_id,
	line_no,
	item_id,
	description,
	quantity,
	uom_code,
	unit_price,
	gross_amount,
	discount_amount,
	net_before_tax,
	vat_tax_code_id,
	vat_rate_percent,
	input_vat_amount,
	withholding_tax_code_id,
	withholding_rate_percent,
	withholding_amount,
	line_total_amount,
	expense_account_id,
	asset_account_id,
	inventory_account_id,
	warehouse_id,
	department_id,
	cost_center_id,
	project_id,
	project_task_id',
		'fromListSql' => 'FROM
	supplier_bill_detail',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'originalTable' => 'supplier_bill_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',
			'supplier_bill_detail_uuid',
			'supplier_bill_id',
			'line_no',
			'item_id',
			'description',
			'quantity',
			'uom_code',
			'unit_price',
			'gross_amount',
			'discount_amount',
			'net_before_tax',
			'vat_tax_code_id',
			'vat_rate_percent',
			'input_vat_amount',
			'withholding_tax_code_id',
			'withholding_rate_percent',
			'withholding_amount',
			'line_total_amount',
			'expense_account_id',
			'asset_account_id',
			'inventory_account_id',
			'warehouse_id',
			'department_id',
			'cost_center_id',
			'project_id',
			'project_task_id' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'supplier_bill_detail_uuid',
			'supplier_bill_id',
			'line_no',
			'item_id',
			'description',
			'quantity',
			'uom_code',
			'unit_price',
			'gross_amount',
			'discount_amount',
			'net_before_tax',
			'vat_tax_code_id',
			'vat_rate_percent',
			'input_vat_amount',
			'withholding_tax_code_id',
			'withholding_rate_percent',
			'withholding_amount',
			'line_total_amount',
			'expense_account_id',
			'asset_account_id',
			'inventory_account_id',
			'warehouse_id',
			'department_id',
			'cost_center_id',
			'project_id',
			'project_task_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['supplier_bill_detail'] = array(
	'tableCaption' => 'Supplier Bill Detail',
	'fieldLabels' => array(
		'id' => 'Id',
		'supplier_bill_detail_uuid' => 'Supplier Bill Detail Uuid',
		'supplier_bill_id' => 'Supplier Bill Id',
		'line_no' => 'Line No',
		'item_id' => 'Item',
		'description' => 'Description',
		'quantity' => 'Quantity',
		'uom_code' => 'Unit',
		'unit_price' => 'Unit Price',
		'gross_amount' => 'Gross Amount',
		'discount_amount' => 'Discount',
		'net_before_tax' => 'Net Before Tax',
		'vat_tax_code_id' => 'VAT Code',
		'vat_rate_percent' => 'VAT Rate %',
		'input_vat_amount' => 'Input VAT',
		'withholding_tax_code_id' => 'Withholding Tax Code',
		'withholding_rate_percent' => 'Withholding Rate %',
		'withholding_amount' => 'Withholding',
		'line_total_amount' => 'Line Total',
		'expense_account_id' => 'Expense Account Id',
		'asset_account_id' => 'Asset Account Id',
		'inventory_account_id' => 'Inventory Account Id',
		'warehouse_id' => 'Warehouse Id',
		'department_id' => 'Department Id',
		'cost_center_id' => 'Cost Center Id',
		'project_id' => 'Project Id',
		'project_task_id' => 'Project Task Id' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'supplier_bill_detail_uuid' => '',
		'supplier_bill_id' => '',
		'line_no' => '',
		'item_id' => '',
		'description' => '',
		'quantity' => '',
		'uom_code' => '',
		'unit_price' => '',
		'gross_amount' => '',
		'discount_amount' => '',
		'net_before_tax' => '',
		'vat_tax_code_id' => '',
		'vat_rate_percent' => '',
		'input_vat_amount' => '',
		'withholding_tax_code_id' => '',
		'withholding_rate_percent' => '',
		'withholding_amount' => '',
		'line_total_amount' => '',
		'expense_account_id' => '',
		'asset_account_id' => '',
		'inventory_account_id' => '',
		'warehouse_id' => '',
		'department_id' => '',
		'cost_center_id' => '',
		'project_id' => '',
		'project_task_id' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'supplier_bill_detail_uuid' => '',
		'supplier_bill_id' => '',
		'line_no' => '',
		'item_id' => '',
		'description' => '',
		'quantity' => '',
		'uom_code' => '',
		'unit_price' => '',
		'gross_amount' => '',
		'discount_amount' => '',
		'net_before_tax' => '',
		'vat_tax_code_id' => '',
		'vat_rate_percent' => '',
		'input_vat_amount' => '',
		'withholding_tax_code_id' => '',
		'withholding_rate_percent' => '',
		'withholding_amount' => '',
		'line_total_amount' => '',
		'expense_account_id' => '',
		'asset_account_id' => '',
		'inventory_account_id' => '',
		'warehouse_id' => '',
		'department_id' => '',
		'cost_center_id' => '',
		'project_id' => '',
		'project_task_id' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>