<?php
global $runnerTableSettings;
$runnerTableSettings['vw_inventory_ledger_complete'] = array(
	'name' => 'vw_inventory_ledger_complete',
	'shortName' => 'vw_inventory_ledger_complete',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'vw_inventory_ledger_complete',
	'afterAddDetail' => 'vw_inventory_ledger_complete',
	'detailsBadgeColor' => '1e90ff',
	'strOrderBy' => 'order by 	`Date` desc',
	'orderInfo' => array( 
		array(
			'index' => 1,
			'dir' => 'DESC',
			'field' => 'Date' 
		) 
	),
	'sql' => 'SELECT
	`Date`,
	`Transaction`,
	`Transaction No`,
	item_id,
	sku,
	description,
	parent_item_id,
	parent_item_sku,
	item_classification,
	category_id,
	category_name,
	subcategory_id,
	subcategory_name,
	brand_id,
	brand_name,
	procurement_type,
	weight,
	dimensions,
	mother_facility_id,
	mother_facility_code,
	warehouse_id,
	warehouse_code,
	rack_id,
	`Expiry Date`,
	Quality,
	Facility,
	Warehouse,
	Rack,
	Batch,
	`Qty Effect`,
	Cost,
	`Total Cost`
FROM
	vw_inventory_ledger_complete
	
	order by 	`Date` desc',
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'Date' => array(
			'name' => 'Date',
			'goodName' => 'Date',
			'strField' => 'Date',
			'index' => 1,
			'type' => 7,
			'sqlExpression' => '`Date`',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Transaction' => array(
			'name' => 'Transaction',
			'goodName' => 'Transaction',
			'strField' => 'Transaction',
			'index' => 2,
			'sqlExpression' => '`Transaction`',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Transaction No' => array(
			'name' => 'Transaction No',
			'goodName' => 'Transaction_No',
			'strField' => 'Transaction No',
			'index' => 3,
			'sqlExpression' => '`Transaction No`',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'item_id' => array(
			'name' => 'item_id',
			'goodName' => 'item_id',
			'strField' => 'item_id',
			'index' => 4,
			'type' => 3,
			'sqlExpression' => 'item_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'sku' => array(
			'name' => 'sku',
			'goodName' => 'sku',
			'strField' => 'sku',
			'index' => 5,
			'sqlExpression' => 'sku',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'description' => array(
			'name' => 'description',
			'goodName' => 'description',
			'strField' => 'description',
			'index' => 6,
			'sqlExpression' => 'description',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'parent_item_id' => array(
			'name' => 'parent_item_id',
			'goodName' => 'parent_item_id',
			'strField' => 'parent_item_id',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'parent_item_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'parent_item_sku' => array(
			'name' => 'parent_item_sku',
			'goodName' => 'parent_item_sku',
			'strField' => 'parent_item_sku',
			'index' => 8,
			'sqlExpression' => 'parent_item_sku',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'item_classification' => array(
			'name' => 'item_classification',
			'goodName' => 'item_classification',
			'strField' => 'item_classification',
			'index' => 9,
			'type' => 129,
			'sqlExpression' => 'item_classification',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'REGULAR',
						'RAW_MATERIAL',
						'KIT' 
					) 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'category_id' => array(
			'name' => 'category_id',
			'goodName' => 'category_id',
			'strField' => 'category_id',
			'index' => 10,
			'type' => 3,
			'sqlExpression' => 'category_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'category_name' => array(
			'name' => 'category_name',
			'goodName' => 'category_name',
			'strField' => 'category_name',
			'index' => 11,
			'sqlExpression' => 'category_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'subcategory_id' => array(
			'name' => 'subcategory_id',
			'goodName' => 'subcategory_id',
			'strField' => 'subcategory_id',
			'index' => 12,
			'type' => 3,
			'sqlExpression' => 'subcategory_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'subcategory_name' => array(
			'name' => 'subcategory_name',
			'goodName' => 'subcategory_name',
			'strField' => 'subcategory_name',
			'index' => 13,
			'sqlExpression' => 'subcategory_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'brand_id' => array(
			'name' => 'brand_id',
			'goodName' => 'brand_id',
			'strField' => 'brand_id',
			'index' => 14,
			'type' => 3,
			'sqlExpression' => 'brand_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'brand_name' => array(
			'name' => 'brand_name',
			'goodName' => 'brand_name',
			'strField' => 'brand_name',
			'index' => 15,
			'sqlExpression' => 'brand_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'procurement_type' => array(
			'name' => 'procurement_type',
			'goodName' => 'procurement_type',
			'strField' => 'procurement_type',
			'index' => 16,
			'type' => 129,
			'sqlExpression' => 'procurement_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'P',
						'N',
						'L',
						'F' 
					) 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'weight' => array(
			'name' => 'weight',
			'goodName' => 'weight',
			'strField' => 'weight',
			'index' => 17,
			'sqlExpression' => 'weight',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'dimensions' => array(
			'name' => 'dimensions',
			'goodName' => 'dimensions',
			'strField' => 'dimensions',
			'index' => 18,
			'sqlExpression' => 'dimensions',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'mother_facility_id' => array(
			'name' => 'mother_facility_id',
			'goodName' => 'mother_facility_id',
			'strField' => 'mother_facility_id',
			'index' => 19,
			'type' => 3,
			'sqlExpression' => 'mother_facility_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'mother_facility_code' => array(
			'name' => 'mother_facility_code',
			'goodName' => 'mother_facility_code',
			'strField' => 'mother_facility_code',
			'index' => 20,
			'sqlExpression' => 'mother_facility_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'warehouse_id' => array(
			'name' => 'warehouse_id',
			'goodName' => 'warehouse_id',
			'strField' => 'warehouse_id',
			'index' => 21,
			'type' => 3,
			'sqlExpression' => 'warehouse_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'warehouse_code' => array(
			'name' => 'warehouse_code',
			'goodName' => 'warehouse_code',
			'strField' => 'warehouse_code',
			'index' => 22,
			'sqlExpression' => 'warehouse_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'rack_id' => array(
			'name' => 'rack_id',
			'goodName' => 'rack_id',
			'strField' => 'rack_id',
			'index' => 23,
			'type' => 3,
			'sqlExpression' => 'rack_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Expiry Date' => array(
			'name' => 'Expiry Date',
			'goodName' => 'Expiry_Date',
			'strField' => 'Expiry Date',
			'index' => 24,
			'type' => 7,
			'sqlExpression' => '`Expiry Date`',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Quality' => array(
			'name' => 'Quality',
			'goodName' => 'Quality',
			'strField' => 'Quality',
			'index' => 25,
			'sqlExpression' => 'Quality',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Facility' => array(
			'name' => 'Facility',
			'goodName' => 'Facility',
			'strField' => 'Facility',
			'index' => 26,
			'sqlExpression' => 'Facility',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Warehouse' => array(
			'name' => 'Warehouse',
			'goodName' => 'Warehouse',
			'strField' => 'Warehouse',
			'index' => 27,
			'sqlExpression' => 'Warehouse',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Rack' => array(
			'name' => 'Rack',
			'goodName' => 'Rack',
			'strField' => 'Rack',
			'index' => 28,
			'sqlExpression' => 'Rack',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Batch' => array(
			'name' => 'Batch',
			'goodName' => 'Batch',
			'strField' => 'Batch',
			'index' => 29,
			'sqlExpression' => 'Batch',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Qty Effect' => array(
			'name' => 'Qty Effect',
			'goodName' => 'Qty_Effect',
			'strField' => 'Qty Effect',
			'index' => 30,
			'type' => 14,
			'sqlExpression' => '`Qty Effect`',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Cost' => array(
			'name' => 'Cost',
			'goodName' => 'Cost',
			'strField' => 'Cost',
			'index' => 31,
			'type' => 14,
			'sqlExpression' => 'Cost',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		),
		'Total Cost' => array(
			'name' => 'Total Cost',
			'goodName' => 'Total_Cost',
			'strField' => 'Total Cost',
			'index' => 32,
			'type' => 14,
			'sqlExpression' => '`Total Cost`',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'vw_inventory_ledger_complete' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	`Date`,
	`Transaction`,
	`Transaction No`,
	item_id,
	sku,
	description,
	parent_item_id,
	parent_item_sku,
	item_classification,
	category_id,
	category_name,
	subcategory_id,
	subcategory_name,
	brand_id,
	brand_name,
	procurement_type,
	weight,
	dimensions,
	mother_facility_id,
	mother_facility_code,
	warehouse_id,
	warehouse_code,
	rack_id,
	`Expiry Date`,
	Quality,
	Facility,
	Warehouse,
	Rack,
	Batch,
	`Qty Effect`,
	Cost,
	`Total Cost`
FROM
	vw_inventory_ledger_complete
	
	order by 	`Date` desc',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => '`Date`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Date' 
				),
				'encrypted' => false,
				'columnName' => 'Date' 
			),
			array(
				'sql' => '`Transaction`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Transaction' 
				),
				'encrypted' => false,
				'columnName' => 'Transaction' 
			),
			array(
				'sql' => '`Transaction No`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Transaction No' 
				),
				'encrypted' => false,
				'columnName' => 'Transaction No' 
			),
			array(
				'sql' => 'item_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'item_id' 
				),
				'encrypted' => false,
				'columnName' => 'item_id' 
			),
			array(
				'sql' => 'sku',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'sku' 
				),
				'encrypted' => false,
				'columnName' => 'sku' 
			),
			array(
				'sql' => 'description',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'description' 
				),
				'encrypted' => false,
				'columnName' => 'description' 
			),
			array(
				'sql' => 'parent_item_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'parent_item_id' 
				),
				'encrypted' => false,
				'columnName' => 'parent_item_id' 
			),
			array(
				'sql' => 'parent_item_sku',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'parent_item_sku' 
				),
				'encrypted' => false,
				'columnName' => 'parent_item_sku' 
			),
			array(
				'sql' => 'item_classification',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'item_classification' 
				),
				'encrypted' => false,
				'columnName' => 'item_classification' 
			),
			array(
				'sql' => 'category_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'category_id' 
				),
				'encrypted' => false,
				'columnName' => 'category_id' 
			),
			array(
				'sql' => 'category_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'category_name' 
				),
				'encrypted' => false,
				'columnName' => 'category_name' 
			),
			array(
				'sql' => 'subcategory_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'subcategory_id' 
				),
				'encrypted' => false,
				'columnName' => 'subcategory_id' 
			),
			array(
				'sql' => 'subcategory_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'subcategory_name' 
				),
				'encrypted' => false,
				'columnName' => 'subcategory_name' 
			),
			array(
				'sql' => 'brand_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'brand_id' 
				),
				'encrypted' => false,
				'columnName' => 'brand_id' 
			),
			array(
				'sql' => 'brand_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'brand_name' 
				),
				'encrypted' => false,
				'columnName' => 'brand_name' 
			),
			array(
				'sql' => 'procurement_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'procurement_type' 
				),
				'encrypted' => false,
				'columnName' => 'procurement_type' 
			),
			array(
				'sql' => 'weight',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'weight' 
				),
				'encrypted' => false,
				'columnName' => 'weight' 
			),
			array(
				'sql' => 'dimensions',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'dimensions' 
				),
				'encrypted' => false,
				'columnName' => 'dimensions' 
			),
			array(
				'sql' => 'mother_facility_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'mother_facility_id' 
				),
				'encrypted' => false,
				'columnName' => 'mother_facility_id' 
			),
			array(
				'sql' => 'mother_facility_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'mother_facility_code' 
				),
				'encrypted' => false,
				'columnName' => 'mother_facility_code' 
			),
			array(
				'sql' => 'warehouse_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'warehouse_id' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_id' 
			),
			array(
				'sql' => 'warehouse_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'warehouse_code' 
				),
				'encrypted' => false,
				'columnName' => 'warehouse_code' 
			),
			array(
				'sql' => 'rack_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'rack_id' 
				),
				'encrypted' => false,
				'columnName' => 'rack_id' 
			),
			array(
				'sql' => '`Expiry Date`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Expiry Date' 
				),
				'encrypted' => false,
				'columnName' => 'Expiry Date' 
			),
			array(
				'sql' => 'Quality',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Quality' 
				),
				'encrypted' => false,
				'columnName' => 'Quality' 
			),
			array(
				'sql' => 'Facility',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Facility' 
				),
				'encrypted' => false,
				'columnName' => 'Facility' 
			),
			array(
				'sql' => 'Warehouse',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Warehouse' 
				),
				'encrypted' => false,
				'columnName' => 'Warehouse' 
			),
			array(
				'sql' => 'Rack',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Rack' 
				),
				'encrypted' => false,
				'columnName' => 'Rack' 
			),
			array(
				'sql' => 'Batch',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Batch' 
				),
				'encrypted' => false,
				'columnName' => 'Batch' 
			),
			array(
				'sql' => '`Qty Effect`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Qty Effect' 
				),
				'encrypted' => false,
				'columnName' => 'Qty Effect' 
			),
			array(
				'sql' => 'Cost',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Cost' 
				),
				'encrypted' => false,
				'columnName' => 'Cost' 
			),
			array(
				'sql' => '`Total Cost`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Total Cost' 
				),
				'encrypted' => false,
				'columnName' => 'Total Cost' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'vw_inventory_ledger_complete',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'vw_inventory_ledger_complete',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'Date',
						'Transaction',
						'Transaction No',
						'item_id',
						'sku',
						'description',
						'parent_item_id',
						'parent_item_sku',
						'item_classification',
						'category_id',
						'category_name',
						'subcategory_id',
						'subcategory_name',
						'brand_id',
						'brand_name',
						'procurement_type',
						'weight',
						'dimensions',
						'mother_facility_id',
						'mother_facility_code',
						'warehouse_id',
						'warehouse_code',
						'rack_id',
						'Expiry Date',
						'Quality',
						'Facility',
						'Warehouse',
						'Rack',
						'Batch',
						'Qty Effect',
						'Cost',
						'Total Cost' 
					),
					'name' => 'vw_inventory_ledger_complete' 
				),
				'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' => '`Date` desc',
				'parsed' => true,
				'type' => 'OrderByListItem',
				'column' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'vw_inventory_ledger_complete',
					'name' => 'Date' 
				),
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => '`Date`,
	`Transaction`,
	`Transaction No`,
	item_id,
	sku,
	description,
	parent_item_id,
	parent_item_sku,
	item_classification,
	category_id,
	category_name,
	subcategory_id,
	subcategory_name,
	brand_id,
	brand_name,
	procurement_type,
	weight,
	dimensions,
	mother_facility_id,
	mother_facility_code,
	warehouse_id,
	warehouse_code,
	rack_id,
	`Expiry Date`,
	Quality,
	Facility,
	Warehouse,
	Rack,
	Batch,
	`Qty Effect`,
	Cost,
	`Total Cost`',
		'fromListSql' => 'FROM
	vw_inventory_ledger_complete',
		'orderBySql' => 'order by 	`Date` desc',
		'tailSql' => '' 
	),
	'originalTable' => 'vw_inventory_ledger_complete',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'Date',
			'Transaction',
			'Transaction No',
			'item_id',
			'sku',
			'description',
			'parent_item_id',
			'parent_item_sku',
			'item_classification',
			'category_id',
			'category_name',
			'subcategory_id',
			'subcategory_name',
			'brand_id',
			'brand_name',
			'procurement_type',
			'weight',
			'dimensions',
			'mother_facility_id',
			'mother_facility_code',
			'warehouse_id',
			'warehouse_code',
			'rack_id',
			'Expiry Date',
			'Quality',
			'Facility',
			'Warehouse',
			'Rack',
			'Batch',
			'Qty Effect',
			'Cost',
			'Total Cost' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'Date',
			'Transaction',
			'Transaction No',
			'item_id',
			'sku',
			'description',
			'parent_item_id',
			'parent_item_sku',
			'item_classification',
			'category_id',
			'category_name',
			'subcategory_id',
			'subcategory_name',
			'brand_id',
			'brand_name',
			'procurement_type',
			'weight',
			'dimensions',
			'mother_facility_id',
			'mother_facility_code',
			'warehouse_id',
			'warehouse_code',
			'rack_id',
			'Expiry Date',
			'Quality',
			'Facility',
			'Warehouse',
			'Rack',
			'Batch',
			'Qty Effect',
			'Cost',
			'Total Cost' 
		) 
	),
	'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['vw_inventory_ledger_complete'] = array(
	'tableCaption' => 'View Inventory Ledger Complete',
	'fieldLabels' => array(
		'Date' => 'Date',
		'Transaction' => 'Transaction',
		'Transaction_No' => 'Transaction No.',
		'item_id' => 'Item ID',
		'sku' => 'Stock Keeping Unit (SKU)',
		'description' => 'Description',
		'parent_item_id' => 'Parent Item',
		'parent_item_sku' => 'Parent Item SKU',
		'item_classification' => 'Item Classification',
		'category_id' => 'Category ID',
		'category_name' => 'Category Name',
		'subcategory_id' => 'Subcategory ID',
		'subcategory_name' => 'Subcategory Name',
		'brand_id' => 'Brand ID',
		'brand_name' => 'Brand Name',
		'procurement_type' => 'Procurement Type',
		'weight' => 'Weight',
		'dimensions' => 'Dimensions',
		'mother_facility_id' => 'Mother Facility ID',
		'mother_facility_code' => 'Mother Facility Code',
		'warehouse_id' => 'Warehouse ID',
		'warehouse_code' => 'Warehouse Code',
		'rack_id' => 'Rack ID',
		'Expiry_Date' => 'Expiry Date',
		'Quality' => 'Quality',
		'Facility' => 'Facility',
		'Warehouse' => 'Warehouse',
		'Rack' => 'Rack',
		'Batch' => 'Batch',
		'Qty_Effect' => 'Qty Effect',
		'Cost' => 'Cost',
		'Total_Cost' => 'Total Cost' 
	),
	'fieldTooltips' => array(
		'Date' => '',
		'Transaction' => '',
		'Transaction_No' => '',
		'item_id' => '',
		'sku' => '',
		'description' => '',
		'parent_item_id' => '',
		'parent_item_sku' => '',
		'item_classification' => '',
		'category_id' => '',
		'category_name' => '',
		'subcategory_id' => '',
		'subcategory_name' => '',
		'brand_id' => '',
		'brand_name' => '',
		'procurement_type' => '',
		'weight' => '',
		'dimensions' => '',
		'mother_facility_id' => '',
		'mother_facility_code' => '',
		'warehouse_id' => '',
		'warehouse_code' => '',
		'rack_id' => '',
		'Expiry_Date' => '',
		'Quality' => '',
		'Facility' => '',
		'Warehouse' => '',
		'Rack' => '',
		'Batch' => '',
		'Qty_Effect' => '',
		'Cost' => '',
		'Total_Cost' => '' 
	),
	'fieldPlaceholders' => array(
		'Date' => '',
		'Transaction' => '',
		'Transaction_No' => '',
		'item_id' => '',
		'sku' => '',
		'description' => '',
		'parent_item_id' => '',
		'parent_item_sku' => '',
		'item_classification' => '',
		'category_id' => '',
		'category_name' => '',
		'subcategory_id' => '',
		'subcategory_name' => '',
		'brand_id' => '',
		'brand_name' => '',
		'procurement_type' => '',
		'weight' => '',
		'dimensions' => '',
		'mother_facility_id' => '',
		'mother_facility_code' => '',
		'warehouse_id' => '',
		'warehouse_code' => '',
		'rack_id' => '',
		'Expiry_Date' => '',
		'Quality' => '',
		'Facility' => '',
		'Warehouse' => '',
		'Rack' => '',
		'Batch' => '',
		'Qty_Effect' => '',
		'Cost' => '',
		'Total_Cost' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>