Added 'View Attachments' if any in all popup view windows
[fa-stable.git] / sales / view / view_invoice.php
index 6a13b1aedba50b6c41947ccee8f77667fbb8cd92..44715413dae0653021e3ed4b081c79a6d538de60 100644 (file)
@@ -20,7 +20,7 @@ include_once($path_to_root . "/sales/includes/sales_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 600);
-page(_("View Sales Invoice"), true, false, "", $js);
+page(_($help_context = "View Sales Invoice"), true, false, "", $js);
 
 
 if (isset($_GET["trans_no"]))
@@ -168,6 +168,6 @@ end_table(1);
 
 is_voided_display(ST_SALESINVOICE, $trans_id, _("This invoice has been voided."));
 
-end_page(true);
+end_page(true, false, false, ST_SALESINVOICE, $trans_id);
 
 ?>
\ No newline at end of file