Bug 5682: Voided Invoices and PO Deliveries showing up in inquiries. Fixed.
[fa-stable.git] / purchasing / inquiry / supplier_inquiry.php
index c3be0430bac230edd10ba385a660059d5bd2b77d..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"]);
 }
 
@@ -156,7 +158,7 @@ div_start('totals_tbl');
 
 if ($_POST['supplier_id'] != "" && $_POST['supplier_id'] != ALL_TEXT)
 {
-       $supplier_record = get_supplier_details(get_post('supplier_id'), get_post('TransToDate'));
+       $supplier_record = get_supplier_details(get_post('supplier_id'), get_post('TransToDate'), false);
     display_supplier_summary($supplier_record);
 }
 div_end();