Bug 5682: Voided Invoices and PO Deliveries showing up in inquiries. Fixed.
[fa-stable.git] / purchasing / view / view_supp_payment.php
index ecdee25a20eca4a901600c10212cade155e82900..fb29a75915be5622de91c618c826f214d9566e0f 100644 (file)
@@ -17,7 +17,7 @@ include($path_to_root . "/includes/session.inc");
 include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/purchasing/includes/purchasing_db.inc");
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(900, 500);
 page(_($help_context = "View Payment to Supplier"), true, false, "", $js);
 
@@ -42,6 +42,9 @@ if ($receipt['bank_curr_code'] != $receipt['curr_code'])
        $show_both_amounts = true;
 }
 
+if (!empty($SysPrefs->prefs['company_logo_on_views']))
+       company_logo_on_view();
+
 echo "<center>";
 
 display_heading(_("Payment to Supplier") . " #$trans_no");
@@ -91,4 +94,3 @@ if (!$voided)
 }
 
 end_page(true, false, false, ST_SUPPAYMENT, $trans_no);
-?>
\ No newline at end of file