Layout improvements
[fa-stable.git] / purchasing / inquiry / supplier_inquiry.php
index 645cbab884b1f7d4898875ff97472bf6056c1439..822654ecbd1ce126f7cd5c6acf3fa61d5c003418 100644 (file)
@@ -22,7 +22,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_($help_context = "Supplier Inquiry"), false, false, "", $js);
+page(_($help_context = "Supplier Inquiry"), isset($_GET['supplier_id']), false, "", $js);
 
 if (isset($_GET['supplier_id'])){
        $_POST['supplier_id'] = $_GET['supplier_id'];
@@ -49,7 +49,7 @@ supplier_list_cells(_("Select a supplier:"), 'supplier_id', null, true);
 date_cells(_("From:"), 'TransAfterDate', '', null, -30);
 date_cells(_("To:"), 'TransToDate');
 
-supp_allocations_list_cell("filterType", null);
+supp_transactions_list_cell("filterType", null, true);
 
 submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default');
 
@@ -133,7 +133,7 @@ function credit_link($row)
 function fmt_debit($row)
 {
        $value = $row["TotalAmount"];
-       return $value>=0 ? price_format($value) : '';
+       return $value>0 ? price_format($value) : '';
 
 }