<?php
			$optionsArray = array(
	'master' => array(
		'sales' => array(
			'preview' => false 
		) 
	),
	'captcha' => array(
		'captcha' => false 
	),
	'fields' => array(
		'gridFields' => array( 
			'item_id',
			'description',
			'uom_code',
			'quantity',
			'unit_price',
			'commercial_discount_rate',
			'commercial_discount_amount',
			'discount_type_id',
			'statutory_discount_rate',
			'statutory_discount_amount',
			'vat_tax_code_id',
			'withholding_tax_code_id',
			'warehouse_id',
			'department_id',
			'cost_center_id',
			'project_id',
			'project_task_id',
			'sales_agent_id',
			'campaign_id',
			'vat_rate_snapshot' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'updateOnEditFields' => array( 
			 
		),
		'fieldItems' => array(
			'item_id' => array( 
				'integrated_edit_field3' 
			),
			'description' => array( 
				'integrated_edit_field5' 
			),
			'uom_code' => array( 
				'integrated_edit_field6' 
			),
			'quantity' => array( 
				'integrated_edit_field7' 
			),
			'unit_price' => array( 
				'integrated_edit_field8' 
			),
			'commercial_discount_rate' => array( 
				'integrated_edit_field10' 
			),
			'commercial_discount_amount' => array( 
				'integrated_edit_field11' 
			),
			'discount_type_id' => array( 
				'integrated_edit_field12' 
			),
			'statutory_discount_rate' => array( 
				'integrated_edit_field13' 
			),
			'statutory_discount_amount' => array( 
				'integrated_edit_field14' 
			),
			'vat_tax_code_id' => array( 
				'integrated_edit_field16' 
			),
			'withholding_tax_code_id' => array( 
				'integrated_edit_field22' 
			),
			'warehouse_id' => array( 
				'integrated_edit_field27' 
			),
			'department_id' => array( 
				'integrated_edit_field28' 
			),
			'cost_center_id' => array( 
				'integrated_edit_field29' 
			),
			'project_id' => array( 
				'integrated_edit_field30' 
			),
			'project_task_id' => array( 
				'integrated_edit_field31' 
			),
			'sales_agent_id' => array( 
				'integrated_edit_field32' 
			),
			'campaign_id' => array( 
				'integrated_edit_field33' 
			),
			'vat_rate_snapshot' => array( 
				'integrated_edit_field1' 
			) 
		) 
	),
	'pageLinks' => array(
		'edit' => false,
		'add' => false,
		'view' => true,
		'print' => false 
	),
	'layoutHelper' => array(
		'formItems' => array(
			'formItems' => array(
				'above-grid' => array( 
					'edit_message' 
				),
				'below-grid' => array( 
					'edit_save',
					'edit_back_list',
					'edit_close',
					'hamburger' 
				),
				'top' => array( 
					'edit_header' 
				),
				'grid' => array( 
					'section',
					'section1',
					'section3',
					'section4' 
				),
				'section' => array( 
					'integrated_edit_field3',
					'integrated_edit_field5',
					'integrated_edit_field6' 
				),
				'section1' => array( 
					'integrated_edit_field7',
					'integrated_edit_field8' 
				),
				'section3' => array( 
					'integrated_edit_field16',
					'integrated_edit_field1',
					'integrated_edit_field22' 
				),
				'section4' => array( 
					'integrated_edit_field27',
					'integrated_edit_field28',
					'integrated_edit_field29',
					'integrated_edit_field30',
					'integrated_edit_field31',
					'integrated_edit_field32',
					'integrated_edit_field33',
					'integrated_edit_field10',
					'integrated_edit_field11',
					'integrated_edit_field12',
					'integrated_edit_field13',
					'integrated_edit_field14' 
				) 
			),
			'formXtTags' => array(
				'above-grid' => array( 
					'message_block' 
				) 
			),
			'itemForms' => array(
				'edit_message' => 'above-grid',
				'edit_save' => 'below-grid',
				'edit_back_list' => 'below-grid',
				'edit_close' => 'below-grid',
				'hamburger' => 'below-grid',
				'edit_header' => 'top',
				'section' => 'grid',
				'section1' => 'grid',
				'section3' => 'grid',
				'section4' => 'grid',
				'integrated_edit_field3' => 'section',
				'integrated_edit_field5' => 'section',
				'integrated_edit_field6' => 'section',
				'integrated_edit_field7' => 'section1',
				'integrated_edit_field8' => 'section1',
				'integrated_edit_field16' => 'section3',
				'integrated_edit_field1' => 'section3',
				'integrated_edit_field22' => 'section3',
				'integrated_edit_field27' => 'section4',
				'integrated_edit_field28' => 'section4',
				'integrated_edit_field29' => 'section4',
				'integrated_edit_field30' => 'section4',
				'integrated_edit_field31' => 'section4',
				'integrated_edit_field32' => 'section4',
				'integrated_edit_field33' => 'section4',
				'integrated_edit_field10' => 'section4',
				'integrated_edit_field11' => 'section4',
				'integrated_edit_field12' => 'section4',
				'integrated_edit_field13' => 'section4',
				'integrated_edit_field14' => 'section4' 
			),
			'itemLocations' => array(
				'section' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'section1' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'section3' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'section4' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'integrated_edit_field3' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field5' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field6' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field7' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field8' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field16' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field1' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field22' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field27' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field28' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field29' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field30' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field31' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field32' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field33' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field10' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field11' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field12' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field13' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field14' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				) 
			),
			'itemVisiblity' => array(
				 
			) 
		),
		'itemsByType' => array(
			'edit_header' => array( 
				'edit_header' 
			),
			'hamburger' => array( 
				'hamburger' 
			),
			'edit_reset' => array( 
				'edit_reset' 
			),
			'edit_message' => array( 
				'edit_message' 
			),
			'edit_save' => array( 
				'edit_save' 
			),
			'edit_back_list' => array( 
				'edit_back_list' 
			),
			'edit_close' => array( 
				'edit_close' 
			),
			'integrated_edit_field' => array( 
				'integrated_edit_field3',
				'integrated_edit_field5',
				'integrated_edit_field6',
				'integrated_edit_field7',
				'integrated_edit_field8',
				'integrated_edit_field10',
				'integrated_edit_field11',
				'integrated_edit_field12',
				'integrated_edit_field13',
				'integrated_edit_field14',
				'integrated_edit_field16',
				'integrated_edit_field22',
				'integrated_edit_field27',
				'integrated_edit_field28',
				'integrated_edit_field29',
				'integrated_edit_field30',
				'integrated_edit_field31',
				'integrated_edit_field32',
				'integrated_edit_field33',
				'integrated_edit_field1' 
			),
			'edit_view' => array( 
				'edit_view' 
			),
			'section' => array( 
				'section',
				'section1',
				'section3',
				'section4' 
			) 
		),
		'cellMaps' => array(
			'grid' => array(
				'cells' => array(
					'c3' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'section',
							'section1',
							'section3' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c' => array(
						'cols' => array( 
							1 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'section4' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 2,
				'height' => 1 
			),
			'section' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field3',
							'integrated_edit_field5',
							'integrated_edit_field6' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'section1' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field7',
							'integrated_edit_field8' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'section3' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field16',
							'integrated_edit_field1',
							'integrated_edit_field22' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'section4' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field27',
							'integrated_edit_field28',
							'integrated_edit_field29',
							'integrated_edit_field30',
							'integrated_edit_field31',
							'integrated_edit_field32',
							'integrated_edit_field33',
							'integrated_edit_field10',
							'integrated_edit_field11',
							'integrated_edit_field12',
							'integrated_edit_field13',
							'integrated_edit_field14' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			) 
		) 
	),
	'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 
	),
	'misc' => array(
		'type' => 'edit',
		'breadcrumb' => false,
		'nextPrev' => false 
	),
	'events' => array(
		'maps' => array( 
			 
		),
		'mapsData' => array(
			 
		),
		'buttons' => array( 
			 
		) 
	),
	'edit' => array(
		'updateSelected' => false 
	) 
);
			$pageArray = array(
	'id' => 'edit',
	'type' => 'edit',
	'layoutId' => 'nomenu',
	'disabled' => false,
	'default' => 0,
	'forms' => array(
		'above-grid' => array(
			'modelId' => 'edit-above-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'edit_message' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'below-grid' => array(
			'modelId' => 'edit-below-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						),
						array(
							'cell' => 'c2' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'edit_save',
						'edit_back_list',
						'edit_close' 
					) 
				),
				'c2' => array(
					'model' => 'c2',
					'items' => array( 
						'hamburger' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'top' => array(
			'modelId' => 'edit-header',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'edit_header' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'grid' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c3' 
						),
						array(
							'cell' => 'c' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c3' => array(
					'model' => 'c3',
					'items' => array( 
						'section',
						'section1',
						'section3' 
					) 
				),
				'c' => array(
					'model' => 'c3',
					'items' => array( 
						'section4' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'section' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field3',
						'integrated_edit_field5',
						'integrated_edit_field6' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'section1' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field7',
						'integrated_edit_field8' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'section3' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field16',
						'integrated_edit_field1',
						'integrated_edit_field22' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'section4' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field27',
						'integrated_edit_field28',
						'integrated_edit_field29',
						'integrated_edit_field30',
						'integrated_edit_field31',
						'integrated_edit_field32',
						'integrated_edit_field33',
						'integrated_edit_field10',
						'integrated_edit_field11',
						'integrated_edit_field12',
						'integrated_edit_field13',
						'integrated_edit_field14' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		) 
	),
	'items' => array(
		'edit_header' => array(
			'type' => 'edit_header' 
		),
		'hamburger' => array(
			'type' => 'hamburger',
			'items' => array( 
				'edit_reset',
				'edit_view' 
			) 
		),
		'edit_reset' => array(
			'type' => 'edit_reset' 
		),
		'edit_message' => array(
			'type' => 'edit_message' 
		),
		'edit_save' => array(
			'type' => 'edit_save',
			'icon' => array(
				 
			) 
		),
		'edit_back_list' => array(
			'type' => 'edit_back_list' 
		),
		'edit_close' => array(
			'type' => 'edit_close' 
		),
		'integrated_edit_field3' => array(
			'field' => 'item_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field5' => array(
			'field' => 'description',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field6' => array(
			'field' => 'uom_code',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field7' => array(
			'field' => 'quantity',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field8' => array(
			'field' => 'unit_price',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field10' => array(
			'field' => 'commercial_discount_rate',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field11' => array(
			'field' => 'commercial_discount_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field12' => array(
			'field' => 'discount_type_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field13' => array(
			'field' => 'statutory_discount_rate',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field14' => array(
			'field' => 'statutory_discount_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field16' => array(
			'field' => 'vat_tax_code_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field22' => array(
			'field' => 'withholding_tax_code_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field27' => array(
			'field' => 'warehouse_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field28' => array(
			'field' => 'department_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field29' => array(
			'field' => 'cost_center_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field30' => array(
			'field' => 'project_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field31' => array(
			'field' => 'project_task_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field32' => array(
			'field' => 'sales_agent_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'integrated_edit_field33' => array(
			'field' => 'campaign_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		),
		'edit_view' => array(
			'type' => 'edit_view' 
		),
		'section' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Line Info' 
			),
			'location' => 'section',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'section1' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Quantity and Price' 
			),
			'location' => 'section1',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'section3' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Taxes' 
			),
			'location' => 'section3',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'section4' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Advanced Details' 
			),
			'location' => 'section4',
			'bsStyle' => 'default',
			'panelType' => 3,
			'initiallyClosed' => true 
		),
		'integrated_edit_field1' => array(
			'field' => 'vat_rate_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'updateOnEdit' => false 
		) 
	),
	'version' => 13,
	'imageItem' => array(
		'type' => 'page_image' 
	),
	'imageBgColor' => '#f2f2f2',
	'controlsBgColor' => 'transparent',
	'imagePosition' => 'right',
	'listTotals' => 1,
	'title' => array(
		 
	),
	'cardStyle' => array(
		 
	) 
);
		?>