Fixing bug in Customer Inquiry and Supplier Inquiry
[fa-stable.git] / sales / inquiry / customer_inquiry.php
index d00a049fe310f9c031a1531de171c45623232dc6..feede0bd8242eda1e1d577fd52a825bcccf7816c 100644 (file)
@@ -170,7 +170,7 @@ set_global_customer($_POST['customer_id']);
 //------------------------------------------------------------------------------------------------
 
 div_start('totals_tbl');
-if ($_POST['customer_id'] != ALL_TEXT && $_POST['filterType'] == '2')
+if ($_POST['customer_id'] != "" && $_POST['customer_id'] != ALL_TEXT)
 {
        $customer_record = get_customer_details(get_post('customer_id'), get_post('TransToDate'));
     display_customer_summary($customer_record);