<?php
			$optionsArray = array(
	'details' => array(
		'supplier_bill_detail' => array(
			'displayPreview' => 1,
			'previewPageId' => 'list' 
		) 
	),
	'captcha' => array(
		'captcha' => false 
	),
	'fields' => array(
		'gridFields' => array( 
			'branch_id',
			'document_type',
			'supplier_invoice_no',
			'bill_date',
			'due_date',
			'supplier_id',
			'currency_code',
			'exchange_rate',
			'remarks',
			'supplier_name_snapshot',
			'supplier_tin_snapshot',
			'department_id',
			'cost_center_id',
			'project_id',
			'project_task_id',
			'subtotal_amount',
			'discount_amount',
			'input_vat_amount',
			'withholding_amount',
			'grand_total_amount' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'fieldItems' => array(
			'branch_id' => array( 
				'integrated_edit_field2' 
			),
			'document_type' => array( 
				'integrated_edit_field4' 
			),
			'supplier_invoice_no' => array( 
				'integrated_edit_field7' 
			),
			'bill_date' => array( 
				'integrated_edit_field8' 
			),
			'due_date' => array( 
				'integrated_edit_field9' 
			),
			'supplier_id' => array( 
				'integrated_edit_field10' 
			),
			'currency_code' => array( 
				'integrated_edit_field13' 
			),
			'exchange_rate' => array( 
				'integrated_edit_field15' 
			),
			'remarks' => array( 
				'integrated_edit_field29' 
			),
			'supplier_name_snapshot' => array( 
				'integrated_edit_field' 
			),
			'supplier_tin_snapshot' => array( 
				'integrated_edit_field1' 
			),
			'department_id' => array( 
				'integrated_edit_field3' 
			),
			'cost_center_id' => array( 
				'integrated_edit_field5' 
			),
			'project_id' => array( 
				'integrated_edit_field6' 
			),
			'project_task_id' => array( 
				'integrated_edit_field11' 
			),
			'subtotal_amount' => array( 
				'integrated_edit_field12' 
			),
			'discount_amount' => array( 
				'integrated_edit_field14' 
			),
			'input_vat_amount' => array( 
				'integrated_edit_field16' 
			),
			'withholding_amount' => array( 
				'integrated_edit_field17' 
			),
			'grand_total_amount' => array( 
				'integrated_edit_field18' 
			) 
		) 
	),
	'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' 
				),
				'grid' => array( 
					'bl_sb_supplier',
					'bl_sb_remarks',
					'bl_sb_advanced',
					'bl_sb_document',
					'bl_sb_currency',
					'bl_sb_summary',
					'details_preview' 
				),
				'section' => array( 
					'integrated_edit_field2',
					'integrated_edit_field4',
					'integrated_edit_field7',
					'integrated_edit_field8',
					'integrated_edit_field9' 
				),
				'section1' => array( 
					'integrated_edit_field10',
					'integrated_edit_field',
					'integrated_edit_field1' 
				),
				'section2' => array( 
					'integrated_edit_field13',
					'integrated_edit_field15' 
				),
				'section3' => array( 
					'integrated_edit_field29' 
				),
				'section4' => array( 
					'integrated_edit_field3',
					'integrated_edit_field5',
					'integrated_edit_field6',
					'integrated_edit_field11' 
				),
				'section5' => array( 
					'integrated_edit_field12',
					'integrated_edit_field14',
					'integrated_edit_field16',
					'integrated_edit_field17',
					'integrated_edit_field18' 
				) 
			),
			'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',
				'bl_sb_supplier' => 'grid',
				'bl_sb_remarks' => 'grid',
				'bl_sb_advanced' => 'grid',
				'bl_sb_document' => 'grid',
				'bl_sb_currency' => 'grid',
				'bl_sb_summary' => 'grid',
				'details_preview' => 'grid',
				'integrated_edit_field2' => 'section',
				'integrated_edit_field4' => 'section',
				'integrated_edit_field7' => 'section',
				'integrated_edit_field8' => 'section',
				'integrated_edit_field9' => 'section',
				'integrated_edit_field10' => 'section1',
				'integrated_edit_field' => 'section1',
				'integrated_edit_field1' => 'section1',
				'integrated_edit_field13' => 'section2',
				'integrated_edit_field15' => 'section2',
				'integrated_edit_field29' => 'section3',
				'integrated_edit_field3' => 'section4',
				'integrated_edit_field5' => 'section4',
				'integrated_edit_field6' => 'section4',
				'integrated_edit_field11' => 'section4',
				'integrated_edit_field12' => 'section5',
				'integrated_edit_field14' => 'section5',
				'integrated_edit_field16' => 'section5',
				'integrated_edit_field17' => 'section5',
				'integrated_edit_field18' => 'section5' 
			),
			'itemLocations' => array(
				'bl_sb_supplier' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'bl_sb_remarks' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'bl_sb_advanced' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'bl_sb_document' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'bl_sb_currency' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'bl_sb_summary' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'details_preview' => array(
					'location' => 'grid',
					'cellId' => 'c4' 
				),
				'integrated_edit_field2' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field4' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field7' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field8' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field9' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'integrated_edit_field10' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field1' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field13' => array(
					'location' => 'section2',
					'cellId' => 'c1' 
				),
				'integrated_edit_field15' => array(
					'location' => 'section2',
					'cellId' => 'c1' 
				),
				'integrated_edit_field29' => array(
					'location' => 'section3',
					'cellId' => 'c1' 
				),
				'integrated_edit_field3' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field5' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field6' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field11' => array(
					'location' => 'section4',
					'cellId' => 'c1' 
				),
				'integrated_edit_field12' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field14' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field16' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field17' => array(
					'location' => 'section5',
					'cellId' => 'c1' 
				),
				'integrated_edit_field18' => array(
					'location' => 'section5',
					'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_field4',
				'integrated_edit_field7',
				'integrated_edit_field8',
				'integrated_edit_field9',
				'integrated_edit_field10',
				'integrated_edit_field13',
				'integrated_edit_field15',
				'integrated_edit_field29',
				'integrated_edit_field',
				'integrated_edit_field1',
				'integrated_edit_field3',
				'integrated_edit_field5',
				'integrated_edit_field6',
				'integrated_edit_field11',
				'integrated_edit_field12',
				'integrated_edit_field14',
				'integrated_edit_field16',
				'integrated_edit_field17',
				'integrated_edit_field18' 
			),
			'details_preview' => array( 
				'details_preview' 
			),
			'section' => array( 
				'bl_sb_supplier',
				'bl_sb_document',
				'bl_sb_remarks',
				'bl_sb_currency',
				'bl_sb_advanced',
				'bl_sb_summary' 
			) 
		),
		'cellMaps' => array(
			'grid' => array(
				'cells' => array(
					'c3' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'bl_sb_supplier',
							'bl_sb_remarks',
							'bl_sb_advanced' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c' => array(
						'cols' => array( 
							1 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'bl_sb_document',
							'bl_sb_currency',
							'bl_sb_summary' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c4' => array(
						'cols' => array( 
							0,
							1 
						),
						'rows' => array( 
							1 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'details_preview' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c5' => array(
						'cols' => array( 
							0,
							1 
						),
						'rows' => array( 
							2 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							 
						),
						'fixedAtServer' => false,
						'fixedAtClient' => false 
					) 
				),
				'width' => 2,
				'height' => 3 
			),
			'section' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'integrated_edit_field2',
							'integrated_edit_field4',
							'integrated_edit_field7',
							'integrated_edit_field8',
							'integrated_edit_field9' 
						),
						'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_field10',
							'integrated_edit_field',
							'integrated_edit_field1' 
						),
						'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_field13',
							'integrated_edit_field15' 
						),
						'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_field29' 
						),
						'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_field3',
							'integrated_edit_field5',
							'integrated_edit_field6',
							'integrated_edit_field11' 
						),
						'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_field12',
							'integrated_edit_field14',
							'integrated_edit_field16',
							'integrated_edit_field17',
							'integrated_edit_field18' 
						),
						'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 
		),
		'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 
						) 
					) 
				),
				array(
					'cells' => array( 
						array(
							'cell' => 'c5',
							'colspan' => 2 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c3' => array(
					'model' => 'c3',
					'items' => array( 
						'bl_sb_supplier',
						'bl_sb_remarks',
						'bl_sb_advanced' 
					) 
				),
				'c' => array(
					'model' => 'c3',
					'items' => array( 
						'bl_sb_document',
						'bl_sb_currency',
						'bl_sb_summary' 
					) 
				),
				'c4' => array(
					'model' => 'c3',
					'items' => array( 
						'details_preview' 
					) 
				),
				'c5' => array(
					'model' => 'c3',
					'items' => array( 
						 
					) 
				) 
			),
			'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_field2',
						'integrated_edit_field4',
						'integrated_edit_field7',
						'integrated_edit_field8',
						'integrated_edit_field9' 
					) 
				) 
			),
			'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_field10',
						'integrated_edit_field',
						'integrated_edit_field1' 
					) 
				) 
			),
			'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_field13',
						'integrated_edit_field15' 
					) 
				) 
			),
			'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_field29' 
					) 
				) 
			),
			'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_field3',
						'integrated_edit_field5',
						'integrated_edit_field6',
						'integrated_edit_field11' 
					) 
				) 
			),
			'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_field12',
						'integrated_edit_field14',
						'integrated_edit_field16',
						'integrated_edit_field17',
						'integrated_edit_field18' 
					) 
				) 
			),
			'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',
			'icon' => array(
				'style' => 0 
			) 
		),
		'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' => 'supplier_bill',
				'type' => 3 
			) 
		),
		'integrated_edit_field4' => array(
			'field' => 'document_type',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field7' => array(
			'field' => 'supplier_invoice_no',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field8' => array(
			'field' => 'bill_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field9' => array(
			'field' => 'due_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field10' => array(
			'field' => 'supplier_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field13' => array(
			'field' => 'currency_code',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field15' => array(
			'field' => 'exchange_rate',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field29' => array(
			'field' => 'remarks',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'details_preview' => array(
			'type' => 'details_preview',
			'table' => 166290,
			'items' => array( 
				 
			),
			'popup' => false,
			'pageId' => 'list' 
		),
		'integrated_edit_field' => array(
			'field' => 'supplier_name_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field1' => array(
			'field' => 'supplier_tin_snapshot',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field3' => array(
			'field' => 'department_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'department_id',
				'table' => 'supplier_bill',
				'type' => 3 
			) 
		),
		'integrated_edit_field5' => array(
			'field' => 'cost_center_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'cost_center_id',
				'table' => 'supplier_bill',
				'type' => 3 
			) 
		),
		'integrated_edit_field6' => array(
			'field' => 'project_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'project_id',
				'table' => 'supplier_bill',
				'type' => 3 
			) 
		),
		'integrated_edit_field11' => array(
			'field' => 'project_task_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'project_task_id',
				'table' => 'supplier_bill',
				'type' => 3 
			) 
		),
		'integrated_edit_field12' => array(
			'field' => 'subtotal_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field14' => array(
			'field' => 'discount_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field16' => array(
			'field' => 'input_vat_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field17' => array(
			'field' => 'withholding_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field18' => array(
			'field' => 'grand_total_amount',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'bl_sb_supplier' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Supplier' 
			),
			'location' => 'section1',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_sb_document' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Document' 
			),
			'location' => 'section',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_sb_remarks' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Remarks' 
			),
			'location' => 'section3',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_sb_currency' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Currency' 
			),
			'location' => 'section2',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_sb_advanced' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Advanced / Dimensions  ' 
			),
			'location' => 'section4',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_sb_summary' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Bill Summary' 
			),
			'location' => 'section5',
			'bsStyle' => 'default',
			'panelType' => 3 
		) 
	),
	'version' => 13,
	'imageItem' => array(
		'type' => 'page_image' 
	),
	'imageBgColor' => '#f2f2f2',
	'controlsBgColor' => 'transparent',
	'imagePosition' => 'right',
	'pageCSS' => '/* ============================================================
   BuildLedger - Supplier Bill Uniform 2-Column Card Layout
   Purpose:
   - Make section cards visually aligned
   - Add spacing between boxes
   - Keep Supplier Bill Detail grid full-width at bottom
   ============================================================ */

