+$_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'];
+$_POST['del_coy_logo'] = 0;
+$_POST['bcc_email'] = $myrow["bcc_email"];
+$_POST['alternative_tax_include_on_docs'] = $myrow["alternative_tax_include_on_docs"];
+$_POST['suppress_tax_rates'] = $myrow["suppress_tax_rates"];
+$_POST['use_manufacturing'] = $myrow["use_manufacturing"];
+$_POST['use_fixed_assets'] = $myrow["use_fixed_assets"];