Fixed language modules locale.inc integration.
[fa-stable.git] / purchasing / view / view_po.php
index be8826440cf41ee4f5109c31933861e6a494f8de..ca554b5ebf2089876d76d0d6c6f2860991cfca20 100644 (file)
@@ -27,6 +27,9 @@ if (!isset($_GET['trans_no']))
        die ("<br>" . _("This page must be called with a purchase order number to review."));
 }
 
+if (!empty($SysPrefs->prefs['company_logo_on_views']))
+       company_logo_on_view();
+
 display_heading(_("Purchase Order") . " #" . $_GET['trans_no']);
 
 $purchase_order = new purch_order;
@@ -47,7 +50,6 @@ $th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), _("
 table_header($th);
 $total = $k = 0;
 $overdue_items = false;
-
 foreach ($purchase_order->line_items as $stock_item)
 {
 
@@ -116,6 +118,8 @@ if (db_num_rows($grns_result) > 0)
     table_header($th);
     while ($myrow = db_fetch($grns_result))
     {
+       if (get_voided_entry(ST_SUPPRECEIVE, $myrow['id']))
+               continue;
                alt_table_row_color($k);
 
        label_cell(get_trans_view_str(ST_SUPPRECEIVE,$myrow["id"]));
@@ -141,6 +145,8 @@ if (db_num_rows($invoice_result) > 0)
     table_header($th);
     while ($myrow = db_fetch($invoice_result))
     {
+       if (get_voided_entry($myrow["type"],$myrow["trans_no"]))
+               continue;
        alt_table_row_color($k);
 
        label_cell(get_trans_view_str($myrow["type"],$myrow["trans_no"]));