<?php
			$optionsArray = array(
	'pdf' => array(
		'pdfView' => false 
	),
	'details' => array(
		'sales_detail' => array(
			'displayPreview' => 1,
			'previewPageId' => 'list' 
		) 
	),
	'fields' => array(
		'gridFields' => array( 
			'branch_id',
			'transaction_type',
			'document_no',
			'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',
			'subtotal_amount',
			'commercial_discount_amount',
			'statutory_discount_amount',
			'vat_amount',
			'withholding_amount',
			'grand_total_amount',
			'document_status',
			'posting_status',
			'remarks' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'fieldItems' => array(
			'branch_id' => array( 
				'integrated_edit_field3' 
			),
			'transaction_type' => array( 
				'integrated_edit_field6' 
			),
			'document_no' => array( 
				'integrated_edit_field8' 
			),
			'transaction_date' => array( 
				'integrated_edit_field11' 
			),
			'due_date' => array( 
				'integrated_edit_field12' 
			),
			'customer_id' => array( 
				'integrated_edit_field13' 
			),
			'customer_name_snapshot' => array( 
				'integrated_edit_field14' 
			),
			'customer_tin_snapshot' => array( 
				'integrated_edit_field15' 
			),
			'customer_branch_code_snapshot' => array( 
				'integrated_edit_field16' 
			),
			'payment_terms_days' => array( 
				'integrated_edit_field17' 
			),
			'billing_address' => array( 
				'integrated_edit_field18' 
			),
			'shipping_address' => array( 
				'integrated_edit_field19' 
			),
			'currency_code' => array( 
				'integrated_edit_field20' 
			),
			'exchange_rate' => array( 
				'integrated_edit_field22' 
			),
			'subtotal_amount' => array( 
				'integrated_edit_field29' 
			),
			'commercial_discount_amount' => array( 
				'integrated_edit_field30' 
			),
			'statutory_discount_amount' => array( 
				'integrated_edit_field31' 
			),
			'vat_amount' => array( 
				'integrated_edit_field35' 
			),
			'withholding_amount' => array( 
				'integrated_edit_field36' 
			),
			'grand_total_amount' => array( 
				'integrated_edit_field37' 
			),
			'document_status' => array( 
				'integrated_edit_field44' 
			),
			'posting_status' => array( 
				'integrated_edit_field45' 
			),
			'remarks' => array( 
				'integrated_edit_field48' 
			) 
		) 
	),
	'pageLinks' => array(
		'edit' => true,
		'add' => false,
		'view' => false,
		'print' => false 
	),
	'layoutHelper' => array(
		'formItems' => array(
			'formItems' => array(
				'above-grid' => array( 
					'custom_button',
					'custom_button1' 
				),
				'below-grid' => array( 
					'view_back_list',
					'view_close',
					'hamburger' 
				),
				'top' => array( 
					'view_header' 
				),
				'grid' => array( 
					'sec_customer',
					'sec_address',
					'sec_remarks',
					'sec_document',
					'sec_currency',
					'sec_summary',
					'details_preview' 
				),
				'section' => array( 
					'integrated_edit_field13',
					'integrated_edit_field14',
					'integrated_edit_field15',
					'integrated_edit_field16',
					'integrated_edit_field17' 
				),
				'section1' => array( 
					'integrated_edit_field18',
					'integrated_edit_field19' 
				),
				'section2' => array( 
					'integrated_edit_field48' 
				),
				'section3' => array( 
					'integrated_edit_field8',
					'integrated_edit_field3',
					'integrated_edit_field6',
					'integrated_edit_field11',
					'integrated_edit_field12' 
				),
				'section4' => array( 
					'integrated_edit_field20',
					'integrated_edit_field22' 
				),
				'section5' => array( 
					'integrated_edit_field29',
					'integrated_edit_field30',
					'integrated_edit_field31',
					'integrated_edit_field35',
					'integrated_edit_field36',
					'integrated_edit_field37',
					'integrated_edit_field44',
					'integrated_edit_field45' 
				) 
			),
			'formXtTags' => array(
				 
			),
			'itemForms' => array(
				'custom_button' => 'above-grid',
				'custom_button1' => 'above-grid',
				'view_back_list' => 'below-grid',
				'view_close' => 'below-grid',
				'hamburger' => 'below-grid',
				'view_header' => 'top',
				'sec_customer' => 'grid',
				'sec_address' => 'grid',
				'sec_remarks' => 'grid',
				'sec_document' => 'grid',
				'sec_currency' => 'grid',
				'sec_summary' => 'grid',
				'details_preview' => 'grid',
				'integrated_edit_field13' => 'section',
				'integrated_edit_field14' => 'section',
				'integrated_edit_field15' => 'section',
				'integrated_edit_field16' => 'section',
				'integrated_edit_field17' => 'section',
				'integrated_edit_field18' => 'section1',
				'integrated_edit_field19' => 'section1',
				'integrated_edit_field48' => 'section2',
				'integrated_edit_field8' => 'section3',
				'integrated_edit_field3' => 'section3',
				'integrated_edit_field6' => 'section3',
				'integrated_edit_field11' => 'section3',
				'integrated_edit_field12' => 'section3',
				'integrated_edit_field20' => 'section4',
				'integrated_edit_field22' => 'section4',
				'integrated_edit_field29' => 'section5',
				'integrated_edit_field30' => 'section5',
				'integrated_edit_field31' => 'section5',
				'integrated_edit_field35' => 'section5',
				'integrated_edit_field36' => 'section5',
				'integrated_edit_field37' => 'section5',
				'integrated_edit_field44' => 'section5',
				'integrated_edit_field45' => 'section5' 
			),
			'itemLocations' => array(
				'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_field13' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field14' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field15' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field16' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field17' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field18' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field19' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field48' => array(
					'location' => 'section2',
					'cellId' => 'c1' 
				),
				'integrated_edit_field8' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field3' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field6' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field11' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field12' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field20' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field22' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field29' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field30' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field31' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field35' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field36' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field37' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field44' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field45' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				) 
			),
			'itemVisiblity' => array(
				 
			) 
		),
		'itemsByType' => array(
			'view_header' => array( 
				'view_header' 
			),
			'view_back_list' => array( 
				'view_back_list' 
			),
			'view_close' => array( 
				'view_close' 
			),
			'integrated_edit_field' => array( 
				'integrated_edit_field3',
				'integrated_edit_field6',
				'integrated_edit_field8',
				'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_field20',
				'integrated_edit_field22',
				'integrated_edit_field29',
				'integrated_edit_field30',
				'integrated_edit_field31',
				'integrated_edit_field35',
				'integrated_edit_field36',
				'integrated_edit_field37',
				'integrated_edit_field44',
				'integrated_edit_field45',
				'integrated_edit_field48' 
			),
			'hamburger' => array( 
				'hamburger' 
			),
			'view_edit' => array( 
				'view_edit' 
			),
			'custom_button' => array( 
				'custom_button',
				'custom_button1' 
			),
			'details_preview' => array( 
				'details_preview' 
			),
			'section' => array( 
				'sec_address',
				'sec_customer',
				'sec_document',
				'sec_currency',
				'sec_remarks',
				'sec_summary' 
			) 
		),
		'cellMaps' => array(
			'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 
			),
			'section' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field13',
							'integrated_edit_field14',
							'integrated_edit_field15',
							'integrated_edit_field16',
							'integrated_edit_field17' 
						),
						'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_field18',
							'integrated_edit_field19' 
						),
						'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_field48' 
						),
						'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_field8',
							'integrated_edit_field3',
							'integrated_edit_field6',
							'integrated_edit_field11',
							'integrated_edit_field12' 
						),
						'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_field20',
							'integrated_edit_field22' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'section5' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field29',
							'integrated_edit_field30',
							'integrated_edit_field31',
							'integrated_edit_field35',
							'integrated_edit_field36',
							'integrated_edit_field37',
							'integrated_edit_field44',
							'integrated_edit_field45' 
						),
						'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' => true,
		'customButtons' => array( 
			162613,
			162627 
		),
		'codeSnippets' => array( 
			 
		),
		'clickHandlerSnippets' => array( 
			 
		),
		'hasNotifications' => false,
		'menus' => array( 
			 
		),
		'calcTotalsFor' => 1,
		'hasCharts' => false 
	),
	'misc' => array(
		'type' => 'view',
		'breadcrumb' => false,
		'nextPrev' => false 
	),
	'events' => array(
		'maps' => array( 
			 
		),
		'mapsData' => array(
			 
		),
		'buttons' => array( 
			162613,
			162627 
		) 
	) 
);
			$pageArray = array(
	'id' => 'view',
	'type' => 'view',
	'layoutId' => 'nomenu',
	'disabled' => false,
	'default' => 0,
	'forms' => array(
		'above-grid' => array(
			'modelId' => 'view-above-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1',
							'colspan' => 2 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'custom_button',
						'custom_button1' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'below-grid' => array(
			'modelId' => 'view-below-grid',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						),
						array(
							'cell' => 'c2' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'view_back_list',
						'view_close' 
					) 
				),
				'c2' => array(
					'model' => 'c2',
					'items' => array( 
						'hamburger' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'top' => array(
			'modelId' => 'view-header',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'view_header' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'recsPerRow' => 1 
		),
		'grid' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c3' 
						),
						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' 
					) 
				) 
			),
			'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_field13',
						'integrated_edit_field14',
						'integrated_edit_field15',
						'integrated_edit_field16',
						'integrated_edit_field17' 
					) 
				) 
			),
			'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_field18',
						'integrated_edit_field19' 
					) 
				) 
			),
			'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_field48' 
					) 
				) 
			),
			'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_field8',
						'integrated_edit_field3',
						'integrated_edit_field6',
						'integrated_edit_field11',
						'integrated_edit_field12' 
					) 
				) 
			),
			'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_field20',
						'integrated_edit_field22' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		),
		'section5' => array(
			'modelId' => 'simple-edit',
			'grid' => array( 
				array(
					'cells' => array( 
						array(
							'cell' => 'c1' 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c1' => array(
					'model' => 'c1',
					'items' => array( 
						'integrated_edit_field29',
						'integrated_edit_field30',
						'integrated_edit_field31',
						'integrated_edit_field35',
						'integrated_edit_field36',
						'integrated_edit_field37',
						'integrated_edit_field44',
						'integrated_edit_field45' 
					) 
				) 
			),
			'deferredItems' => array( 
				 
			),
			'columnCount' => 1,
			'inlineLabels' => false,
			'separateLabels' => false 
		) 
	),
	'items' => array(
		'view_header' => array(
			'type' => 'view_header' 
		),
		'view_back_list' => array(
			'type' => 'view_back_list' 
		),
		'view_close' => array(
			'type' => 'view_close' 
		),
		'integrated_edit_field3' => array(
			'field' => 'branch_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field6' => array(
			'field' => 'transaction_type',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field8' => array(
			'field' => 'document_no',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field11' => array(
			'field' => 'transaction_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field12' => array(
			'field' => 'due_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field13' => array(
			'field' => 'customer_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field14' => array(
			'field' => 'customer_name_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field15' => array(
			'field' => 'customer_tin_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field16' => array(
			'field' => 'customer_branch_code_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field17' => array(
			'field' => 'payment_terms_days',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field18' => array(
			'field' => 'billing_address',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field19' => array(
			'field' => 'shipping_address',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field20' => array(
			'field' => 'currency_code',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field22' => array(
			'field' => 'exchange_rate',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field29' => array(
			'field' => 'subtotal_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field30' => array(
			'field' => 'commercial_discount_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field31' => array(
			'field' => 'statutory_discount_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field35' => array(
			'field' => 'vat_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field36' => array(
			'field' => 'withholding_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field37' => array(
			'field' => 'grand_total_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field44' => array(
			'field' => 'document_status',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field45' => array(
			'field' => 'posting_status',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field48' => array(
			'field' => 'remarks',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'hamburger' => array(
			'type' => 'hamburger',
			'items' => array( 
				'view_edit' 
			) 
		),
		'view_edit' => array(
			'type' => 'view_edit' 
		),
		'custom_button' => array(
			'type' => 'custom_button',
			'eventGid' => 162613,
			'label' => array(
				'text' => 'post_sales_invoice',
				'type' => 0 
			),
			'icon' => array(
				'style' => 0 
			) 
		),
		'custom_button1' => array(
			'type' => 'custom_button',
			'eventGid' => 162627,
			'label' => array(
				'text' => 'reverse_sales_invoice',
				'type' => 0 
			),
			'icon' => array(
				'style' => 0 
			) 
		),
		'details_preview' => array(
			'type' => 'details_preview',
			'table' => 162680,
			'items' => array( 
				 
			),
			'popup' => false,
			'pageId' => 'list' 
		),
		'sec_address' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Address' 
			),
			'location' => 'section1',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_customer' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Customer' 
			),
			'location' => 'section',
			'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_document' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Document' 
			),
			'location' => 'section3',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_currency' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Currency' 
			),
			'location' => 'section4',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_remarks' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Remarks' 
			),
			'location' => 'section2',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'sec_summary' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Invoice Summary' 
			),
			'location' => 'section5',
			'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(
		 
	) 
);
		?>