<?php
			$optionsArray = array(
	'details' => array(
		'journal_entry_detail' => array(
			'displayPreview' => 1,
			'previewPageId' => 'list' 
		) 
	),
	'captcha' => array(
		'captcha' => false 
	),
	'fields' => array(
		'gridFields' => array( 
			'branch_id',
			'accounting_period_id',
			'journal_date',
			'journal_type',
			'currency_code',
			'exchange_rate',
			'description' 
		),
		'searchRequiredFields' => array( 
			 
		),
		'searchPanelFields' => array( 
			 
		),
		'fieldItems' => array(
			'branch_id' => array( 
				'integrated_edit_field2' 
			),
			'accounting_period_id' => array( 
				'integrated_edit_field3' 
			),
			'journal_date' => array( 
				'integrated_edit_field5' 
			),
			'journal_type' => array( 
				'integrated_edit_field6' 
			),
			'currency_code' => array( 
				'integrated_edit_field10' 
			),
			'exchange_rate' => array( 
				'integrated_edit_field11' 
			),
			'description' => array( 
				'integrated_edit_field12' 
			) 
		) 
	),
	'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_je_document',
					'bl_je_description',
					'bl_je_currency',
					'bl_je_summary',
					'details_preview' 
				),
				'section' => array( 
					'integrated_edit_field2',
					'integrated_edit_field3',
					'integrated_edit_field5',
					'integrated_edit_field6' 
				),
				'section1' => array( 
					'integrated_edit_field12' 
				),
				'section2' => array( 
					'integrated_edit_field10',
					'integrated_edit_field11' 
				),
				'section3' => array( 
					 
				) 
			),
			'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_je_document' => 'grid',
				'bl_je_description' => 'grid',
				'bl_je_currency' => 'grid',
				'bl_je_summary' => 'grid',
				'details_preview' => 'grid',
				'integrated_edit_field2' => 'section',
				'integrated_edit_field3' => 'section',
				'integrated_edit_field5' => 'section',
				'integrated_edit_field6' => 'section',
				'integrated_edit_field12' => 'section1',
				'integrated_edit_field10' => 'section2',
				'integrated_edit_field11' => 'section2' 
			),
			'itemLocations' => array(
				'bl_je_document' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'bl_je_description' => array(
					'location' => 'grid',
					'cellId' => 'c3' 
				),
				'bl_je_currency' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'bl_je_summary' => array(
					'location' => 'grid',
					'cellId' => 'c' 
				),
				'details_preview' => array(
					'location' => 'grid',
					'cellId' => 'c4' 
				),
				'integrated_edit_field2' => array(
					'location' => 'section',
					'cellId' => 'c1' 
				),
				'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_field12' => array(
					'location' => 'section1',
					'cellId' => 'c1' 
				),
				'integrated_edit_field10' => array(
					'location' => 'section2',
					'cellId' => 'c1' 
				),
				'integrated_edit_field11' => array(
					'location' => 'section2',
					'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_field3',
				'integrated_edit_field5',
				'integrated_edit_field6',
				'integrated_edit_field10',
				'integrated_edit_field11',
				'integrated_edit_field12' 
			),
			'details_preview' => array( 
				'details_preview' 
			),
			'section' => array( 
				'bl_je_document',
				'bl_je_description',
				'bl_je_currency',
				'bl_je_summary' 
			) 
		),
		'cellMaps' => array(
			'grid' => array(
				'cells' => array(
					'c3' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'bl_je_document',
							'bl_je_description' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					),
					'c' => array(
						'cols' => array( 
							1 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							'bl_je_currency',
							'bl_je_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_field2',
							'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_field12' 
						),
						'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_field10',
							'integrated_edit_field11' 
						),
						'fixedAtServer' => true,
						'fixedAtClient' => false 
					) 
				),
				'width' => 1,
				'height' => 1 
			),
			'section3' => array(
				'cells' => array(
					'c1' => array(
						'cols' => array( 
							0 
						),
						'rows' => array( 
							0 
						),
						'tags' => array( 
							 
						),
						'items' => array( 
							 
						),
						'fixedAtServer' => false,
						'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(
					'cells' => array( 
						array(
							'cell' => 'c4',
							'colspan' => 2 
						) 
					),
					'section' => '' 
				) 
			),
			'cells' => array(
				'c3' => array(
					'model' => 'c3',
					'items' => array( 
						'bl_je_document',
						'bl_je_description' 
					) 
				),
				'c' => array(
					'model' => 'c3',
					'items' => array( 
						'bl_je_currency',
						'bl_je_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_field2',
						'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_field12' 
					) 
				) 
			),
			'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_field10',
						'integrated_edit_field11' 
					) 
				) 
			),
			'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( 
						 
					) 
				) 
			),
			'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' => 'journal_entry',
				'type' => 3 
			) 
		),
		'integrated_edit_field3' => array(
			'field' => 'accounting_period_id',
			'type' => 'integrated_edit_field',
			'orientation' => 0,
			'label' => array(
				'field' => 'accounting_period_id',
				'table' => 'journal_entry',
				'type' => 3 
			) 
		),
		'integrated_edit_field5' => array(
			'field' => 'journal_date',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field6' => array(
			'field' => 'journal_type',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field10' => array(
			'field' => 'currency_code',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field11' => array(
			'field' => 'exchange_rate',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'integrated_edit_field12' => array(
			'field' => 'description',
			'type' => 'integrated_edit_field',
			'orientation' => 0 
		),
		'details_preview' => array(
			'type' => 'details_preview',
			'table' => 165998,
			'items' => array( 
				 
			),
			'popup' => false,
			'pageId' => 'list' 
		),
		'bl_je_document' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Journal Document' 
			),
			'location' => 'section',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_je_description' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Description' 
			),
			'location' => 'section1',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_je_currency' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Currency' 
			),
			'location' => 'section2',
			'bsStyle' => 'default',
			'panelType' => 3 
		),
		'bl_je_summary' => array(
			'type' => 'section',
			'title' => array(
				'type' => 0,
				'text' => 'Journal Summary' 
			),
			'location' => 'section3',
			'bsStyle' => 'default',
			'panelType' => 3 
		) 
	),
	'version' => 13,
	'imageItem' => array(
		'type' => 'page_image' 
	),
	'imageBgColor' => '#f2f2f2',
	'controlsBgColor' => 'transparent',
	'imagePosition' => 'right',
	'pageCSS' => '/* ============================================================
   BuildLedger Journal Entry - Section CSS using Item IDs
   ============================================================ */

