<?php
			$optionsArray = array(
	'details' => array(
		'sales_detail' => array(
			'displayPreview' => 1,
			'previewPageId' => 'list' 
		) 
	),
	'captcha' => array(
		'captcha' => false 
	),
	'fields' => array(
		'gridFields' => array( 
			'branch_id',
			'transaction_type',
			'transaction_date',
			'due_date',
			'customer_id',
			'customer_name_snapshot',
			'customer_tin_snapshot',
			'customer_branch_code_snapshot',
			'payment_terms_days',
			'billing_address',
			'shipping_address',
			'currency_code',
			'exchange_rate',
			'remarks',
			'subtotal_amount',
			'commercial_discount_amount',
			'statutory_discount_amount',
			'vat_amount',
			'withholding_amount',
			'grand_total_amount' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'fieldItems' => array(
			'branch_id' => array( 
				'integrated_edit_field2' 
			),
			'transaction_type' => array( 
				'integrated_edit_field5' 
			),
			'transaction_date' => array( 
				'integrated_edit_field10' 
			),
			'due_date' => array( 
				'integrated_edit_field11' 
			),
			'customer_id' => array( 
				'integrated_edit_field12' 
			),
			'customer_name_snapshot' => array( 
				'integrated_edit_field13' 
			),
			'customer_tin_snapshot' => array( 
				'integrated_edit_field14' 
			),
			'customer_branch_code_snapshot' => array( 
				'integrated_edit_field15' 
			),
			'payment_terms_days' => array( 
				'integrated_edit_field16' 
			),
			'billing_address' => array( 
				'integrated_edit_field17' 
			),
			'shipping_address' => array( 
				'integrated_edit_field18' 
			),
			'currency_code' => array( 
				'integrated_edit_field19' 
			),
			'exchange_rate' => array( 
				'integrated_edit_field21' 
			),
			'remarks' => array( 
				'integrated_edit_field47' 
			),
			'subtotal_amount' => array( 
				'integrated_edit_field' 
			),
			'commercial_discount_amount' => array( 
				'integrated_edit_field1' 
			),
			'statutory_discount_amount' => array( 
				'integrated_edit_field3' 
			),
			'vat_amount' => array( 
				'integrated_edit_field4' 
			),
			'withholding_amount' => array( 
				'integrated_edit_field6' 
			),
			'grand_total_amount' => array( 
				'integrated_edit_field7' 
			) 
		) 
	),
	'pageLinks' => array(
		'edit' => false,
		'add' => false,
		'view' => false,
		'print' => false 
	),
	'layoutHelper' => array(
		'formItems' => array(
			'formItems' => array(
				'above-grid' => array( 
					'add_message' 
				),
				'below-grid' => array( 
					'add_save',
					'add_reset',
					'add_back_list',
					'add_cancel' 
				),
				'top' => array( 
					'add_header' 
				),
				'section' => array( 
					'integrated_edit_field2',
					'integrated_edit_field5',
					'integrated_edit_field10',
					'integrated_edit_field11' 
				),
				'section1' => array( 
					'integrated_edit_field12',
					'integrated_edit_field13',
					'integrated_edit_field14',
					'integrated_edit_field15',
					'integrated_edit_field16' 
				),
				'section2' => array( 
					'integrated_edit_field17',
					'integrated_edit_field18' 
				),
				'section3' => array( 
					'integrated_edit_field19',
					'integrated_edit_field21' 
				),
				'section6' => array( 
					'integrated_edit_field47' 
				),
				'grid' => array( 
					'sec_customer',
					'sec_address',
					'sec_remarks',
					'sec_document',
					'sec_currency',
					'sec_summary',
					'details_preview' 
				),
				'section4' => array( 
					'integrated_edit_field',
					'integrated_edit_field1',
					'integrated_edit_field3',
					'integrated_edit_field4',
					'integrated_edit_field6',
					'integrated_edit_field7' 
				) 
			),
			'formXtTags' => array(
				'above-grid' => array( 
					'message_block' 
				) 
			),
			'itemForms' => array(
				'add_message' => 'above-grid',
				'add_save' => 'below-grid',
				'add_reset' => 'below-grid',
				'add_back_list' => 'below-grid',
				'add_cancel' => 'below-grid',
				'add_header' => 'top',
				'integrated_edit_field2' => 'section',
				'integrated_edit_field5' => 'section',
				'integrated_edit_field10' => 'section',
				'integrated_edit_field11' => 'section',
				'integrated_edit_field12' => 'section1',
				'integrated_edit_field13' => 'section1',
				'integrated_edit_field14' => 'section1',
				'integrated_edit_field15' => 'section1',
				'integrated_edit_field16' => 'section1',
				'integrated_edit_field17' => 'section2',
				'integrated_edit_field18' => 'section2',
				'integrated_edit_field19' => 'section3',
				'integrated_edit_field21' => 'section3',
				'integrated_edit_field47' => 'section6',
				'sec_customer' => 'grid',
				'sec_address' => 'grid',
				'sec_remarks' => 'grid',
				'sec_document' => 'grid',
				'sec_currency' => 'grid',
				'sec_summary' => 'grid',
				'details_preview' => 'grid',
				'integrated_edit_field' => 'section4',
				'integrated_edit_field1' => 'section4',
				'integrated_edit_field3' => 'section4',
				'integrated_edit_field4' => 'section4',
				'integrated_edit_field6' => 'section4',
				'integrated_edit_field7' => 'section4' 
			),
			'itemLocations' => array(
				'integrated_edit_field2' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field5' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field10' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field11' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field12' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field13' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field14' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field15' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field16' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field17' => array(
					'location' => 'section2',
					'cellId' => 'c1' 
				),
				'integrated_edit_field18' => array(
					'location' => 'section2',
					'cellId' => 'c1' 
				),
				'integrated_edit_field19' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field21' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field47' => array(
					'location' => 'section6',
					'cellId' => 'c1' 
				),
				'sec_customer' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'sec_address' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'sec_remarks' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'sec_document' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'sec_currency' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'sec_summary' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'details_preview' => array(
					'location' => 'grid',
					'cellId' => 'c4' 
				),
				'integrated_edit_field' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field1' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field3' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field4' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field6' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field7' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				) 
			),
			'itemVisiblity' => array(
				 
			) 
		),
		'itemsByType' => array(
			'add_header' => array( 
				'add_header' 
			),
			'add_back_list' => array( 
				'add_back_list' 
			),
			'add_cancel' => array( 
				'add_cancel' 
			),
			'add_message' => array( 
				'add_message' 
			),
			'add_save' => array( 
				'add_save' 
			),
			'add_reset' => array( 
				'add_reset' 
			),
			'integrated_edit_field' => array( 
				'integrated_edit_field2',
				'integrated_edit_field5',
				'integrated_edit_field10',
				'integrated_edit_field11',
				'integrated_edit_field12',
				'integrated_edit_field13',
				'integrated_edit_field14',
				'integrated_edit_field15',
				'integrated_edit_field16',
				'integrated_edit_field17',
				'integrated_edit_field18',
				'integrated_edit_field19',
				'integrated_edit_field21',
				'integrated_edit_field47',
				'integrated_edit_field',
				'integrated_edit_field1',
				'integrated_edit_field3',
				'integrated_edit_field4',
				'integrated_edit_field6',
				'integrated_edit_field7' 
			),
			'details_preview' => array( 
				'details_preview' 
			),
			'section' => array( 
				'sec_customer',
				'sec_document',
				'sec_address',
				'sec_currency',
				'sec_remarks',
				'sec_summary' 
			) 
		),
		'cellMaps' => array(
			'section' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field2',
							'integrated_edit_field5',
							'integrated_edit_field10',
							'integrated_edit_field11' 
						),
						'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_field12',
							'integrated_edit_field13',
							'integrated_edit_field14',
							'integrated_edit_field15',
							'integrated_edit_field16' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'section2' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field17',
							'integrated_edit_field18' 
						),
						'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_field19',
							'integrated_edit_field21' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'section6' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field47' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'grid' => array(
				'cells' => array(
					'c3' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'sec_customer',
							'sec_address',
							'sec_remarks' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c' => array(
						'cols' => array( 
							1 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'sec_document',
							'sec_currency',
							'sec_summary' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c4' => array(
						'cols' => array( 
							0,
							1 
						),
						'rows' => array( 
							1 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'details_preview' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 2,
				'height' => 2 
			),
			'section4' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field',
							'integrated_edit_field1',
							'integrated_edit_field3',
							'integrated_edit_field4',
							'integrated_edit_field6',
							'integrated_edit_field7' 
						),
						'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' => 'add',
		'breadcrumb' => false 
	),
	'events' => array(
		'maps' => array( 
			 
		),
		'mapsData' => array(
			 
		),
		'buttons' => array( 
			 
		) 
	) 
);
			$pageArray = array(
	'id' => 'add',
	'type' => 'add',
	'layoutId' => 'nomenu',
	'disabled' => false,
	'default' => 0,
	'forms' => array(
		'above-grid' => array(
			'modelId' => 'add-above-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'add_message' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'below-grid' => array(
			'modelId' => 'add-below-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'add_save',
						'add_reset',
						'add_back_list',
						'add_cancel' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'top' => array(
			'modelId' => 'add-header',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'add_header' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'section' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1',
							'rowspan' => 1 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field2',
						'integrated_edit_field5',
						'integrated_edit_field10',
						'integrated_edit_field11' 
					) 
				) 
			),
			'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_field12',
						'integrated_edit_field13',
						'integrated_edit_field14',
						'integrated_edit_field15',
						'integrated_edit_field16' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'section2' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field17',
						'integrated_edit_field18' 
					) 
				) 
			),
			'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_field19',
						'integrated_edit_field21' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'section6' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field47' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'grid' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c3',
							'colspan' => 1 
						),
						array(
							'cell' => 'c' 
						) 
					),
					'section' => '' 
				),
				array(
					'section' => '',
					'cells' => array( 
						array(
							'cell' => 'c4',
							'colspan' => 2 
						) 
					) 
				) 
			),
			'cells' => array(
				'c3' => array(
					'model' => 'c3',
					'items' => array( 
						'sec_customer',
						'sec_address',
						'sec_remarks' 
					) 
				),
				'c' => array(
					'model' => 'c3',
					'items' => array( 
						'sec_document',
						'sec_currency',
						'sec_summary' 
					) 
				),
				'c4' => array(
					'model' => 'c3',
					'items' => array( 
						'details_preview' 
					),
					'align' => 'center' 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 2,
			'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_field',
						'integrated_edit_field1',
						'integrated_edit_field3',
						'integrated_edit_field4',
						'integrated_edit_field6',
						'integrated_edit_field7' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		) 
	),
	'items' => array(
		'add_header' => array(
			'type' => 'add_header' 
		),
		'add_back_list' => array(
			'type' => 'add_back_list' 
		),
		'add_cancel' => array(
			'type' => 'add_cancel' 
		),
		'add_message' => array(
			'type' => 'add_message' 
		),
		'add_save' => array(
			'type' => 'add_save' 
		),
		'add_reset' => array(
			'type' => 'add_reset' 
		),
		'integrated_edit_field2' => array(
			'field' => 'branch_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'branch_id',
				'table' => 'sales',
				'type' => 3 
			) 
		),
		'integrated_edit_field5' => array(
			'field' => 'transaction_type',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field10' => array(
			'field' => 'transaction_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field11' => array(
			'field' => 'due_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field12' => array(
			'field' => 'customer_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'customer_id',
				'table' => 'sales',
				'type' => 3 
			) 
		),
		'integrated_edit_field13' => array(
			'field' => 'customer_name_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'customer_name_snapshot',
				'table' => 'sales',
				'type' => 3 
			) 
		),
		'integrated_edit_field14' => array(
			'field' => 'customer_tin_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'customer_tin_snapshot',
				'table' => 'sales',
				'type' => 3 
			) 
		),
		'integrated_edit_field15' => array(
			'field' => 'customer_branch_code_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'customer_branch_code_snapshot',
				'table' => 'sales',
				'type' => 3 
			) 
		),
		'integrated_edit_field16' => array(
			'field' => 'payment_terms_days',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'payment_terms_days',
				'table' => 'sales',
				'type' => 3 
			) 
		),
		'integrated_edit_field17' => array(
			'field' => 'billing_address',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field18' => array(
			'field' => 'shipping_address',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field19' => array(
			'field' => 'currency_code',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'currency_code',
				'table' => 'sales',
				'type' => 3 
			) 
		),
		'integrated_edit_field21' => array(
			'field' => 'exchange_rate',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field47' => array(
			'field' => 'remarks',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field' => array(
			'field' => 'subtotal_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field1' => array(
			'field' => 'commercial_discount_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field3' => array(
			'field' => 'statutory_discount_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field4' => array(
			'field' => 'vat_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field6' => array(
			'field' => 'withholding_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field7' => array(
			'field' => 'grand_total_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'details_preview' => array(
			'type' => 'details_preview',
			'table' => 162680,
			'items' => array( 
				 
			),
			'popup' => false,
			'pageId' => 'list' 
		),
		'sec_customer' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Customer' 
			),
			'location' => 'section1',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_document' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Document' 
			),
			'location' => 'section',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_address' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Address' 
			),
			'location' => 'section2',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_currency' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Currency' 
			),
			'location' => 'section3',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_remarks' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Remarks' 
			),
			'location' => 'section6',
			'bsStyle' => 'default',
			'panelType' => 3,
			'customCSS' => '/* ============================================================
   Sales Invoice Form Layout
   Make the left and right boxes cleaner and aligned
