From e2fbec9661db6d9f83d5057b33f7f430f9355d47 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 23 Mar 2011 18:08:31 +0100 Subject: [PATCH] Customer invoice inquire displayed also payments. --- sales/includes/db/cust_trans_db.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') { -- 2.30.2