/* Section spacing */
[data-itemid="bl_je_document"],
[data-itemid="bl_je_description"],
[data-itemid="bl_je_currency"],
[data-itemid="bl_je_summary"],
[data-itemid="bl_je_audit"] {
    margin-bottom: 22px !important;
}

/* Section panel */
[data-itemid="bl_je_document"] .panel,
[data-itemid="bl_je_description"] .panel,
[data-itemid="bl_je_currency"] .panel,
[data-itemid="bl_je_summary"] .panel,
[data-itemid="bl_je_audit"] .panel {
    border-radius: 4px !important;
    border: 1px solid #dddddd !important;
    box-shadow: none !important;
}

/* Section header */
[data-itemid="bl_je_document"] .panel-heading,
[data-itemid="bl_je_description"] .panel-heading,
[data-itemid="bl_je_currency"] .panel-heading,
[data-itemid="bl_je_summary"] .panel-heading,
[data-itemid="bl_je_audit"] .panel-heading {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
    background: linear-gradient(#f7f7f7, #e9e9e9) !important;
}

/* Section body */
[data-itemid="bl_je_document"] .panel-body,
[data-itemid="bl_je_description"] .panel-body,
[data-itemid="bl_je_currency"] .panel-body,
[data-itemid="bl_je_summary"] .panel-body,
[data-itemid="bl_je_audit"] .panel-body {
    padding: 20px 28px !important;
}

/* Fields inside sections */
[data-itemid="bl_je_document"] .form-group,
[data-itemid="bl_je_description"] .form-group,
[data-itemid="bl_je_currency"] .form-group,
[data-itemid="bl_je_summary"] .form-group,
[data-itemid="bl_je_audit"] .form-group {
    margin-bottom: 14px !important;
}

/* Inputs */
[data-itemid="bl_je_document"] .form-control,
[data-itemid="bl_je_description"] .form-control,
[data-itemid="bl_je_currency"] .form-control,
[data-itemid="bl_je_summary"] .form-control,
[data-itemid="bl_je_audit"] .form-control {
    max-width: 100% !important;
}

[data-itemid="bl_je_description"] 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;
}

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

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

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

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

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

/* Computed fields look readonly */
input[name*="total_debit"],
input[name*="total_credit"],
input[name*="line_no"] {
    background-color: #f7f7f7 !important;
}

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

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

    [data-itemid="bl_je_document"],
    [data-itemid="bl_je_description"],
    [data-itemid="bl_je_currency"],
    [data-itemid="bl_je_summary"],
    [data-itemid="bl_je_audit"] {
        margin-bottom: 18px !important;
    }
}',
	'listTotals' => 1,
	'title' => array(
		 
	),
	'cardStyle' => array(
		 
	) 
);
		?>