============================================================ */

[data-itemid="sec_customer"],
[data-itemid="sec_document"],
[data-itemid="sec_address"],
[data-itemid="sec_currency"],
[data-itemid="sec_remarks"],
[data-itemid="sec_summary"] {
    margin-bottom: 18px !important;
}

/* Row 1: Customer and Document should align */
[data-itemid="sec_customer"],
[data-itemid="sec_document"] {
    min-height: 445px !important;
}

/* Row 2: Address and Currency should align */
[data-itemid="sec_address"],
[data-itemid="sec_currency"] {
    min-height: 315px !important;
}

/* Row 3: Remarks and Summary should align */
[data-itemid="sec_remarks"],
[data-itemid="sec_summary"] {
    min-height: 230px !important;
}

/* Add cleaner spacing inside panels */
[data-itemid="sec_customer"] .panel-body,
[data-itemid="sec_document"] .panel-body,
[data-itemid="sec_address"] .panel-body,
[data-itemid="sec_currency"] .panel-body,
[data-itemid="sec_remarks"] .panel-body,
[data-itemid="sec_summary"] .panel-body {
    padding: 22px 28px !important;
}

/* Make form controls consistent width */
[data-pageid] input,
[data-pageid] select,
[data-pageid] textarea {
    max-width: 100%;
}

