'use_dimension', 'curr_default', 'f_year',
'no_item_list' => 0, 'no_customer_list' => 0,
'no_supplier_list' =>0, 'base_sales',
- 'time_zone' => 0, 'add_pct', 'round_to', 'login_tout', 'auto_curr_reval',
+ 'time_zone' => 0, 'company_logo_report' => 0, 'add_pct', 'round_to', 'login_tout', 'auto_curr_reval',
'bcc_email', 'alternative_tax_include_on_docs', 'suppress_tax_rates',
'use_manufacturing', 'use_fixed_assets'))
);
$_POST['curr_default'] = $myrow["curr_default"];
$_POST['f_year'] = $myrow["f_year"];
$_POST['time_zone'] = $myrow["time_zone"];
+if (empty($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"];
$_POST['version_id'] = $myrow["version_id"];
$_POST['add_pct'] = $myrow['add_pct'];
$_POST['login_tout'] = $myrow['login_tout'];
check_row(_("Automatic Revaluation Currency Accounts"), 'auto_curr_reval', $_POST['auto_curr_reval']);
check_row(_("Time Zone on Reports"), 'time_zone', $_POST['time_zone']);
+check_row(_("Company Logo on Reports"), 'company_logo_report', $_POST['company_logo_report']);
label_row(_("Database Scheme Version"), $_POST['version_id']);
table_section(2);
$this->Font();
$this->fontSize -= 4;
$logo = company_path() . "/images/" . $this->company['coy_logo'];
- if (!empty($SysPrefs->show_company_logo_report) && $this->company['coy_logo'] != '' && file_exists($logo))
+ if (!empty($SysPrefs->prefs['company_logo_report']) && $this->company['coy_logo'] != '' && file_exists($logo))
{
$this->row -= ($this->lineHeight + 3);
$this->AddImage($logo, $companyCol, $this->row, 0, 30);