+$_POST['shortname_name_in_list'] = $myrow["shortname_name_in_list"];
+$_POST['no_item_list'] = $myrow["no_item_list"];
+$_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"];
+if (!isset($myrow["company_logo_report"]))
+{
+ set_company_pref("company_logo_report", "setup.company", "tinyint", 1, '0');
+ $myrow["company_logo_report"] = get_company_pref("company_logo_report");
+}
+$_POST['company_logo_report'] = $myrow["company_logo_report"];
+if (!isset($myrow["ref_no_auto_increase"]))
+{
+ set_company_pref("ref_no_auto_increase", "setup.company", "tinyint", 1, '0');
+ $myrow["ref_no_auto_increase"] = get_company_pref("ref_no_auto_increase");
+}
+$_POST['ref_no_auto_increase'] = $myrow["ref_no_auto_increase"];
+if (!isset($myrow["barcodes_on_stock"]))
+{
+ set_company_pref("barcodes_on_stock", "setup.company", "tinyint", 1, '0');
+ $myrow["barcodes_on_stock"] = get_company_pref("barcodes_on_stock");
+}
+$_POST['barcodes_on_stock'] = $myrow["barcodes_on_stock"];
+if (!isset($myrow["print_dialog_direct"]))
+{
+ set_company_pref("print_dialog_direct", "setup.company", "tinyint", 1, '0');
+ $myrow["print_dialog_direct"] = get_company_pref("print_dialog_direct");
+}
+$_POST['print_dialog_direct'] = $myrow["print_dialog_direct"];
+$_POST['version_id'] = $myrow["version_id"];
+$_POST['add_pct'] = $myrow['add_pct'];
+$_POST['login_tout'] = $myrow['login_tout'];
+if ($_POST['add_pct'] == -1)
+ $_POST['add_pct'] = "";
+$_POST['round_to'] = $myrow['round_to'];
+$_POST['auto_curr_reval'] = $myrow['auto_curr_reval'];