2.4.4 no Longer Displays 0.00 Sales Invoices in customer_inquiry.php. Fixed. $Braath...
[fa-stable.git] / sales / inquiry / customer_inquiry.php
index feede0bd8242eda1e1d577fd52a825bcccf7816c..eb98d3dad278b040f247b8df3a2f75d7d4dd7bb7 100644 (file)
@@ -160,6 +160,7 @@ if ($_POST['filterType'] != '2')
        date_cells(_("From:"), 'TransAfterDate', '', null, -user_transaction_days());
        date_cells(_("To:"), 'TransToDate', '', null);
 }
+check_cells(_("Zero values"), 'show_voided');
 
 submit_cells('RefreshInquiry', _("Search"),'',_('Refresh Inquiry'), 'default');
 end_row();
@@ -184,7 +185,7 @@ if (get_post('RefreshInquiry') || list_updated('filterType'))
 }
 //------------------------------------------------------------------------------------------------
 $sql = get_sql_for_customer_inquiry(get_post('TransAfterDate'), get_post('TransToDate'),
-       get_post('customer_id'), get_post('filterType'));
+       get_post('customer_id'), get_post('filterType'), check_value('show_voided'));
 
 //------------------------------------------------------------------------------------------------
 //db_query("set @bal:=0");