/* Add breathing room between left and right columns */
.r-edit-form td,
.r-view-form td {
    padding-left: 14px !important;
    padding-right: 14px !important;
    vertical-align: top !important;
}

/* General card spacing */
[data-itemid="bl_sb_supplier"],
[data-itemid="bl_sb_document"],
[data-itemid="bl_sb_remarks"],
[data-itemid="bl_sb_currency"],
[data-itemid="bl_sb_advanced"],
[data-itemid="bl_sb_summary"] {
    margin-bottom: 20px !important;
}

/* General section panel style */
[data-itemid="bl_sb_supplier"] .panel,
[data-itemid="bl_sb_document"] .panel,
[data-itemid="bl_sb_remarks"] .panel,
[data-itemid="bl_sb_currency"] .panel,
[data-itemid="bl_sb_advanced"] .panel,
[data-itemid="bl_sb_summary"] .panel {
    border-radius: 6px !important;
    overflow: hidden !important;
}

/* Cleaner heading */
[data-itemid="bl_sb_supplier"] .panel-heading,
[data-itemid="bl_sb_document"] .panel-heading,
[data-itemid="bl_sb_remarks"] .panel-heading,
[data-itemid="bl_sb_currency"] .panel-heading,
[data-itemid="bl_sb_advanced"] .panel-heading,
[data-itemid="bl_sb_summary"] .panel-heading {
    padding: 11px 16px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* Cleaner body padding */
[data-itemid="bl_sb_supplier"] .panel-body,
[data-itemid="bl_sb_document"] .panel-body,
[data-itemid="bl_sb_remarks"] .panel-body,
[data-itemid="bl_sb_currency"] .panel-body,
[data-itemid="bl_sb_advanced"] .panel-body,
[data-itemid="bl_sb_summary"] .panel-body {
    padding: 18px 22px !important;
}

/* ROW 1: Supplier and Document should have same visual height */
[data-itemid="bl_sb_supplier"] .panel,
[data-itemid="bl_sb_document"] .panel {
    min-height: 270px !important;
}

/* ROW 2: Remarks and Currency should align */
[data-itemid="bl_sb_remarks"] .panel,
[data-itemid="bl_sb_currency"] .panel {
    min-height: 215px !important;
}

/* ROW 3: Advanced and Summary should align */
[data-itemid="bl_sb_advanced"] .panel,
[data-itemid="bl_sb_summary"] .panel {
    min-height: 265px !important;
}

/* Form field spacing */
.form-group {
    margin-bottom: 14px !important;
}

/* Make inputs look consistent */
.form-control {
    min-height: 34px !important;
}

/* Detail grid should not stick too close to the sections */
.panel-info,
[data-itemid*="supplier_bill_detail"] {
    margin-top: 24px !important;
}

/* Detail table clean spacing */
.table th,
.table td {
    vertical-align: middle !important;
    white-space: nowrap;
}',
	'listTotals' => 1,
	'title' => array(
		 
	),
	'cardStyle' => array(
		 
	) 
);
		?>