<?php
			$optionsArray = array( 'list' => array( 'inlineAdd' => false,
'detailsAdd' => true,
'inlineEdit' => false,
'delete' => true,
'updateSelected' => false,
'addInPopup' => false,
'editInPopup' => false,
'viewInPopup' => false,
'clickSort' => true,
'sortDropdown' => false,
'showHideFields' => true,
'reorderFields' => true ),
'allDetails' => array( 'linkType' => 1 ),
'details' => array( 'sales_details' => array( 'displayPreview' => 1,
'previewPageId' => 'list_list',
'showCount' => true,
'hideEmptyChild' => false,
'hideEmptyPreview' => false,
'showProceedLink' => false,
'printDetails' => true ),
'payments' => array( 'displayPreview' => 1,
'previewPageId' => 'list_list',
'showCount' => true,
'hideEmptyChild' => true,
'hideEmptyPreview' => true,
'showProceedLink' => false,
'printDetails' => true ),
'sales_history_total' => array( 'displayPreview' => 1,
'previewPageId' => 'list',
'showCount' => true,
'hideEmptyChild' => true,
'hideEmptyPreview' => true,
'showProceedLink' => false,
'printDetails' => true ) ),
'master' => array( 'buyers' => array( 'preview' => false ) ),
'listSearch' => array( 'alwaysOnPanelFields' => array(  ),
'searchPanel' => true,
'fixedSearchPanel' => false,
'simpleSearchOptions' => true,
'searchSaving' => false ),
'totals' => array( 'id' => array( 'totalsType' => 'COUNT' ),
'customer_name' => array( 'totalsType' => '' ),
'date_&_time' => array( 'totalsType' => '' ),
'branch_code' => array( 'totalsType' => '' ),
'outlet_code' => array( 'totalsType' => '' ),
'user' => array( 'totalsType' => '' ),
'tt' => array( 'totalsType' => '' ),
'company_name' => array( 'totalsType' => '' ),
'address_line_1' => array( 'totalsType' => '' ),
'address_line_2' => array( 'totalsType' => '' ),
'Fax' => array( 'totalsType' => '' ),
'email' => array( 'totalsType' => '' ),
'logo' => array( 'totalsType' => '' ),
'header' => array( 'totalsType' => '' ),
'footer' => array( 'totalsType' => '' ),
'hot_line' => array( 'totalsType' => '' ),
'advance_id' => array( 'totalsType' => '' ),
'amount' => array( 'totalsType' => '' ),
'left_advance' => array( 'totalsType' => '' ),
'details' => array( 'totalsType' => '' ),
'status' => array( 'totalsType' => '' ),
'customer_id' => array( 'totalsType' => '' ),
'paid' => array( 'totalsType' => 'TOTAL' ),
'total amount' => array( 'totalsType' => 'TOTAL' ),
'difect' => array( 'totalsType' => 'TOTAL' ) ),
'fields' => array( 'gridFields' => array( 'id',
'customer_name',
'date_&_time',
'user',
'total amount',
'difect',
'paid',
'advance_id',
'amount',
'left_advance',
'details',
'status',
'customer_id' ),
'searchRequiredFields' => array(  ),
'searchPanelFields' => array( 'customer_name',
'customer_id',
'status',
'details',
'left_advance',
'amount',
'advance_id',
'tt',
'hot_line',
'footer',
'header',
'logo',
'email',
'Fax',
'address_line_2',
'address_line_1',
'company_name',
'user',
'id',
'paid',
'outlet_code',
'branch_code',
'date_&_time',
'difect',
'total amount' ),
'filterFields' => array( 'date_&_time' ),
'inlineAddFields' => array(  ),
'inlineEditFields' => array(  ),
'fieldItems' => array( 'id' => array( 'simple_grid_field',
'simple_grid_field3',
'grid_field_totals3' ),
'customer_name' => array( 'simple_grid_field1',
'simple_grid_field4' ),
'date_&_time' => array( 'simple_grid_field8',
'simple_grid_field10' ),
'user' => array( 'grid_field',
'grid_field7' ),
'total amount' => array( 'grid_field1',
'grid_field4',
'grid_field_totals' ),
'difect' => array( 'grid_field2',
'grid_field6',
'grid_field_totals1' ),
'paid' => array( 'grid_field3',
'grid_field_label',
'grid_field_totals2' ),
'advance_id' => array( 'grid_field5',
'grid_field_label1' ),
'amount' => array( 'grid_field8',
'grid_field_label2' ),
'left_advance' => array( 'grid_field9',
'grid_field_label3' ),
'details' => array( 'grid_field10',
'grid_field_label4' ),
'status' => array( 'grid_field11',
'grid_field_label5' ),
'customer_id' => array( 'grid_field12',
'grid_field_label6' ) ),
'hideEmptyFields' => array(  ) ),
'pageLinks' => array( 'edit' => true,
'add' => true,
'view' => true,
'print' => true ),
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'left' => array( 'logo1',
'expand_button',
'menu',
'search_panel',
'hide_search_panel',
'show_search_panel' ),
'supertop' => array( 'collapse_button',
'details_found',
'simple_search_field',
'simple_search_option',
'simple_search',
'list_options',
'loginform_login',
'username_button' ),
'above-grid' => array( 'add',
'inline_add',
'delete',
'export_selected',
'export',
'advsearch_link',
'print_panel',
'page_size',
'columns_control',
'filter_panel' ),
'below-grid' => array( 'pagination' ),
'grid' => array( 'simple_grid_field3',
'simple_grid_field10',
'simple_grid_field',
'simple_grid_field8',
'grid_field_totals3',
'grid_field_label6',
'simple_grid_field4',
'grid_field12',
'simple_grid_field1',
'grid_field4',
'grid_field_label',
'grid_field6',
'grid_field1',
'grid_field3',
'grid_field2',
'grid_field_totals',
'grid_field_totals2',
'grid_field_totals1',
'details_preview2',
'details_preview1',
'details_preview',
'grid_checkbox_head',
'grid_checkbox',
'grid_edit',
'grid_inline_cancel',
'grid_view',
'grid_details_link',
'grid_details_link2',
'grid_details_link1',
'grid_field_label1',
'grid_field_label3',
'grid_field_label2',
'grid_field5',
'grid_field9',
'grid_field8',
'grid_field_label4',
'grid_field10',
'grid_field_label5',
'grid_field7',
'grid_field11',
'grid_field' ),
'top' => array(  ) ),
'formXtTags' => array( 'below-grid' => array( 'pagination' ),
'top' => array(  ) ),
'itemForms' => array( 'logo1' => 'left',
'expand_button' => 'left',
'menu' => 'left',
'search_panel' => 'left',
'hide_search_panel' => 'left',
'show_search_panel' => 'left',
'collapse_button' => 'supertop',
'details_found' => 'supertop',
'simple_search_field' => 'supertop',
'simple_search_option' => 'supertop',
'simple_search' => 'supertop',
'list_options' => 'supertop',
'loginform_login' => 'supertop',
'username_button' => 'supertop',
'add' => 'above-grid',
'inline_add' => 'above-grid',
'delete' => 'above-grid',
'export_selected' => 'above-grid',
'export' => 'above-grid',
'advsearch_link' => 'above-grid',
'print_panel' => 'above-grid',
'page_size' => 'above-grid',
'columns_control' => 'above-grid',
'filter_panel' => 'above-grid',
'pagination' => 'below-grid',
'simple_grid_field3' => 'grid',
'simple_grid_field10' => 'grid',
'simple_grid_field' => 'grid',
'simple_grid_field8' => 'grid',
'grid_field_totals3' => 'grid',
'grid_field_label6' => 'grid',
'simple_grid_field4' => 'grid',
'grid_field12' => 'grid',
'simple_grid_field1' => 'grid',
'grid_field4' => 'grid',
'grid_field_label' => 'grid',
'grid_field6' => 'grid',
'grid_field1' => 'grid',
'grid_field3' => 'grid',
'grid_field2' => 'grid',
'grid_field_totals' => 'grid',
'grid_field_totals2' => 'grid',
'grid_field_totals1' => 'grid',
'details_preview2' => 'grid',
'details_preview1' => 'grid',
'details_preview' => 'grid',
'grid_checkbox_head' => 'grid',
'grid_checkbox' => 'grid',
'grid_edit' => 'grid',
'grid_inline_cancel' => 'grid',
'grid_view' => 'grid',
'grid_details_link' => 'grid',
'grid_details_link2' => 'grid',
'grid_details_link1' => 'grid',
'grid_field_label1' => 'grid',
'grid_field_label3' => 'grid',
'grid_field_label2' => 'grid',
'grid_field5' => 'grid',
'grid_field9' => 'grid',
'grid_field8' => 'grid',
'grid_field_label4' => 'grid',
'grid_field10' => 'grid',
'grid_field_label5' => 'grid',
'grid_field7' => 'grid',
'grid_field11' => 'grid',
'grid_field' => 'grid' ),
'itemLocations' => array( 'simple_grid_field3' => array( 'location' => 'grid',
'cellId' => 'headcell_field' ),
'simple_grid_field10' => array( 'location' => 'grid',
'cellId' => 'headcell_field' ),
'simple_grid_field' => array( 'location' => 'grid',
'cellId' => 'cell_field' ),
'simple_grid_field8' => array( 'location' => 'grid',
'cellId' => 'cell_field' ),
'grid_field_totals3' => array( 'location' => 'grid',
'cellId' => 'footcell_field' ),
'grid_field_label6' => array( 'location' => 'grid',
'cellId' => 'headcell_field2' ),
'simple_grid_field4' => array( 'location' => 'grid',
'cellId' => 'headcell_field2' ),
'grid_field12' => array( 'location' => 'grid',
'cellId' => 'cell_field2' ),
'simple_grid_field1' => array( 'location' => 'grid',
'cellId' => 'cell_field2' ),
'grid_field4' => array( 'location' => 'grid',
'cellId' => 'headcell_field3' ),
'grid_field_label' => array( 'location' => 'grid',
'cellId' => 'headcell_field3' ),
'grid_field6' => array( 'location' => 'grid',
'cellId' => 'headcell_field3' ),
'grid_field1' => array( 'location' => 'grid',
'cellId' => 'cell_field3' ),
'grid_field3' => array( 'location' => 'grid',
'cellId' => 'cell_field3' ),
'grid_field2' => array( 'location' => 'grid',
'cellId' => 'cell_field3' ),
'grid_field_totals' => array( 'location' => 'grid',
'cellId' => 'footcell_field3' ),
'grid_field_totals2' => array( 'location' => 'grid',
'cellId' => 'footcell_field3' ),
'grid_field_totals1' => array( 'location' => 'grid',
'cellId' => 'footcell_field3' ),
'details_preview2' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'details_preview1' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'details_preview' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'grid_checkbox_head' => array( 'location' => 'grid',
'cellId' => 'headcell_checkbox' ),
'grid_checkbox' => array( 'location' => 'grid',
'cellId' => 'cell_checkbox' ),
'grid_edit' => array( 'location' => 'grid',
'cellId' => 'cell_icons' ),
'grid_inline_cancel' => array( 'location' => 'grid',
'cellId' => 'cell_icons' ),
'grid_view' => array( 'location' => 'grid',
'cellId' => 'cell_icons' ),
'grid_details_link' => array( 'location' => 'grid',
'cellId' => 'cell_details' ),
'grid_details_link2' => array( 'location' => 'grid',
'cellId' => 'cell_details' ),
'grid_details_link1' => array( 'location' => 'grid',
'cellId' => 'cell_details' ),
'grid_field_label1' => array( 'location' => 'grid',
'cellId' => 'headcell_field4' ),
'grid_field_label3' => array( 'location' => 'grid',
'cellId' => 'headcell_field4' ),
'grid_field_label2' => array( 'location' => 'grid',
'cellId' => 'headcell_field4' ),
'grid_field5' => array( 'location' => 'grid',
'cellId' => 'cell_field4' ),
'grid_field9' => array( 'location' => 'grid',
'cellId' => 'cell_field4' ),
'grid_field8' => array( 'location' => 'grid',
'cellId' => 'cell_field4' ),
'grid_field_label4' => array( 'location' => 'grid',
'cellId' => 'headcell_field11' ),
'grid_field10' => array( 'location' => 'grid',
'cellId' => 'cell_field11' ),
'grid_field_label5' => array( 'location' => 'grid',
'cellId' => 'headcell_field12' ),
'grid_field7' => array( 'location' => 'grid',
'cellId' => 'headcell_field12' ),
'grid_field11' => array( 'location' => 'grid',
'cellId' => 'cell_field12' ),
'grid_field' => array( 'location' => 'grid',
'cellId' => 'cell_field12' ) ),
'itemVisiblity' => array( 'expand_button' => 5,
'menu' => 3,
'search_panel' => 5,
'collapse_button' => 5,
'simple_search_field' => 3,
'simple_search_option' => 3,
'simple_search' => 3,
'list_options' => 3,
'loginform_login' => 3,
'username_button' => 3,
'print_panel' => 5,
'filter_panel' => 3 ) ),
'itemsByType' => array( 'page_size' => array( 'page_size' ),
'details_found' => array( 'details_found' ),
'menu' => array( 'menu' ),
'simple_search' => array( 'simple_search' ),
'pagination' => array( 'pagination' ),
'collapse_button' => array( 'collapse_button' ),
'add' => array( 'add' ),
'grid_edit' => array( 'grid_edit' ),
'grid_view' => array( 'grid_view' ),
'print_panel' => array( 'print_panel' ),
'print_scope' => array( 'print_scope' ),
'print_button' => array( 'print_button' ),
'print_records' => array( 'print_records' ),
'grid_checkbox' => array( 'grid_checkbox' ),
'grid_checkbox_head' => array( 'grid_checkbox_head' ),
'export' => array( 'export' ),
'-' => array( '-' ),
'export_selected' => array( 'export_selected' ),
'delete' => array( 'delete' ),
'advsearch_link' => array( 'advsearch_link' ),
'grid_field' => array( 'simple_grid_field',
'simple_grid_field1',
'simple_grid_field8',
'grid_field',
'grid_field1',
'grid_field2',
'grid_field3',
'grid_field5',
'grid_field8',
'grid_field9',
'grid_field10',
'grid_field11',
'grid_field12' ),
'print_details' => array( 'print_details' ),
'logo' => array( 'logo1' ),
'username_button' => array( 'username_button' ),
'changepassword_link' => array( 'changepassword_link' ),
'loginform_login' => array( 'loginform_login' ),
'logout_link' => array( 'logout_link' ),
'simple_search_field' => array( 'simple_search_field' ),
'simple_search_option' => array( 'simple_search_option' ),
'search_panel' => array( 'search_panel' ),
'search_panel_field' => array( 'search_panel_field',
'search_panel_field1',
'search_panel_field2',
'search_panel_field3',
'search_panel_field5',
'search_panel_field6',
'search_panel_field7',
'search_panel_field8',
'search_panel_field9',
'search_panel_field10',
'search_panel_field11',
'search_panel_field12',
'search_panel_field13',
'search_panel_field14',
'search_panel_field15',
'search_panel_field16',
'search_panel_field17',
'search_panel_field18',
'search_panel_field19',
'search_panel_field20',
'search_panel_field21',
'search_panel_field22',
'search_panel_field23',
'search_panel_field24',
'search_panel_field25' ),
'show_search_panel' => array( 'show_search_panel' ),
'hide_search_panel' => array( 'hide_search_panel' ),
'grid_field_label' => array( 'simple_grid_field3',
'simple_grid_field4',
'grid_field4',
'grid_field6',
'simple_grid_field10',
'grid_field7',
'grid_field_label',
'grid_field_label1',
'grid_field_label2',
'grid_field_label3',
'grid_field_label4',
'grid_field_label5',
'grid_field_label6' ),
'grid_field_totals' => array( 'grid_field_totals',
'grid_field_totals1',
'grid_field_totals2',
'grid_field_totals3' ),
'list_options' => array( 'list_options' ),
'delete_selected' => array( 'delete_selected' ),
'grid_details_link' => array( 'grid_details_link',
'grid_details_link2',
'grid_details_link1' ),
'details_preview' => array( 'details_preview1',
'details_preview2',
'details_preview' ),
'columns_control' => array( 'columns_control' ),
'filter_panel' => array( 'filter_panel' ),
'filter_panel_field' => array( 'filter_panel_field' ),
'expand_button' => array( 'expand_button' ),
'inline_add' => array( 'inline_add' ),
'grid_inline_cancel' => array( 'grid_inline_cancel' ) ),
'cellMaps' => array( 'grid' => array( 'cells' => array( 'headcell_icons' => array( 'cols' => array( 0 ),
'rows' => array( 0 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_checkbox' => array( 'cols' => array( 1 ),
'rows' => array( 0 ),
'tags' => array( 'checkbox_column' ),
'items' => array( 'grid_checkbox_head' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_details' => array( 'cols' => array( 2 ),
'rows' => array( 0 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field' => array( 'cols' => array( 3 ),
'rows' => array( 0 ),
'tags' => array( 'id_fieldheadercolumn',
'date___time_fieldheadercolumn' ),
'items' => array( 'simple_grid_field3',
'simple_grid_field10' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field2' => array( 'cols' => array( 4 ),
'rows' => array( 0 ),
'tags' => array( 'customer_id_fieldheadercolumn',
'customer_name_fieldheadercolumn' ),
'items' => array( 'grid_field_label6',
'simple_grid_field4' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field3' => array( 'cols' => array( 5 ),
'rows' => array( 0 ),
'tags' => array( 'total_amount_fieldheadercolumn',
'paid_fieldheadercolumn',
'difect_fieldheadercolumn' ),
'items' => array( 'grid_field4',
'grid_field_label',
'grid_field6' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field4' => array( 'cols' => array( 6 ),
'rows' => array( 0 ),
'tags' => array( 'advance_id_fieldheadercolumn',
'left_advance_fieldheadercolumn',
'amount_fieldheadercolumn' ),
'items' => array( 'grid_field_label1',
'grid_field_label3',
'grid_field_label2' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field11' => array( 'cols' => array( 7 ),
'rows' => array( 0 ),
'tags' => array( 'details_fieldheadercolumn' ),
'items' => array( 'grid_field_label4' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'headcell_field12' => array( 'cols' => array( 8 ),
'rows' => array( 0 ),
'tags' => array( 'status_fieldheadercolumn',
'user_fieldheadercolumn' ),
'items' => array( 'grid_field_label5',
'grid_field7' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_icons' => array( 'cols' => array( 0 ),
'rows' => array( 1 ),
'tags' => array( 'edit_column',
'inline_cancel',
'view_column' ),
'items' => array( 'grid_edit',
'grid_inline_cancel',
'grid_view' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_checkbox' => array( 'cols' => array( 1 ),
'rows' => array( 1 ),
'tags' => array( 'checkbox_column' ),
'items' => array( 'grid_checkbox' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_details' => array( 'cols' => array( 2 ),
'rows' => array( 1 ),
'tags' => array(  ),
'items' => array( 'grid_details_link',
'grid_details_link2',
'grid_details_link1' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'cell_field' => array( 'cols' => array( 3 ),
'rows' => array( 1 ),
'tags' => array( 'id_fieldcolumn',
'date___time_fieldcolumn' ),
'items' => array( 'simple_grid_field',
'simple_grid_field8' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field2' => array( 'cols' => array( 4 ),
'rows' => array( 1 ),
'tags' => array( 'customer_id_fieldcolumn',
'customer_name_fieldcolumn' ),
'items' => array( 'grid_field12',
'simple_grid_field1' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field3' => array( 'cols' => array( 5 ),
'rows' => array( 1 ),
'tags' => array( 'total_amount_fieldcolumn',
'paid_fieldcolumn',
'difect_fieldcolumn' ),
'items' => array( 'grid_field1',
'grid_field3',
'grid_field2' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field4' => array( 'cols' => array( 6 ),
'rows' => array( 1 ),
'tags' => array( 'advance_id_fieldcolumn',
'left_advance_fieldcolumn',
'amount_fieldcolumn' ),
'items' => array( 'grid_field5',
'grid_field9',
'grid_field8' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field11' => array( 'cols' => array( 7 ),
'rows' => array( 1 ),
'tags' => array( 'details_fieldcolumn' ),
'items' => array( 'grid_field10' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field12' => array( 'cols' => array( 8 ),
'rows' => array( 1 ),
'tags' => array( 'status_fieldcolumn',
'user_fieldcolumn' ),
'items' => array( 'grid_field11',
'grid_field' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_dpreview' => array( 'cols' => array( 0,
1,
2,
3,
4,
5,
6,
7,
8 ),
'rows' => array( 2 ),
'tags' => array(  ),
'items' => array( 'details_preview2',
'details_preview1',
'details_preview' ),
'fixedAtServer' => true,
'fixedAtClient' => false ),
'footcell_icons' => array( 'cols' => array( 0 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_checkbox' => array( 'cols' => array( 1 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_details' => array( 'cols' => array( 2 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field' => array( 'cols' => array( 3 ),
'rows' => array( 3 ),
'tags' => array( 'id_fieldfootercolumn' ),
'items' => array( 'grid_field_totals3' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field2' => array( 'cols' => array( 4 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field3' => array( 'cols' => array( 5 ),
'rows' => array( 3 ),
'tags' => array( 'total_amount_fieldfootercolumn',
'paid_fieldfootercolumn',
'difect_fieldfootercolumn' ),
'items' => array( 'grid_field_totals',
'grid_field_totals2',
'grid_field_totals1' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field4' => array( 'cols' => array( 6 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field11' => array( 'cols' => array( 7 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'footcell_field12' => array( 'cols' => array( 8 ),
'rows' => array( 3 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ) ),
'width' => 9,
'height' => 4 ) ) ),
'loginForm' => array( 'loginForm' => 1 ),
'page' => array( 'labeledButtons' => array( 'update_records' => array(  ),
'print_pages' => array(  ),
'register_activate_message' => array(  ),
'details_found' => array( 'details_found' => array( 'tag' => 'DISPLAYING',
'type' => 2 ) ) ),
'gridType' => 0,
'recsPerRow' => 1,
'hasCustomButtons' => false,
'customButtons' => array(  ) ),
'misc' => array( 'type' => 'list',
'breadcrumb' => false ),
'events' => array( 'maps' => array(  ),
'mapsData' => array(  ),
'buttons' => array(  ) ),
'dataGrid' => array( 'groupFields' => array(  ) ) );
			$pageArray = array( 'id' => 'list',
'type' => 'list',
'layoutId' => 'leftbar',
'disabled' => 0,
'default' => 0,
'forms' => array( 'left' => array( 'modelId' => 'leftbar-menu',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c0' ) ),
'section' => '' ),
array( 'cells' => array( array( 'cell' => 'c1' ) ),
'section' => '' ),
array( 'section' => '',
'cells' => array( array( 'cell' => 'c2' ) ) ),
array( 'section' => '',
'cells' => array( array( 'cell' => 'c' ) ) ) ),
'cells' => array( 'c0' => array( 'model' => 'c0',
'items' => array( 'logo1',
'expand_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c1' => array( 'model' => 'c1',
'items' => array( 'menu' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c' => array( 'model' => 'c1',
'items' => array( 'search_panel' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c2' => array( 'model' => 'c1',
'items' => array( 'hide_search_panel',
'show_search_panel' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center',
'background' => '#7ac0c8' ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'supertop' => array( 'modelId' => 'leftbar-top',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ),
array( 'cell' => 'c2' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'collapse_button',
'details_found' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c2' => array( 'model' => 'c2',
'items' => array( 'simple_search_field',
'simple_search_option',
'simple_search',
'list_options',
'loginform_login',
'username_button' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'above-grid' => array( 'modelId' => 'list-above-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1',
'colspan' => 1 ) ),
'section' => '' ),
array( 'cells' => array( array( 'cell' => 'c4',
'colspan' => 1 ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'add',
'inline_add',
'delete',
'export_selected',
'export',
'advsearch_link',
'print_panel',
'page_size',
'columns_control' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center' ),
'c4' => array( 'model' => 'c4',
'items' => array( 'filter_panel' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center' ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'below-grid' => array( 'modelId' => 'list-below-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'pagination' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'grid' => array( 'modelId' => 'horizontal-grid',
'grid' => array( array( 'section' => 'head',
'cells' => array( array( 'cell' => 'headcell_icons' ),
array( 'cell' => 'headcell_checkbox' ),
array( 'cell' => 'headcell_details' ),
array( 'cell' => 'headcell_field' ),
array( 'cell' => 'headcell_field2' ),
array( 'cell' => 'headcell_field3' ),
array( 'cell' => 'headcell_field4' ),
array( 'cell' => 'headcell_field11' ),
array( 'cell' => 'headcell_field12' ) ) ),
array( 'section' => 'body',
'cells' => array( array( 'cell' => 'cell_icons' ),
array( 'cell' => 'cell_checkbox' ),
array( 'cell' => 'cell_details' ),
array( 'cell' => 'cell_field' ),
array( 'cell' => 'cell_field2' ),
array( 'cell' => 'cell_field3' ),
array( 'cell' => 'cell_field4' ),
array( 'cell' => 'cell_field11' ),
array( 'cell' => 'cell_field12' ) ) ),
array( 'cells' => array( array( 'cell' => 'cell_dpreview',
'colspan' => 9 ) ),
'section' => 'body' ),
array( 'section' => 'foot',
'cells' => array( array( 'cell' => 'footcell_icons' ),
array( 'cell' => 'footcell_checkbox' ),
array( 'cell' => 'footcell_details' ),
array( 'cell' => 'footcell_field' ),
array( 'cell' => 'footcell_field2' ),
array( 'cell' => 'footcell_field3' ),
array( 'cell' => 'footcell_field4' ),
array( 'cell' => 'footcell_field11' ),
array( 'cell' => 'footcell_field12' ) ) ) ),
'cells' => array( 'headcell_field' => array( 'model' => 'headcell_field',
'items' => array( 'simple_grid_field3',
'simple_grid_field10' ),
'field' => 'id',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical' ),
'cell_field' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field',
'simple_grid_field8' ),
'field' => 'id',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical' ),
'footcell_field' => array( 'model' => 'footcell_field',
'items' => array( 'grid_field_totals3' ),
'field' => 'id',
'columnName' => 'field',
'align' => 'center' ),
'headcell_field2' => array( 'model' => 'headcell_field',
'items' => array( 'grid_field_label6',
'simple_grid_field4' ),
'field' => 'customer_id',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical' ),
'cell_field2' => array( 'model' => 'cell_field',
'items' => array( 'grid_field12',
'simple_grid_field1' ),
'field' => 'customer_id',
'align' => 'left',
'columnName' => 'field',
'orientation' => 'vertical' ),
'footcell_field2' => array( 'model' => 'footcell_field',
'items' => array(  ) ),
'headcell_field3' => array( 'model' => 'headcell_field',
'items' => array( 'grid_field4',
'grid_field_label',
'grid_field6' ),
'field' => 'total amount',
'align' => 'center',
'columnName' => 'field',
'orientation' => 'vertical' ),
'cell_field3' => array( 'model' => 'cell_field',
'items' => array( 'grid_field1',
'grid_field3',
'grid_field2' ),
'field' => 'total amount',
'align' => 'right',
'columnName' => 'field',
'orientation' => 'vertical' ),
'footcell_field3' => array( 'model' => 'footcell_field',
'items' => array( 'grid_field_totals',
'grid_field_totals2',
'grid_field_totals1' ),
'field' => 'total amount',
'columnName' => 'field',
'align' => 'right',
'orientation' => 'vertical' ),
'cell_dpreview' => array( 'model' => 'cell_dpreview',
'items' => array( 'details_preview2',
'details_preview1',
'details_preview' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'headcell_checkbox' => array( 'model' => 'headcell_checkbox',
'items' => array( 'grid_checkbox_head' ),
'columnName' => 'checkbox' ),
'cell_checkbox' => array( 'model' => 'cell_checkbox',
'items' => array( 'grid_checkbox' ),
'columnName' => 'checkbox' ),
'footcell_checkbox' => array( 'model' => 'footcell_checkbox',
'items' => array(  ),
'columnName' => 'checkbox' ),
'headcell_icons' => array( 'model' => 'headcell_icons',
'items' => array(  ),
'columnName' => 'list-icons' ),
'cell_icons' => array( 'model' => 'cell_icons',
'items' => array( 'grid_edit',
'grid_inline_cancel',
'grid_view' ),
'columnName' => 'list-icons' ),
'footcell_icons' => array( 'model' => 'footcell_icons',
'items' => array(  ),
'columnName' => 'list-icons' ),
'headcell_details' => array( 'model' => 'headcell_details',
'items' => array(  ),
'columnName' => 'details' ),
'cell_details' => array( 'model' => 'cell_details',
'items' => array( 'grid_details_link',
'grid_details_link2',
'grid_details_link1' ),
'columnName' => 'details',
'orientation' => 'vertical' ),
'footcell_details' => array( 'model' => 'footcell_details',
'items' => array(  ),
'columnName' => 'details' ),
'headcell_field4' => array( 'model' => 'headcell_field',
'items' => array( 'grid_field_label1',
'grid_field_label3',
'grid_field_label2' ),
'field' => 'advance_id',
'columnName' => 'field',
'orientation' => 'vertical',
'align' => 'center' ),
'cell_field4' => array( 'model' => 'cell_field',
'items' => array( 'grid_field5',
'grid_field9',
'grid_field8' ),
'field' => 'advance_id',
'columnName' => 'field',
'orientation' => 'vertical',
'align' => 'right' ),
'footcell_field4' => array( 'model' => 'footcell_field',
'items' => array(  ) ),
'headcell_field11' => array( 'model' => 'headcell_field',
'items' => array( 'grid_field_label4' ),
'field' => 'details',
'columnName' => 'field',
'align' => 'center' ),
'cell_field11' => array( 'model' => 'cell_field',
'items' => array( 'grid_field10' ),
'field' => 'details',
'columnName' => 'field' ),
'footcell_field11' => array( 'model' => 'footcell_field',
'items' => array(  ) ),
'headcell_field12' => array( 'model' => 'headcell_field',
'items' => array( 'grid_field_label5',
'grid_field7' ),
'field' => 'status',
'columnName' => 'field',
'orientation' => 'vertical',
'align' => 'center' ),
'cell_field12' => array( 'model' => 'cell_field',
'items' => array( 'grid_field11',
'grid_field' ),
'field' => 'status',
'columnName' => 'field',
'orientation' => 'vertical',
'align' => 'center' ),
'footcell_field12' => array( 'model' => 'footcell_field',
'items' => array(  ) ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'top' => array( 'modelId' => 'list-sidebar-top',
'grid' => array(  ),
'cells' => array(  ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ) ),
'items' => array( 'page_size' => array( 'type' => 'page_size' ),
'details_found' => array( 'type' => 'details_found' ),
'menu' => array( 'type' => 'menu' ),
'simple_search' => array( 'type' => 'simple_search' ),
'pagination' => array( 'type' => 'pagination' ),
'collapse_button' => array( 'type' => 'collapse_button' ),
'add' => array( 'type' => 'add',
'popup' => false,
'label' => array( 'type' => 0,
'text' => '' ),
'icon' => array( 'file' => 'add.png' ),
'buttonStyle' => 'link' ),
'grid_edit' => array( 'type' => 'grid_edit',
'popup' => false,
'buttonStyle' => 'warning',
'label' => array( 'text' => 'Edit',
'type' => 0 ),
'icon' => array( 'glyph' => '' ) ),
'grid_view' => array( 'type' => 'grid_view',
'popup' => false,
'buttonStyle' => 'info',
'icon' => array( 'fa' => 'print' ) ),
'print_panel' => array( 'type' => 'print_panel',
'items' => array( 'print_scope',
'print_details',
'print_records',
'print_button' ) ),
'print_scope' => array( 'type' => 'print_scope' ),
'print_button' => array( 'type' => 'print_button' ),
'print_records' => array( 'type' => 'print_records' ),
'grid_checkbox' => array( 'type' => 'grid_checkbox' ),
'grid_checkbox_head' => array( 'type' => 'grid_checkbox_head' ),
'export' => array( 'type' => 'export',
'buttonSize' => 'large',
'buttonStyle' => 'info' ),
'-' => array( 'type' => '-' ),
'export_selected' => array( 'type' => 'export_selected',
'buttonSize' => 'large',
'buttonStyle' => 'success' ),
'delete' => array( 'type' => 'delete',
'buttonSize' => 'large',
'buttonStyle' => 'danger',
'icon' => array( 'fa' => 'trash-o' ) ),
'advsearch_link' => array( 'type' => 'advsearch_link',
'buttonSize' => 'large',
'buttonStyle' => 'primary' ),
'simple_grid_field' => array( 'field' => 'id',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'clickSort' => true ),
'simple_grid_field1' => array( 'field' => 'customer_name',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'clickSort' => true ),
'print_details' => array( 'type' => 'print_details',
'tables' => array( 'table5' => true,
'details' => true,
'paymets' => true,
'payments' => true,
'sales_details' => true,
'sales_history_total' => true ) ),
'logo1' => array( 'type' => 'logo' ),
'simple_grid_field8' => array( 'field' => 'date_&_time',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'clickSort' => true ),
'username_button' => array( 'type' => 'username_button',
'items' => array( 'logout_link',
'changepassword_link' ) ),
'changepassword_link' => array( 'type' => 'changepassword_link' ),
'loginform_login' => array( 'type' => 'loginform_login',
'popup' => true ),
'logout_link' => array( 'type' => 'logout_link' ),
'simple_search_field' => array( 'type' => 'simple_search_field' ),
'simple_search_option' => array( 'type' => 'simple_search_option' ),
'grid_field' => array( 'field' => 'user',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'search_panel' => array( 'type' => 'search_panel',
'items' => array( 'search_panel_field',
'search_panel_field25',
'search_panel_field24',
'search_panel_field23',
'search_panel_field22',
'search_panel_field21',
'search_panel_field20',
'search_panel_field19',
'search_panel_field18',
'search_panel_field17',
'search_panel_field16',
'search_panel_field15',
'search_panel_field14',
'search_panel_field13',
'search_panel_field12',
'search_panel_field11',
'search_panel_field10',
'search_panel_field9',
'search_panel_field8',
'search_panel_field3',
'search_panel_field7',
'search_panel_field6',
'search_panel_field5',
'search_panel_field2',
'search_panel_field1' ),
'_flexiblePanel' => true ),
'search_panel_field' => array( 'field' => 'customer_name',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'grid_field1' => array( 'field' => 'total amount',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'bold' => true,
'underline' => false ),
'search_panel_field1' => array( 'field' => 'total amount',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field2' => array( 'field' => 'difect',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'search_panel_field2' => array( 'field' => 'difect',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field3' => array( 'field' => 'paid',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'search_panel_field3' => array( 'field' => 'paid',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'search_panel_field5' => array( 'field' => 'date_&_time',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'show_search_panel' => array( 'type' => 'show_search_panel',
'buttonStyle' => 'success' ),
'hide_search_panel' => array( 'type' => 'hide_search_panel',
'buttonSize' => 'normal',
'buttonStyle' => 'warning' ),
'simple_grid_field3' => array( 'type' => 'grid_field_label',
'field' => 'id',
'clickSort' => true ),
'simple_grid_field4' => array( 'type' => 'grid_field_label',
'field' => 'customer_name',
'clickSort' => true ),
'grid_field4' => array( 'type' => 'grid_field_label',
'field' => 'total amount',
'bold' => true,
'clickSort' => true ),
'grid_field6' => array( 'type' => 'grid_field_label',
'field' => 'difect',
'clickSort' => true ),
'simple_grid_field10' => array( 'type' => 'grid_field_label',
'field' => 'date_&_time',
'clickSort' => true ),
'grid_field7' => array( 'type' => 'grid_field_label',
'field' => 'user',
'clickSort' => true ),
'grid_field_totals' => array( 'type' => 'grid_field_totals',
'field' => 'total amount',
'totals' => 'TOTAL',
'label' => array( 'type' => 0,
'text' => '' ),
'bold' => true,
'underline' => true ),
'list_options' => array( 'type' => 'list_options',
'items' => array( 'delete_selected' ) ),
'delete_selected' => array( 'type' => 'delete_selected' ),
'search_panel_field6' => array( 'field' => 'branch_code',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'search_panel_field7' => array( 'field' => 'outlet_code',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_details_link' => array( 'type' => 'grid_details_link',
'table' => 'sales_details',
'badge' => false,
'hideIfNone' => false,
'showCount' => true ),
'details_preview1' => array( 'type' => 'details_preview',
'table' => 'payments',
'items' => array(  ),
'popup' => false,
'hideEmptyPreview' => true,
'proceedLink' => false,
'pageId' => 'list_list' ),
'grid_field_label' => array( 'type' => 'grid_field_label',
'field' => 'paid',
'clickSort' => true,
'bold' => true,
'underline' => true ),
'details_preview2' => array( 'type' => 'details_preview',
'table' => 'sales_details',
'items' => array(  ),
'popup' => false,
'hideEmptyPreview' => false,
'proceedLink' => false,
'pageId' => 'list_list' ),
'grid_details_link2' => array( 'type' => 'grid_details_link',
'table' => 'payments',
'badge' => false,
'showCount' => true,
'hideIfNone' => true ),
'columns_control' => array( 'type' => 'columns_control',
'showHide' => true,
'reorder' => true ),
'search_panel_field8' => array( 'field' => 'id',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field9' => array( 'field' => 'user',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field10' => array( 'field' => 'company_name',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field11' => array( 'field' => 'address_line_1',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field12' => array( 'field' => 'address_line_2',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field13' => array( 'field' => 'Fax',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field14' => array( 'field' => 'email',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field15' => array( 'field' => 'logo',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field16' => array( 'field' => 'header',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field17' => array( 'field' => 'footer',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'search_panel_field18' => array( 'field' => 'hot_line',
'type' => 'search_panel_field',
'alwaysOnPanel' => false,
'required' => false ),
'grid_field_totals1' => array( 'type' => 'grid_field_totals',
'field' => 'difect',
'totals' => 'TOTAL',
'label' => array( 'type' => 0,
'text' => '' ),
'underline' => true,
'bold' => true ),
'grid_field_totals2' => array( 'type' => 'grid_field_totals',
'field' => 'paid',
'totals' => 'TOTAL',
'underline' => true,
'bold' => true,
'label' => array( 'type' => 0,
'text' => '' ) ),
'grid_field_totals3' => array( 'type' => 'grid_field_totals',
'field' => 'id',
'totals' => 'COUNT',
'label' => array( 'type' => 0,
'text' => '' ),
'bold' => true ),
'filter_panel' => array( 'type' => 'filter_panel',
'items' => array( 'filter_panel_field' ) ),
'filter_panel_field' => array( 'field' => 'date_&_time',
'type' => 'filter_panel_field' ),
'search_panel_field19' => array( 'field' => 'tt',
'type' => 'search_panel_field',
'required' => false ),
'grid_field5' => array( 'field' => 'advance_id',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label1' => array( 'type' => 'grid_field_label',
'field' => 'advance_id' ),
'search_panel_field20' => array( 'field' => 'advance_id',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field8' => array( 'field' => 'amount',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label2' => array( 'type' => 'grid_field_label',
'field' => 'amount',
'bold' => true,
'underline' => true ),
'search_panel_field21' => array( 'field' => 'amount',
'type' => 'search_panel_field',
'required' => false ),
'grid_field9' => array( 'field' => 'left_advance',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label3' => array( 'type' => 'grid_field_label',
'field' => 'left_advance' ),
'search_panel_field22' => array( 'field' => 'left_advance',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field10' => array( 'field' => 'details',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false,
'nowrap' => false ),
'grid_field_label4' => array( 'type' => 'grid_field_label',
'field' => 'details' ),
'search_panel_field23' => array( 'field' => 'details',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field11' => array( 'field' => 'status',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label5' => array( 'type' => 'grid_field_label',
'field' => 'status' ),
'search_panel_field24' => array( 'field' => 'status',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'grid_field12' => array( 'field' => 'customer_id',
'type' => 'grid_field',
'inlineAdd' => false,
'inlineEdit' => false ),
'grid_field_label6' => array( 'type' => 'grid_field_label',
'field' => 'customer_id' ),
'search_panel_field25' => array( 'field' => 'customer_id',
'type' => 'search_panel_field',
'required' => false,
'alwaysOnPanel' => false ),
'details_preview' => array( 'type' => 'details_preview',
'table' => 'sales_history_total',
'items' => array(  ),
'popup' => false,
'hideEmptyPreview' => true,
'proceedLink' => false,
'pageId' => 'list' ),
'grid_details_link1' => array( 'type' => 'grid_details_link',
'table' => 'sales_history_total',
'badge' => false,
'showCount' => true,
'hideIfNone' => true,
'text' => array( 'type' => 0,
'text' => 'Total difect' ) ),
'expand_button' => array( 'type' => 'expand_button' ),
'inline_add' => array( 'type' => 'inline_add',
'detailsOnly' => true ),
'grid_inline_cancel' => array( 'type' => 'grid_inline_cancel' ) ),
'dbProps' => array(  ),
'version' => 4,
'pageWidth' => 'full' );
		?>