/* Detail grid should stay full width */
[data-itemid*="sales_detail"] {
    clear: both !important;
    width: 100% !important;
    margin-top: 20px !important;
}' 
		),
		'sec_summary' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Invoice Summary' 
			),
			'location' => 'section4',
			'bsStyle' => 'default',
			'panelType' => 3 
		) 
	),
	'version' => 13,
	'imageItem' => array(
		'type' => 'page_image' 
	),
	'imageBgColor' => '#f2f2f2',
	'controlsBgColor' => 'transparent',
	'imagePosition' => 'right',
	'pageCSS' => '/* ============================================================
   BuildLedger Sales Form - Uniform Sections + Better Spacing
   Use on:
   sales Add page Custom CSS
   sales Edit page Custom CSS
   sales View page Custom CSS
   ============================================================ */

/* Main panels */
.panel {
    margin-bottom: 22px !important;
    border-radius: 4px !important;
    border: 1px solid #dddddd !important;
    box-shadow: none !important;
}

/* Panel title */
.panel-heading {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
    background: linear-gradient(#f7f7f7, #e9e9e9) !important;
}

/* Panel body */
.panel-body {
    padding: 20px 28px !important;
}

/* Field spacing inside section */
.form-group {
    margin-bottom: 14px !important;
}

/* Inputs */
.form-control {
    max-width: 100% !important;
}

textarea.form-control {
    min-height: 92px !important;
}

/* Add space between left and right columns */
.rnr-c,
.bs-gridcell,
[data-cellid],
[data-pageid] .bs-gridcell {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

/* Avoid first and last columns touching outer edge */
.rnr-c:first-child,
.bs-gridcell:first-child {
    padding-left: 0 !important;
}

.rnr-c:last-child,
.bs-gridcell:last-child {
    padding-right: 0 !important;
}

/* Details grid container */
[data-itemtype="details_preview"],
[data-itemtype="details"],
.r-details-wrapper,
.details-grid {
    margin-top: 28px !important;
    margin-bottom: 22px !important;
}

/* Details grid panel */
[data-itemtype="details_preview"] .panel,
[data-itemtype="details"] .panel,
.r-details-wrapper .panel {
    margin-top: 12px !important;
}

/* Details grid table */
.rnr-gridtable,
.table {
    margin-top: 10px !important;
}

/* Details table cells */
.rnr-gridtable th,
.rnr-gridtable td,
.table th,
.table td {
    padding: 8px 10px !important;
    vertical-align: middle !important;
}

/* Computed amount columns should look readonly */
input[name*="gross_amount"],
input[name*="vat_amount"],
input[name*="line_total_amount"],
input[name*="withholding_amount"],
input[name*="line_no"] {
    background-color: #f7f7f7 !important;
}

/* Improve page width spacing */
.container,
.bs-pagepanel {
    max-width: 1280px !important;
}

/* Mobile fallback */
@media (max-width: 991px) {
    .rnr-c,
    .bs-gridcell,
    [data-cellid],
    [data-pageid] .bs-gridcell {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .panel {
        margin-bottom: 18px !important;
    }
}',
	'listTotals' => 1,
	'title' => array(
		 
	),
	'cardStyle' => array(
		 
	) 
);
		?>