From: Janusz Dobrowolski Date: Wed, 23 Mar 2011 17:08:31 +0000 (+0100) Subject: Customer invoice inquire displayed also payments. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;ds=inline;h=e2fbec9661db6d9f83d5057b33f7f430f9355d47;p=fa-stable.git Customer invoice inquire displayed also payments. --- diff --git a/sales/includes/db/cust_trans_db.inc b/sales/includes/db/cust_trans_db.inc index 748fc2a0..29e611e1 100644 --- a/sales/includes/db/cust_trans_db.inc +++ b/sales/includes/db/cust_trans_db.inc @@ -315,7 +315,7 @@ function get_sql_for_customer_inquiry() { if ($_POST['filterType'] == '1') { - $sql .= " AND (trans.type = ".ST_SALESINVOICE." OR trans.type = ".ST_BANKPAYMENT.") "; + $sql .= " AND (trans.type = ".ST_SALESINVOICE.") "; } elseif ($_POST['filterType'] == '2') { @@ -324,7 +324,7 @@ function get_sql_for_customer_inquiry() elseif ($_POST['filterType'] == '3') { $sql .= " AND (trans.type = " . ST_CUSTPAYMENT - ." OR trans.type = ".ST_BANKDEPOSIT.") "; + ." OR trans.type = ".ST_BANKDEPOSIT." OR trans.type = ".ST_BANKPAYMENT.") "; } elseif ($_POST['filterType'] == '4') {