Bug 5682: Voided Invoices and PO Deliveries showing up in inquiries. Fixed.
[fa-stable.git] / purchasing / inquiry / supplier_inquiry.php
index f3c3141e648c6bc72f488739cfd4ef42fe3b60b3..c07ef3b2acf7db6f1a66bb10970ff008e126f24f 100644 (file)
@@ -81,6 +81,8 @@ function due_date($row)
 
 function gl_view($row)
 {
+       if ($row['type'] == ST_SUPPRECEIVE && get_voided_entry(ST_SUPPRECEIVE, $row['trans_no']))
+               return set_icon(ICON_REMOVE, _("Voided."));
        return get_gl_view_str($row["type"], $row["trans_no"]);
 }