$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'];
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');
function fmt_debit($row)
{
$value = $row["TotalAmount"];
- return $value>=0 ? price_format($value) : '';
+ return $value>0 ? price_format($value) : '';
}