<?php
			$optionsArray = array( 'pdf' => array( 'pdfView' => true,
'orientation' => 'portrait',
'scale' => 100 ),
'details' => array( 'sales_details' => array( 'displayPreview' => 1,
'previewPageId' => 'print' ),
'payments' => array( 'displayPreview' => 1,
'previewPageId' => 'print' ),
'sales_history_total' => array( 'displayPreview' => 1 ) ),
'master' => array( 'buyers' => array( 'preview' => false ) ),
'totals' => array( 'id' => array( 'totalsType' => '' ),
'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 amount' => array( 'totalsType' => '' ),
'difect' => array( 'totalsType' => '' ) ),
'fields' => array( 'gridFields' => array( 'id',
'customer_name',
'user',
'company_name',
'address_line_1',
'date_&_time',
'address_line_2',
'hot_line',
'Fax',
'email',
'header',
'footer',
'logo',
'total amount',
'difect',
'branch_code',
'outlet_code',
'paid',
'tt',
'advance_id',
'amount',
'left_advance',
'details',
'status',
'customer_id' ),
'searchRequiredFields' => array(  ),
'searchPanelFields' => array(  ),
'fieldItems' => array( 'id' => array( 'simple_grid_field',
'simple_grid_field20' ),
'customer_name' => array( 'simple_grid_field1',
'simple_grid_field21' ),
'user' => array( 'simple_grid_field3',
'simple_grid_field27' ),
'company_name' => array( 'simple_grid_field4' ),
'address_line_1' => array( 'simple_grid_field5' ),
'date_&_time' => array( 'simple_grid_field8',
'simple_grid_field25' ),
'address_line_2' => array( 'simple_grid_field10' ),
'hot_line' => array( 'simple_grid_field11' ),
'Fax' => array( 'simple_grid_field12' ),
'email' => array( 'simple_grid_field13' ),
'header' => array( 'simple_grid_field14' ),
'footer' => array( 'simple_grid_field15',
'simple_grid_field35' ),
'logo' => array( 'simple_grid_field16',
'simple_grid_field36' ),
'total amount' => array( 'simple_grid_field17',
'simple_grid_field37' ),
'difect' => array( 'simple_grid_field18',
'simple_grid_field38' ),
'branch_code' => array( 'grid_field',
'grid_field_label' ),
'outlet_code' => array( 'grid_field1',
'grid_field_label1' ),
'paid' => array( 'grid_field2',
'grid_field_label2' ),
'tt' => array( 'grid_field3',
'grid_field_label3' ),
'advance_id' => array( 'grid_field4',
'grid_field_label4' ),
'amount' => array( 'grid_field5',
'grid_field_label5' ),
'left_advance' => array( 'grid_field6',
'grid_field_label6' ),
'details' => array( 'grid_field7',
'grid_field_label7' ),
'status' => array( 'grid_field8',
'grid_field_label8' ),
'customer_id' => array( 'grid_field9',
'grid_field_label9' ) ),
'hideEmptyFields' => array(  ) ),
'pageLinks' => array( 'edit' => false,
'add' => false,
'view' => false,
'print' => false ),
'layoutHelper' => array( 'formItems' => array( 'formItems' => array( 'top' => array( 'print_header',
'print_subheader',
'print_pdf' ),
'above-grid' => array( 'print_pages',
'grid_inline_cancel',
'inline_add' ),
'below-grid' => array(  ),
'grid' => array( 'details_preview',
'details_preview3',
'details_preview2',
'details_preview4',
'simple_grid_field20',
'simple_grid_field',
'simple_grid_field21',
'simple_grid_field1',
'grid_field_label2',
'grid_field2',
'simple_grid_field25',
'simple_grid_field8',
'grid_field_label',
'grid_field',
'simple_grid_field27',
'simple_grid_field3',
'simple_grid_field4',
'simple_grid_field5',
'simple_grid_field10',
'simple_grid_field11',
'simple_grid_field12',
'simple_grid_field13',
'simple_grid_field14',
'simple_grid_field35',
'simple_grid_field15',
'simple_grid_field36',
'simple_grid_field16',
'simple_grid_field37',
'simple_grid_field17',
'simple_grid_field38',
'simple_grid_field18',
'details_preview1',
'grid_field_label1',
'grid_field1',
'grid_field_label3',
'grid_field3',
'grid_field_label4',
'grid_field4',
'grid_field_label5',
'grid_field5',
'grid_field_label6',
'grid_field6',
'grid_field_label7',
'grid_field7',
'grid_field_label8',
'grid_field8',
'grid_field_label9',
'grid_field9' ) ),
'formXtTags' => array( 'above-grid' => array( 'print_pages',
'inline_cancel',
'inlineadd_link' ),
'below-grid' => array(  ) ),
'itemForms' => array( 'print_header' => 'top',
'print_subheader' => 'top',
'print_pdf' => 'top',
'print_pages' => 'above-grid',
'grid_inline_cancel' => 'above-grid',
'inline_add' => 'above-grid',
'details_preview' => 'grid',
'details_preview3' => 'grid',
'details_preview2' => 'grid',
'details_preview4' => 'grid',
'simple_grid_field20' => 'grid',
'simple_grid_field' => 'grid',
'simple_grid_field21' => 'grid',
'simple_grid_field1' => 'grid',
'grid_field_label2' => 'grid',
'grid_field2' => 'grid',
'simple_grid_field25' => 'grid',
'simple_grid_field8' => 'grid',
'grid_field_label' => 'grid',
'grid_field' => 'grid',
'simple_grid_field27' => 'grid',
'simple_grid_field3' => 'grid',
'simple_grid_field4' => 'grid',
'simple_grid_field5' => 'grid',
'simple_grid_field10' => 'grid',
'simple_grid_field11' => 'grid',
'simple_grid_field12' => 'grid',
'simple_grid_field13' => 'grid',
'simple_grid_field14' => 'grid',
'simple_grid_field35' => 'grid',
'simple_grid_field15' => 'grid',
'simple_grid_field36' => 'grid',
'simple_grid_field16' => 'grid',
'simple_grid_field37' => 'grid',
'simple_grid_field17' => 'grid',
'simple_grid_field38' => 'grid',
'simple_grid_field18' => 'grid',
'details_preview1' => 'grid',
'grid_field_label1' => 'grid',
'grid_field1' => 'grid',
'grid_field_label3' => 'grid',
'grid_field3' => 'grid',
'grid_field_label4' => 'grid',
'grid_field4' => 'grid',
'grid_field_label5' => 'grid',
'grid_field5' => 'grid',
'grid_field_label6' => 'grid',
'grid_field6' => 'grid',
'grid_field_label7' => 'grid',
'grid_field7' => 'grid',
'grid_field_label8' => 'grid',
'grid_field8' => 'grid',
'grid_field_label9' => 'grid',
'grid_field9' => 'grid' ),
'itemLocations' => array( 'details_preview' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'details_preview3' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'details_preview2' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'details_preview4' => array( 'location' => 'grid',
'cellId' => 'cell_dpreview' ),
'simple_grid_field20' => array( 'location' => 'grid',
'cellId' => 'cell_label' ),
'simple_grid_field' => array( 'location' => 'grid',
'cellId' => 'cell_field' ),
'simple_grid_field21' => array( 'location' => 'grid',
'cellId' => 'cell_label1' ),
'simple_grid_field1' => array( 'location' => 'grid',
'cellId' => 'cell_field1' ),
'grid_field_label2' => array( 'location' => 'grid',
'cellId' => 'cell_label2' ),
'grid_field2' => array( 'location' => 'grid',
'cellId' => 'cell_field2' ),
'simple_grid_field25' => array( 'location' => 'grid',
'cellId' => 'cell_label5' ),
'simple_grid_field8' => array( 'location' => 'grid',
'cellId' => 'cell_field5' ),
'grid_field_label' => array( 'location' => 'grid',
'cellId' => 'cell_label6' ),
'grid_field' => array( 'location' => 'grid',
'cellId' => 'cell_field6' ),
'simple_grid_field27' => array( 'location' => 'grid',
'cellId' => 'cell_label7' ),
'simple_grid_field3' => array( 'location' => 'grid',
'cellId' => 'cell_field7' ),
'simple_grid_field4' => array( 'location' => 'grid',
'cellId' => 'cell_label8' ),
'simple_grid_field5' => array( 'location' => 'grid',
'cellId' => 'cell_label9' ),
'simple_grid_field10' => array( 'location' => 'grid',
'cellId' => 'cell_label10' ),
'simple_grid_field11' => array( 'location' => 'grid',
'cellId' => 'cell_label11' ),
'simple_grid_field12' => array( 'location' => 'grid',
'cellId' => 'cell_label12' ),
'simple_grid_field13' => array( 'location' => 'grid',
'cellId' => 'cell_field13' ),
'simple_grid_field14' => array( 'location' => 'grid',
'cellId' => 'cell_field14' ),
'simple_grid_field35' => array( 'location' => 'grid',
'cellId' => 'cell_label15' ),
'simple_grid_field15' => array( 'location' => 'grid',
'cellId' => 'cell_field15' ),
'simple_grid_field36' => array( 'location' => 'grid',
'cellId' => 'cell_label16' ),
'simple_grid_field16' => array( 'location' => 'grid',
'cellId' => 'cell_field16' ),
'simple_grid_field37' => array( 'location' => 'grid',
'cellId' => 'cell_label17' ),
'simple_grid_field17' => array( 'location' => 'grid',
'cellId' => 'cell_field17' ),
'simple_grid_field38' => array( 'location' => 'grid',
'cellId' => 'cell_label18' ),
'simple_grid_field18' => array( 'location' => 'grid',
'cellId' => 'cell_field18' ),
'details_preview1' => array( 'location' => 'grid',
'cellId' => 'cell_field21' ),
'grid_field_label1' => array( 'location' => 'grid',
'cellId' => 'cell_label20' ),
'grid_field1' => array( 'location' => 'grid',
'cellId' => 'cell_field8' ),
'grid_field_label3' => array( 'location' => 'grid',
'cellId' => 'cell_label3' ),
'grid_field3' => array( 'location' => 'grid',
'cellId' => 'cell_field3' ),
'grid_field_label4' => array( 'location' => 'grid',
'cellId' => 'cell_label19' ),
'grid_field4' => array( 'location' => 'grid',
'cellId' => 'cell_field9' ),
'grid_field_label5' => array( 'location' => 'grid',
'cellId' => 'cell_label21' ),
'grid_field5' => array( 'location' => 'grid',
'cellId' => 'cell_field10' ),
'grid_field_label6' => array( 'location' => 'grid',
'cellId' => 'cell_label22' ),
'grid_field6' => array( 'location' => 'grid',
'cellId' => 'cell_field11' ),
'grid_field_label7' => array( 'location' => 'grid',
'cellId' => 'cell_label23' ),
'grid_field7' => array( 'location' => 'grid',
'cellId' => 'cell_field12' ),
'grid_field_label8' => array( 'location' => 'grid',
'cellId' => 'cell_label24' ),
'grid_field8' => array( 'location' => 'grid',
'cellId' => 'cell_field19' ),
'grid_field_label9' => array( 'location' => 'grid',
'cellId' => 'cell_label25' ),
'grid_field9' => array( 'location' => 'grid',
'cellId' => 'cell_field20' ) ),
'itemVisiblity' => array(  ) ),
'itemsByType' => array( 'print_header' => array( 'print_header' ),
'print_subheader' => array( 'print_subheader' ),
'print_pages' => array( 'print_pages' ),
'grid_field' => array( 'simple_grid_field',
'simple_grid_field1',
'simple_grid_field3',
'simple_grid_field4',
'simple_grid_field5',
'simple_grid_field8',
'simple_grid_field10',
'simple_grid_field11',
'simple_grid_field12',
'simple_grid_field13',
'simple_grid_field14',
'simple_grid_field15',
'simple_grid_field16',
'simple_grid_field17',
'simple_grid_field18',
'grid_field',
'grid_field1',
'grid_field2',
'grid_field3',
'grid_field4',
'grid_field5',
'grid_field6',
'grid_field7',
'grid_field8',
'grid_field9' ),
'details_preview' => array( 'details_preview1',
'details_preview',
'details_preview2',
'details_preview3',
'details_preview4' ),
'grid_field_label' => array( 'simple_grid_field20',
'simple_grid_field21',
'simple_grid_field25',
'simple_grid_field27',
'simple_grid_field35',
'simple_grid_field36',
'simple_grid_field37',
'simple_grid_field38',
'grid_field_label',
'grid_field_label1',
'grid_field_label2',
'grid_field_label3',
'grid_field_label4',
'grid_field_label5',
'grid_field_label6',
'grid_field_label7',
'grid_field_label8',
'grid_field_label9' ),
'print_pdf' => array( 'print_pdf' ),
'inline_add' => array( 'inline_add' ),
'grid_inline_cancel' => array( 'grid_inline_cancel' ) ),
'cellMaps' => array( 'grid' => array( 'cells' => array( 'cell_top' => array( 'cols' => array( 0,
1 ),
'rows' => array( 0 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label' => array( 'cols' => array( 0 ),
'rows' => array( 1 ),
'tags' => array( 'id_fieldheadercolumn' ),
'items' => array( 'simple_grid_field20' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field' => array( 'cols' => array( 1 ),
'rows' => array( 1 ),
'tags' => array( 'id_fieldcolumn' ),
'items' => array( 'simple_grid_field' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label1' => array( 'cols' => array( 0 ),
'rows' => array( 2 ),
'tags' => array( 'customer_name_fieldheadercolumn' ),
'items' => array( 'simple_grid_field21' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field1' => array( 'cols' => array( 1 ),
'rows' => array( 2 ),
'tags' => array( 'customer_name_fieldcolumn' ),
'items' => array( 'simple_grid_field1' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label5' => array( 'cols' => array( 0 ),
'rows' => array( 3 ),
'tags' => array( 'date___time_fieldheadercolumn' ),
'items' => array( 'simple_grid_field25' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field5' => array( 'cols' => array( 1 ),
'rows' => array( 3 ),
'tags' => array( 'date___time_fieldcolumn' ),
'items' => array( 'simple_grid_field8' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label7' => array( 'cols' => array( 0 ),
'rows' => array( 4 ),
'tags' => array( 'user_fieldheadercolumn' ),
'items' => array( 'simple_grid_field27' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field7' => array( 'cols' => array( 1 ),
'rows' => array( 4 ),
'tags' => array( 'user_fieldcolumn' ),
'items' => array( 'simple_grid_field3' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label8' => array( 'cols' => array( 0,
1 ),
'rows' => array( 5 ),
'tags' => array( 'company_name_fieldcolumn' ),
'items' => array( 'simple_grid_field4' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label9' => array( 'cols' => array( 0,
1 ),
'rows' => array( 6 ),
'tags' => array( 'address_line_1_fieldcolumn' ),
'items' => array( 'simple_grid_field5' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label10' => array( 'cols' => array( 0,
1 ),
'rows' => array( 7 ),
'tags' => array( 'address_line_2_fieldcolumn' ),
'items' => array( 'simple_grid_field10' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label11' => array( 'cols' => array( 0,
1 ),
'rows' => array( 8 ),
'tags' => array( 'hot_line_fieldcolumn' ),
'items' => array( 'simple_grid_field11' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label12' => array( 'cols' => array( 0,
1 ),
'rows' => array( 9 ),
'tags' => array( 'Fax_fieldcolumn' ),
'items' => array( 'simple_grid_field12' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label13' => array( 'cols' => array( 0 ),
'rows' => array( 10 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field13' => array( 'cols' => array( 1 ),
'rows' => array( 10 ),
'tags' => array( 'email_fieldcolumn' ),
'items' => array( 'simple_grid_field13' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field21' => array( 'cols' => array( 0,
1 ),
'rows' => array( 11 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => true,
'fixedAtClient' => true ),
'cell_label14' => array( 'cols' => array( 0 ),
'rows' => array( 12 ),
'tags' => array(  ),
'items' => array(  ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field14' => array( 'cols' => array( 1 ),
'rows' => array( 12 ),
'tags' => array( 'header_fieldcolumn' ),
'items' => array( 'simple_grid_field14' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label15' => array( 'cols' => array( 0 ),
'rows' => array( 13 ),
'tags' => array( 'footer_fieldheadercolumn' ),
'items' => array( 'simple_grid_field35' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field15' => array( 'cols' => array( 1 ),
'rows' => array( 13 ),
'tags' => array( 'footer_fieldcolumn' ),
'items' => array( 'simple_grid_field15' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label16' => array( 'cols' => array( 0 ),
'rows' => array( 14 ),
'tags' => array( 'logo_fieldheadercolumn' ),
'items' => array( 'simple_grid_field36' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field16' => array( 'cols' => array( 1 ),
'rows' => array( 14 ),
'tags' => array( 'logo_fieldcolumn' ),
'items' => array( 'simple_grid_field16' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label17' => array( 'cols' => array( 0 ),
'rows' => array( 15 ),
'tags' => array( 'total_amount_fieldheadercolumn' ),
'items' => array( 'simple_grid_field37' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field17' => array( 'cols' => array( 1 ),
'rows' => array( 15 ),
'tags' => array( 'total_amount_fieldcolumn' ),
'items' => array( 'simple_grid_field17' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label18' => array( 'cols' => array( 0 ),
'rows' => array( 16 ),
'tags' => array( 'difect_fieldheadercolumn' ),
'items' => array( 'simple_grid_field38' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field18' => array( 'cols' => array( 1 ),
'rows' => array( 16 ),
'tags' => array( 'difect_fieldcolumn' ),
'items' => array( 'simple_grid_field18' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label6' => array( 'cols' => array( 0 ),
'rows' => array( 17 ),
'tags' => array( 'branch_code_fieldheadercolumn' ),
'items' => array( 'grid_field_label' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field6' => array( 'cols' => array( 1 ),
'rows' => array( 17 ),
'tags' => array( 'branch_code_fieldcolumn' ),
'items' => array( 'grid_field' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label20' => array( 'cols' => array( 0 ),
'rows' => array( 18 ),
'tags' => array( 'outlet_code_fieldheadercolumn' ),
'items' => array( 'grid_field_label1' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field8' => array( 'cols' => array( 1 ),
'rows' => array( 18 ),
'tags' => array( 'outlet_code_fieldcolumn' ),
'items' => array( 'grid_field1' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label2' => array( 'cols' => array( 0 ),
'rows' => array( 19 ),
'tags' => array( 'paid_fieldheadercolumn' ),
'items' => array( 'grid_field_label2' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field2' => array( 'cols' => array( 1 ),
'rows' => array( 19 ),
'tags' => array( 'paid_fieldcolumn' ),
'items' => array( 'grid_field2' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label3' => array( 'cols' => array( 0 ),
'rows' => array( 20 ),
'tags' => array( 'tt_fieldheadercolumn' ),
'items' => array( 'grid_field_label3' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field3' => array( 'cols' => array( 1 ),
'rows' => array( 20 ),
'tags' => array( 'tt_fieldcolumn' ),
'items' => array( 'grid_field3' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label19' => array( 'cols' => array( 0 ),
'rows' => array( 21 ),
'tags' => array( 'advance_id_fieldheadercolumn' ),
'items' => array( 'grid_field_label4' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field9' => array( 'cols' => array( 1 ),
'rows' => array( 21 ),
'tags' => array( 'advance_id_fieldcolumn' ),
'items' => array( 'grid_field4' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label21' => array( 'cols' => array( 0 ),
'rows' => array( 22 ),
'tags' => array( 'amount_fieldheadercolumn' ),
'items' => array( 'grid_field_label5' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field10' => array( 'cols' => array( 1 ),
'rows' => array( 22 ),
'tags' => array( 'amount_fieldcolumn' ),
'items' => array( 'grid_field5' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label22' => array( 'cols' => array( 0 ),
'rows' => array( 23 ),
'tags' => array( 'left_advance_fieldheadercolumn' ),
'items' => array( 'grid_field_label6' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field11' => array( 'cols' => array( 1 ),
'rows' => array( 23 ),
'tags' => array( 'left_advance_fieldcolumn' ),
'items' => array( 'grid_field6' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label23' => array( 'cols' => array( 0 ),
'rows' => array( 24 ),
'tags' => array( 'details_fieldheadercolumn' ),
'items' => array( 'grid_field_label7' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field12' => array( 'cols' => array( 1 ),
'rows' => array( 24 ),
'tags' => array( 'details_fieldcolumn' ),
'items' => array( 'grid_field7' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label24' => array( 'cols' => array( 0 ),
'rows' => array( 25 ),
'tags' => array( 'status_fieldheadercolumn' ),
'items' => array( 'grid_field_label8' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field19' => array( 'cols' => array( 1 ),
'rows' => array( 25 ),
'tags' => array( 'status_fieldcolumn' ),
'items' => array( 'grid_field8' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_label25' => array( 'cols' => array( 0 ),
'rows' => array( 26 ),
'tags' => array( 'customer_id_fieldheadercolumn' ),
'items' => array( 'grid_field_label9' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_field20' => array( 'cols' => array( 1 ),
'rows' => array( 26 ),
'tags' => array( 'customer_id_fieldcolumn' ),
'items' => array( 'grid_field9' ),
'fixedAtServer' => false,
'fixedAtClient' => false ),
'cell_dpreview' => array( 'cols' => array( 0,
1 ),
'rows' => array( 27 ),
'tags' => array(  ),
'items' => array( 'details_preview',
'details_preview3',
'details_preview2',
'details_preview4' ),
'fixedAtServer' => true,
'fixedAtClient' => false ) ),
'width' => 2,
'height' => 28 ) ) ),
'loginForm' => array( 'loginForm' => 3 ),
'page' => array( 'labeledButtons' => array( 'update_records' => array(  ),
'print_pages' => array( 'print_pages' => array( 'tag' => 'PRINT_PAGES',
'type' => 2 ) ),
'register_activate_message' => array(  ),
'details_found' => array(  ) ),
'gridType' => 1,
'recsPerRow' => 1,
'hasCustomButtons' => false,
'customButtons' => array(  ) ),
'misc' => array( 'type' => 'print',
'breadcrumb' => false ),
'events' => array( 'maps' => array(  ),
'mapsData' => array(  ),
'buttons' => array(  ) ),
'dataGrid' => array( 'groupFields' => array(  ) ) );
			$pageArray = array( 'id' => 'print',
'type' => 'print',
'layoutId' => 'basic',
'disabled' => 0,
'default' => 0,
'forms' => array( 'top' => array( 'modelId' => 'print-header',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
'section' => '' ),
array( 'cells' => array( array( 'cell' => 'c2' ) ),
'section' => '' ) ),
'cells' => array( 'c2' => array( 'model' => 'c2',
'items' => array( 'print_header',
'print_subheader' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'c1' => array( 'model' => 'c1',
'items' => array( 'print_pdf' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'above-grid' => array( 'modelId' => 'print-above-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'c1' ) ),
'section' => '' ) ),
'cells' => array( 'c1' => array( 'model' => 'c1',
'items' => array( 'print_pages',
'grid_inline_cancel',
'inline_add' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'below-grid' => array( 'modelId' => 'print-below-grid',
'grid' => array(  ),
'cells' => array(  ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ),
'grid' => array( 'modelId' => 'vertical-grid',
'grid' => array( array( 'cells' => array( array( 'cell' => 'cell_top',
'colspan' => 2 ) ),
'section' => 'head' ),
array( 'cells' => array( array( 'cell' => 'cell_label' ),
array( 'cell' => 'cell_field' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label1' ),
array( 'cell' => 'cell_field1' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label5' ),
array( 'cell' => 'cell_field5' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label7' ),
array( 'cell' => 'cell_field7' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label8',
'colspan' => 2 ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label9',
'colspan' => 2 ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label10',
'colspan' => 2 ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label11',
'colspan' => 2 ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label12',
'colspan' => 2 ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label13' ),
array( 'cell' => 'cell_field13' ) ),
'section' => 'body' ),
array( 'section' => 'body',
'cells' => array( array( 'cell' => 'cell_field21',
'colspan' => 2 ) ) ),
array( 'cells' => array( array( 'cell' => 'cell_label14' ),
array( 'cell' => 'cell_field14' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label15' ),
array( 'cell' => 'cell_field15' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label16' ),
array( 'cell' => 'cell_field16' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label17' ),
array( 'cell' => 'cell_field17' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label18' ),
array( 'cell' => 'cell_field18' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label6' ),
array( 'cell' => 'cell_field6' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label20' ),
array( 'cell' => 'cell_field8' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label2' ),
array( 'cell' => 'cell_field2' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label3' ),
array( 'cell' => 'cell_field3' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label19' ),
array( 'cell' => 'cell_field9' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label21' ),
array( 'cell' => 'cell_field10' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label22' ),
array( 'cell' => 'cell_field11' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label23' ),
array( 'cell' => 'cell_field12' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label24' ),
array( 'cell' => 'cell_field19' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_label25' ),
array( 'cell' => 'cell_field20' ) ),
'section' => 'body' ),
array( 'cells' => array( array( 'cell' => 'cell_dpreview',
'colspan' => 2 ) ),
'section' => 'foot' ) ),
'cells' => array( 'cell_top' => array( 'model' => 'cell_top',
'items' => array(  ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'cell_dpreview' => array( 'model' => 'cell_dpreview',
'items' => array( 'details_preview',
'details_preview3',
'details_preview2',
'details_preview4' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'cell_label' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field20' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'id',
'columnName' => 'field' ),
'cell_field' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'id',
'columnName' => 'field' ),
'cell_label1' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field21' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'customer_name',
'columnName' => 'field' ),
'cell_field1' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field1' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'customer_name',
'columnName' => 'field' ),
'cell_label2' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label2' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'paid',
'columnName' => 'field' ),
'cell_field2' => array( 'model' => 'cell_field',
'items' => array( 'grid_field2' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'paid',
'columnName' => 'field' ),
'cell_label5' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field25' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'date_&_time',
'columnName' => 'field' ),
'cell_field5' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field8' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'date_&_time',
'columnName' => 'field' ),
'cell_label6' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'branch_code',
'columnName' => 'field' ),
'cell_field6' => array( 'model' => 'cell_field',
'items' => array( 'grid_field' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'branch_code',
'columnName' => 'field' ),
'cell_label7' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field27' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'user',
'columnName' => 'field' ),
'cell_field7' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field3' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'user',
'columnName' => 'field' ),
'cell_label8' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field4' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center',
'field' => 'company_name',
'columnName' => 'field' ),
'cell_label9' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field5' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center',
'field' => 'address_line_1',
'columnName' => 'field' ),
'cell_label10' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field10' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center',
'field' => 'address_line_2',
'columnName' => 'field' ),
'cell_label11' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field11' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center',
'field' => 'hot_line',
'columnName' => 'field' ),
'cell_label12' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field12' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'align' => 'center',
'field' => 'Fax',
'columnName' => 'field' ),
'cell_label13' => array( 'model' => 'cell_label',
'items' => array(  ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'cell_field13' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field13' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'email',
'columnName' => 'field' ),
'cell_label14' => array( 'model' => 'cell_label',
'items' => array(  ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0 ),
'cell_field14' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field14' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'header',
'columnName' => 'field' ),
'cell_label15' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field35' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'footer',
'columnName' => 'field' ),
'cell_field15' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field15' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'footer',
'columnName' => 'field' ),
'cell_label16' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field36' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'logo',
'columnName' => 'field' ),
'cell_field16' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field16' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'logo',
'columnName' => 'field' ),
'cell_label17' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field37' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'total amount',
'columnName' => 'field' ),
'cell_field17' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field17' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'total amount',
'columnName' => 'field' ),
'cell_label18' => array( 'model' => 'cell_label',
'items' => array( 'simple_grid_field38' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'difect',
'columnName' => 'field' ),
'cell_field18' => array( 'model' => 'cell_field',
'items' => array( 'simple_grid_field18' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'difect',
'columnName' => 'field' ),
'cell_field21' => array( 'model' => 'cell_field',
'items' => array( 'details_preview1' ),
'align' => 'center',
'persistent' => true,
'useFullWidth' => true ),
'cell_label20' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label1' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'outlet_code',
'columnName' => 'field' ),
'cell_field8' => array( 'model' => 'cell_field',
'items' => array( 'grid_field1' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'outlet_code',
'columnName' => 'field' ),
'cell_label3' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label3' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'tt',
'columnName' => 'field' ),
'cell_field3' => array( 'model' => 'cell_field',
'items' => array( 'grid_field3' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'tt',
'columnName' => 'field' ),
'cell_label19' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label4' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'advance_id',
'columnName' => 'field' ),
'cell_field9' => array( 'model' => 'cell_field',
'items' => array( 'grid_field4' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'advance_id',
'columnName' => 'field' ),
'cell_label21' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label5' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'amount',
'columnName' => 'field' ),
'cell_field10' => array( 'model' => 'cell_field',
'items' => array( 'grid_field5' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'amount',
'columnName' => 'field' ),
'cell_label22' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label6' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'left_advance',
'columnName' => 'field' ),
'cell_field11' => array( 'model' => 'cell_field',
'items' => array( 'grid_field6' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'left_advance',
'columnName' => 'field' ),
'cell_label23' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label7' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'details',
'columnName' => 'field' ),
'cell_field12' => array( 'model' => 'cell_field',
'items' => array( 'grid_field7' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'details',
'columnName' => 'field' ),
'cell_label24' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label8' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'status',
'columnName' => 'field' ),
'cell_field19' => array( 'model' => 'cell_field',
'items' => array( 'grid_field8' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'status',
'columnName' => 'field' ),
'cell_label25' => array( 'model' => 'cell_label',
'items' => array( 'grid_field_label9' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'customer_id',
'columnName' => 'field' ),
'cell_field20' => array( 'model' => 'cell_field',
'items' => array( 'grid_field9' ),
'_t' => 'Map',
'_i' => array(  ),
'_s' => 0,
'field' => 'customer_id',
'columnName' => 'field' ) ),
'deferredItems' => array(  ),
'recsPerRow' => 1 ) ),
'items' => array( 'print_header' => array( 'type' => 'print_header' ),
'print_subheader' => array( 'type' => 'print_subheader' ),
'print_pages' => array( 'type' => 'print_pages' ),
'simple_grid_field' => array( 'field' => 'id',
'type' => 'grid_field' ),
'simple_grid_field1' => array( 'field' => 'customer_name',
'type' => 'grid_field' ),
'simple_grid_field3' => array( 'field' => 'user',
'type' => 'grid_field' ),
'details_preview1' => array( 'type' => 'details_preview',
'table' => 'details',
'items' => array(  ),
'popup' => false,
'pageId' => 'print1',
'mobileDisplay' => 'both',
'hideEmptyPreview' => true ),
'simple_grid_field4' => array( 'field' => 'company_name',
'type' => 'grid_field' ),
'simple_grid_field5' => array( 'field' => 'address_line_1',
'type' => 'grid_field' ),
'simple_grid_field8' => array( 'field' => 'date_&_time',
'type' => 'grid_field' ),
'simple_grid_field10' => array( 'field' => 'address_line_2',
'type' => 'grid_field' ),
'simple_grid_field11' => array( 'field' => 'hot_line',
'type' => 'grid_field' ),
'simple_grid_field12' => array( 'field' => 'Fax',
'type' => 'grid_field' ),
'simple_grid_field13' => array( 'field' => 'email',
'type' => 'grid_field' ),
'simple_grid_field14' => array( 'field' => 'header',
'type' => 'grid_field' ),
'simple_grid_field15' => array( 'field' => 'footer',
'type' => 'grid_field' ),
'simple_grid_field16' => array( 'field' => 'logo',
'type' => 'grid_field' ),
'simple_grid_field17' => array( 'field' => 'total amount',
'type' => 'grid_field' ),
'simple_grid_field18' => array( 'field' => 'difect',
'type' => 'grid_field' ),
'simple_grid_field20' => array( 'type' => 'grid_field_label',
'field' => 'id' ),
'simple_grid_field21' => array( 'type' => 'grid_field_label',
'field' => 'customer_name' ),
'simple_grid_field25' => array( 'type' => 'grid_field_label',
'field' => 'date_&_time' ),
'simple_grid_field27' => array( 'type' => 'grid_field_label',
'field' => 'user' ),
'simple_grid_field35' => array( 'type' => 'grid_field_label',
'field' => 'footer' ),
'simple_grid_field36' => array( 'type' => 'grid_field_label',
'field' => 'logo' ),
'simple_grid_field37' => array( 'type' => 'grid_field_label',
'field' => 'total amount' ),
'simple_grid_field38' => array( 'type' => 'grid_field_label',
'field' => 'difect' ),
'print_pdf' => array( 'type' => 'print_pdf',
'targetPages' => array(  ),
'splitModes' => array(  ),
'scopes' => array(  ) ),
'grid_field' => array( 'field' => 'branch_code',
'type' => 'grid_field' ),
'grid_field_label' => array( 'type' => 'grid_field_label',
'field' => 'branch_code' ),
'grid_field1' => array( 'field' => 'outlet_code',
'type' => 'grid_field' ),
'grid_field_label1' => array( 'type' => 'grid_field_label',
'field' => 'outlet_code' ),
'details_preview' => array( 'type' => 'details_preview',
'table' => 'paymets',
'items' => array(  ),
'popup' => false ),
'details_preview2' => array( 'type' => 'details_preview',
'table' => 'payments',
'items' => array(  ),
'popup' => false,
'pageId' => 'print' ),
'grid_field2' => array( 'field' => 'paid',
'type' => 'grid_field' ),
'grid_field_label2' => array( 'type' => 'grid_field_label',
'field' => 'paid' ),
'details_preview3' => array( 'type' => 'details_preview',
'table' => 'sales_details',
'items' => array(  ),
'popup' => false,
'pageId' => 'print' ),
'grid_field3' => array( 'field' => 'tt',
'type' => 'grid_field' ),
'grid_field_label3' => array( 'type' => 'grid_field_label',
'field' => 'tt' ),
'grid_field4' => array( 'field' => 'advance_id',
'type' => 'grid_field' ),
'grid_field_label4' => array( 'type' => 'grid_field_label',
'field' => 'advance_id' ),
'grid_field5' => array( 'field' => 'amount',
'type' => 'grid_field' ),
'grid_field_label5' => array( 'type' => 'grid_field_label',
'field' => 'amount' ),
'grid_field6' => array( 'field' => 'left_advance',
'type' => 'grid_field' ),
'grid_field_label6' => array( 'type' => 'grid_field_label',
'field' => 'left_advance' ),
'grid_field7' => array( 'field' => 'details',
'type' => 'grid_field' ),
'grid_field_label7' => array( 'type' => 'grid_field_label',
'field' => 'details' ),
'grid_field8' => array( 'field' => 'status',
'type' => 'grid_field' ),
'grid_field_label8' => array( 'type' => 'grid_field_label',
'field' => 'status' ),
'grid_field9' => array( 'field' => 'customer_id',
'type' => 'grid_field' ),
'grid_field_label9' => array( 'type' => 'grid_field_label',
'field' => 'customer_id' ),
'details_preview4' => array( 'type' => 'details_preview',
'table' => 'sales_history_total',
'items' => array(  ),
'popup' => false ),
'inline_add' => array( 'type' => 'inline_add',
'detailsOnly' => true ),
'grid_inline_cancel' => array( 'type' => 'grid_inline_cancel' ) ),
'dbProps' => array(  ),
'version' => 4 );
		?>