Bug 5682: Voided Invoices and PO Deliveries showing up in inquiries. Fixed.
[fa-stable.git] / purchasing / view / view_po.php
index c83d12b3e452d972b436c44bbdc309b492ba98e7..ca554b5ebf2089876d76d0d6c6f2860991cfca20 100644 (file)
@@ -118,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"]));
@@ -143,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"]));