<?php
			$optionsArray = array(
	'totals' => array(
		'id' => array(
			'totalsType' => '' 
		),
		'sales_detail_uuid' => array(
			'totalsType' => '' 
		),
		'sales_id' => array(
			'totalsType' => '' 
		),
		'line_no' => array(
			'totalsType' => '' 
		),
		'item_id' => array(
			'totalsType' => '' 
		),
		'item_code_snapshot' => array(
			'totalsType' => '' 
		),
		'description' => array(
			'totalsType' => '' 
		),
		'uom_code' => array(
			'totalsType' => '' 
		),
		'quantity' => array(
			'totalsType' => '' 
		),
		'unit_price' => array(
			'totalsType' => '' 
		),
		'gross_amount' => array(
			'totalsType' => '' 
		),
		'commercial_discount_rate' => array(
			'totalsType' => '' 
		),
		'commercial_discount_amount' => array(
			'totalsType' => '' 
		),
		'discount_type_id' => array(
			'totalsType' => '' 
		),
		'statutory_discount_rate' => array(
			'totalsType' => '' 
		),
		'statutory_discount_amount' => array(
			'totalsType' => '' 
		),
		'net_before_tax_amount' => array(
			'totalsType' => '' 
		),
		'vat_tax_code_id' => array(
			'totalsType' => '' 
		),
		'vat_rate_snapshot' => array(
			'totalsType' => '' 
		),
		'vatable_amount' => array(
			'totalsType' => '' 
		),
		'vat_exempt_amount' => array(
			'totalsType' => '' 
		),
		'zero_rated_amount' => array(
			'totalsType' => '' 
		),
		'vat_amount' => array(
			'totalsType' => '' 
		),
		'withholding_tax_code_id' => array(
			'totalsType' => '' 
		),
		'withholding_rate_snapshot' => array(
			'totalsType' => '' 
		),
		'withholding_amount' => array(
			'totalsType' => '' 
		),
		'line_total_amount' => array(
			'totalsType' => '' 
		),
		'base_line_total_amount' => array(
			'totalsType' => '' 
		),
		'warehouse_id' => array(
			'totalsType' => '' 
		),
		'department_id' => array(
			'totalsType' => '' 
		),
		'cost_center_id' => array(
			'totalsType' => '' 
		),
		'project_id' => array(
			'totalsType' => '' 
		),
		'project_task_id' => array(
			'totalsType' => '' 
		),
		'sales_agent_id' => array(
			'totalsType' => '' 
		),
		'campaign_id' => array(
			'totalsType' => '' 
		),
		'created_at' => array(
			'totalsType' => '' 
		),
		'updated_at' => array(
			'totalsType' => '' 
		) 
	),
	'fields' => array(
		'gridFields' => 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' 
		),
		'exportFields' => 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' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'fieldItems' => array(
			'id' => array( 
				'export_field' 
			),
			'sales_detail_uuid' => array( 
				'export_field1' 
			),
			'sales_id' => array( 
				'export_field2' 
			),
			'line_no' => array( 
				'export_field3' 
			),
			'item_id' => array( 
				'export_field4' 
			),
			'item_code_snapshot' => array( 
				'export_field5' 
			),
			'description' => array( 
				'export_field6' 
			),
			'uom_code' => array( 
				'export_field7' 
			),
			'quantity' => array( 
				'export_field8' 
			),
			'unit_price' => array( 
				'export_field9' 
			),
			'gross_amount' => array( 
				'export_field10' 
			),
			'commercial_discount_rate' => array( 
				'export_field11' 
			),
			'commercial_discount_amount' => array( 
				'export_field12' 
			),
			'discount_type_id' => array( 
				'export_field13' 
			),
			'statutory_discount_rate' => array( 
				'export_field14' 
			),
			'statutory_discount_amount' => array( 
				'export_field15' 
			),
			'net_before_tax_amount' => array( 
				'export_field16' 
			),
			'vat_tax_code_id' => array( 
				'export_field17' 
			),
			'vat_rate_snapshot' => array( 
				'export_field18' 
			),
			'vatable_amount' => array( 
				'export_field19' 
			),
			'vat_exempt_amount' => array( 
				'export_field20' 
			),
			'zero_rated_amount' => array( 
				'export_field21' 
			),
			'vat_amount' => array( 
				'export_field22' 
			),
			'withholding_tax_code_id' => array( 
				'export_field23' 
			),
			'withholding_rate_snapshot' => array( 
				'export_field24' 
			),
			'withholding_amount' => array( 
				'export_field25' 
			),
			'line_total_amount' => array( 
				'export_field26' 
			),
			'base_line_total_amount' => array( 
				'export_field27' 
			),
			'warehouse_id' => array( 
				'export_field28' 
			),
			'department_id' => array( 
				'export_field29' 
			),
			'cost_center_id' => array( 
				'export_field30' 
			),
			'project_id' => array( 
				'export_field31' 
			),
			'project_task_id' => array( 
				'export_field32' 
			),
			'sales_agent_id' => array( 
				'export_field33' 
			),
			'campaign_id' => array( 
				'export_field34' 
			),
			'created_at' => array( 
				'export_field35' 
			),
			'updated_at' => array( 
				'export_field36' 
			) 
		) 
	),
	'pageLinks' => array(
		'edit' => false,
		'add' => false,
		'view' => false,
		'print' => false 
	),
	'layoutHelper' => array(
		'formItems' => array(
			'formItems' => array(
				'supertop' => array( 
					 
				),
				'top' => array( 
					'export_header' 
				),
				'grid' => array( 
					'export_field',
					'export_field1',
					'export_field2',
					'export_field3',
					'export_field4',
					'export_field5',
					'export_field6',
					'export_field7',
					'export_field8',
					'export_field9',
					'export_field10',
					'export_field11',
					'export_field12',
					'export_field13',
					'export_field14',
					'export_field15',
					'export_field16',
					'export_field17',
					'export_field18',
					'export_field19',
					'export_field20',
					'export_field21',
					'export_field22',
					'export_field23',
					'export_field24',
					'export_field25',
					'export_field26',
					'export_field27',
					'export_field28',
					'export_field29',
					'export_field30',
					'export_field31',
					'export_field32',
					'export_field33',
					'export_field34',
					'export_field35',
					'export_field36' 
				),
				'footer' => array( 
					'export_export',
					'export_cancel' 
				) 
			),
			'formXtTags' => array(
				'supertop' => array( 
					 
				) 
			),
			'itemForms' => array(
				'export_header' => 'top',
				'export_field' => 'grid',
				'export_field1' => 'grid',
				'export_field2' => 'grid',
				'export_field3' => 'grid',
				'export_field4' => 'grid',
				'export_field5' => 'grid',
				'export_field6' => 'grid',
				'export_field7' => 'grid',
				'export_field8' => 'grid',
				'export_field9' => 'grid',
				'export_field10' => 'grid',
				'export_field11' => 'grid',
				'export_field12' => 'grid',
				'export_field13' => 'grid',
				'export_field14' => 'grid',
				'export_field15' => 'grid',
				'export_field16' => 'grid',
				'export_field17' => 'grid',
				'export_field18' => 'grid',
				'export_field19' => 'grid',
				'export_field20' => 'grid',
				'export_field21' => 'grid',
				'export_field22' => 'grid',
				'export_field23' => 'grid',
				'export_field24' => 'grid',
				'export_field25' => 'grid',
				'export_field26' => 'grid',
				'export_field27' => 'grid',
				'export_field28' => 'grid',
				'export_field29' => 'grid',
				'export_field30' => 'grid',
				'export_field31' => 'grid',
				'export_field32' => 'grid',
				'export_field33' => 'grid',
				'export_field34' => 'grid',
				'export_field35' => 'grid',
				'export_field36' => 'grid',
				'export_export' => 'footer',
				'export_cancel' => 'footer' 
			),
			'itemLocations' => array(
				 
			),
			'itemVisiblity' => array(
				 
			) 
		),
		'itemsByType' => array(
			'export_header' => array( 
				'export_header' 
			),
			'export_export' => array( 
				'export_export' 
			),
			'export_cancel' => array( 
				'export_cancel' 
			),
			'export_field' => array( 
				'export_field',
				'export_field1',
				'export_field2',
				'export_field3',
				'export_field4',
				'export_field5',
				'export_field6',
				'export_field7',
				'export_field8',
				'export_field9',
				'export_field10',
				'export_field11',
				'export_field12',
				'export_field13',
				'export_field14',
				'export_field15',
				'export_field16',
				'export_field17',
				'export_field18',
				'export_field19',
				'export_field20',
				'export_field21',
				'export_field22',
				'export_field23',
				'export_field24',
				'export_field25',
				'export_field26',
				'export_field27',
				'export_field28',
				'export_field29',
				'export_field30',
				'export_field31',
				'export_field32',
				'export_field33',
				'export_field34',
				'export_field35',
				'export_field36' 
			) 
		),
		'cellMaps' => array(
			 
		) 
	),
	'loginForm' => array(
		'loginForm' => 3 
	),
	'page' => array(
		'verticalBar' => false,
		'labeledButtons' => array(
			'update_records' => array(
				 
			),
			'print_pages' => array(
				 
			),
			'register_activate_message' => array(
				 
			),
			'details_found' => array(
				 
			) 
		),
		'hasCustomButtons' => false,
		'customButtons' => array( 
			 
		),
		'codeSnippets' => array( 
			 
		),
		'clickHandlerSnippets' => array( 
			 
		),
		'hasNotifications' => false,
		'menus' => array( 
			 
		),
		'calcTotalsFor' => 1,
		'hasCharts' => false 
	),
	'events' => array(
		'maps' => array( 
			 
		),
		'mapsData' => array(
			 
		),
		'buttons' => array( 
			 
		) 
	),
	'export' => array(
		'format' => 2,
		'selectFields' => false,
		'delimiter' => ',',
		'selectDelimiter' => false,
		'exportFileTypes' => array(
			'excel' => true,
			'word' => true,
			'csv' => true,
			'xml' => false 
		) 
	) 
);
			$pageArray = array(
	'id' => 'export',
	'type' => 'export',
	'layoutId' => 'first',
	'disabled' => false,
	'default' => 0,
	'forms' => array(
		'supertop' => array(
			'modelId' => 'panel-top',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'top' => array(
			'modelId' => 'export-header',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'export_header' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'grid' => array(
			'modelId' => 'export-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'export_field',
						'export_field1',
						'export_field2',
						'export_field3',
						'export_field4',
						'export_field5',
						'export_field6',
						'export_field7',
						'export_field8',
						'export_field9',
						'export_field10',
						'export_field11',
						'export_field12',
						'export_field13',
						'export_field14',
						'export_field15',
						'export_field16',
						'export_field17',
						'export_field18',
						'export_field19',
						'export_field20',
						'export_field21',
						'export_field22',
						'export_field23',
						'export_field24',
						'export_field25',
						'export_field26',
						'export_field27',
						'export_field28',
						'export_field29',
						'export_field30',
						'export_field31',
						'export_field32',
						'export_field33',
						'export_field34',
						'export_field35',
						'export_field36' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'footer' => array(
			'modelId' => 'export-footer',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						),
						array(
							'cell' => 'c2' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						 
					) 
				),
				'c2' => array(
					'model' => 'c2',
					'items' => array( 
						'export_export',
						'export_cancel' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		) 
	),
	'items' => array(
		'export_header' => array(
			'type' => 'export_header' 
		),
		'export_export' => array(
			'type' => 'export_export' 
		),
		'export_cancel' => array(
			'type' => 'export_cancel' 
		),
		'export_field' => array(
			'field' => 'id',
			'type' => 'export_field' 
		),
		'export_field1' => array(
			'field' => 'sales_detail_uuid',
			'type' => 'export_field' 
		),
		'export_field2' => array(
			'field' => 'sales_id',
			'type' => 'export_field' 
		),
		'export_field3' => array(
			'field' => 'line_no',
			'type' => 'export_field' 
		),
		'export_field4' => array(
			'field' => 'item_id',
			'type' => 'export_field' 
		),
		'export_field5' => array(
			'field' => 'item_code_snapshot',
			'type' => 'export_field' 
		),
		'export_field6' => array(
			'field' => 'description',
			'type' => 'export_field' 
		),
		'export_field7' => array(
			'field' => 'uom_code',
			'type' => 'export_field' 
		),
		'export_field8' => array(
			'field' => 'quantity',
			'type' => 'export_field' 
		),
		'export_field9' => array(
			'field' => 'unit_price',
			'type' => 'export_field' 
		),
		'export_field10' => array(
			'field' => 'gross_amount',
			'type' => 'export_field' 
		),
		'export_field11' => array(
			'field' => 'commercial_discount_rate',
			'type' => 'export_field' 
		),
		'export_field12' => array(
			'field' => 'commercial_discount_amount',
			'type' => 'export_field' 
		),
		'export_field13' => array(
			'field' => 'discount_type_id',
			'type' => 'export_field' 
		),
		'export_field14' => array(
			'field' => 'statutory_discount_rate',
			'type' => 'export_field' 
		),
		'export_field15' => array(
			'field' => 'statutory_discount_amount',
			'type' => 'export_field' 
		),
		'export_field16' => array(
			'field' => 'net_before_tax_amount',
			'type' => 'export_field' 
		),
		'export_field17' => array(
			'field' => 'vat_tax_code_id',
			'type' => 'export_field' 
		),
		'export_field18' => array(
			'field' => 'vat_rate_snapshot',
			'type' => 'export_field' 
		),
		'export_field19' => array(
			'field' => 'vatable_amount',
			'type' => 'export_field' 
		),
		'export_field20' => array(
			'field' => 'vat_exempt_amount',
			'type' => 'export_field' 
		),
		'export_field21' => array(
			'field' => 'zero_rated_amount',
			'type' => 'export_field' 
		),
		'export_field22' => array(
			'field' => 'vat_amount',
			'type' => 'export_field' 
		),
		'export_field23' => array(
			'field' => 'withholding_tax_code_id',
			'type' => 'export_field' 
		),
		'export_field24' => array(
			'field' => 'withholding_rate_snapshot',
			'type' => 'export_field' 
		),
		'export_field25' => array(
			'field' => 'withholding_amount',
			'type' => 'export_field' 
		),
		'export_field26' => array(
			'field' => 'line_total_amount',
			'type' => 'export_field' 
		),
		'export_field27' => array(
			'field' => 'base_line_total_amount',
			'type' => 'export_field' 
		),
		'export_field28' => array(
			'field' => 'warehouse_id',
			'type' => 'export_field' 
		),
		'export_field29' => array(
			'field' => 'department_id',
			'type' => 'export_field' 
		),
		'export_field30' => array(
			'field' => 'cost_center_id',
			'type' => 'export_field' 
		),
		'export_field31' => array(
			'field' => 'project_id',
			'type' => 'export_field' 
		),
		'export_field32' => array(
			'field' => 'project_task_id',
			'type' => 'export_field' 
		),
		'export_field33' => array(
			'field' => 'sales_agent_id',
			'type' => 'export_field' 
		),
		'export_field34' => array(
			'field' => 'campaign_id',
			'type' => 'export_field' 
		),
		'export_field35' => array(
			'field' => 'created_at',
			'type' => 'export_field' 
		),
		'export_field36' => array(
			'field' => 'updated_at',
			'type' => 'export_field' 
		) 
	),
	'version' => 13,
	'imageItem' => array(
		'type' => 'page_image' 
	),
	'imageBgColor' => '#f2f2f2',
	'controlsBgColor' => 'transparent',
	'imagePosition' => 'right',
	'listTotals' => 1,
	'title' => array(
		 
	),
	'cardStyle' => array(
		 
	),
	'exportFormat' => 2,
	'exportDelimiter' => ',',
	'exportSelectDelimiter' => false,
	'exportSelectFields' => false 
);
		?>