X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Finquiry%2Fcustomer_inquiry.php;h=5687d0fcdbe47ed800870410a82b2263f5551981;hb=13367be8aaf5175295f7aab7160370458dad1824;hp=86b965881f6ef4bdb677a816b2c7c0c9645296f6;hpb=264c09696d65efe4532c197f317162daf8c24f32;p=fa-stable.git diff --git a/sales/inquiry/customer_inquiry.php b/sales/inquiry/customer_inquiry.php index 86b96588..5687d0fc 100644 --- a/sales/inquiry/customer_inquiry.php +++ b/sales/inquiry/customer_inquiry.php @@ -21,7 +21,7 @@ include_once($path_to_root . "/reporting/includes/reporting.inc"); $js = ""; if ($use_popup_windows) $js .= get_js_open_window(900, 500); -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); page(_($help_context = "Customer Transactions"), isset($_GET['customer_id']), false, "", $js); @@ -191,7 +191,8 @@ function check_overdue($row) && floatcmp($row["TotalAmount"], $row["Allocated"]) != 0; } //------------------------------------------------------------------------------------------------ -$sql = get_sql_for_customer_inquiry(); +$sql = get_sql_for_customer_inquiry(get_post('TransAfterDate'), get_post('TransToDate'), + get_post('customer_id'), get_post('filterType')); //------------------------------------------------------------------------------------------------ db_query("set @bal:=0");