Don't delete templates
[fa-stable.git] / admin / company_preferences.php
index ac5eb4496e74d5ad3c20ff00a84b4a1255f50c6a..648d260f7541697b220a0418a77cc83fdff0e616 100644 (file)
@@ -101,7 +101,7 @@ if (isset($_POST['update']) && $_POST['update'] != "")
                        $_POST['email'], $_POST['coy_logo'], $_POST['domicile'],
                        $_POST['use_dimension'], $_POST['curr_default'], $_POST['f_year'], 
                        check_value('no_item_list'), check_value('no_customer_list'), 
-                       check_value('no_supplier_list'), $_POST['base_sales']);
+                       check_value('no_supplier_list'), $_POST['base_sales'], check_value('time_zone'));
 
                display_notification_centered(_("Company setup has been updated."));
        }
@@ -134,6 +134,8 @@ $_POST['no_customer_list']  = $myrow["no_customer_list"];
 $_POST['no_supplier_list']  = $myrow["no_supplier_list"];
 $_POST['curr_default']  = $myrow["curr_default"];
 $_POST['f_year']  = $myrow["f_year"];
+$_POST['time_zone']  = $myrow["time_zone"];
+$_POST['version_id']  = $myrow["version_id"];
 $_POST['del_coy_logo']  = 0;
 
 start_outer_table($table_style2);
@@ -151,13 +153,13 @@ text_row_ex(_("Official Company Number:"), 'coy_no', 25);
 text_row_ex(_("GSTNo:"), 'gst_no', 25);
 
 currencies_list_row(_("Home Currency:"), 'curr_default', $_POST['curr_default']);
+fiscalyears_list_row(_("Fiscal Year:"), 'f_year', $_POST['f_year']);
 
 table_section(2);
 
 text_row_ex(_("Tax Periods:"), 'tax_prd', 10, 10, '', null, null, _('Months.'));
 text_row_ex(_("Tax Last Period:"), 'tax_last', 10, 10, '', null, null, _('Months back.'));
 
-fiscalyears_list_row(_("Fiscal Year:"), 'f_year', $_POST['f_year']);
 label_row(_("Company Logo:"), $_POST['coy_logo']);
 label_row(_("New Company Logo (.jpg)") . ":", "<input type='file' id='pic' name='pic'>");
 check_row(_("Delete Company Logo:"), 'del_coy_logo', $_POST['del_coy_logo']);
@@ -170,13 +172,14 @@ sales_types_list_row(_("Base for auto price calculations:"), 'base_sales', $_POS
 check_row(_("Search Item List"), 'no_item_list', $_POST['no_item_list']);
 check_row(_("Search Customer List"), 'no_customer_list', $_POST['no_customer_list']);
 check_row(_("Search Supplier List"), 'no_supplier_list', $_POST['no_supplier_list']);
+label_row("", "&nbsp;");
+check_row(_("Time Zone on Reports"), 'time_zone', $_POST['time_zone']);
+label_row(_("Version Id"), $_POST['version_id']);
 
-start_row();
-end_row();
 end_outer_table(1);
 
 hidden('coy_logo', $_POST['coy_logo']);
-submit_center('update', _("Update"), true, '', true);
+submit_center('update', _("Update"), true, '',  'default');
 
 end_form(2);
 //-------------------------------------------------------------------------------------------------