From b5a7a22f32494e2be9fdf6f190a11d5f8eaaef2f Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Sat, 16 May 2020 09:44:46 +0300 Subject: [PATCH] filter status buy --- app/routes/client.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/routes/client.php b/app/routes/client.php index 3ffafd9..4caca48 100644 --- a/app/routes/client.php +++ b/app/routes/client.php @@ -132,7 +132,7 @@ function mybooks_kuri($page = 1){ //все покупки -function payments_kuri(){ +function payments_kuri($filter = 1 ){ $login = check_login_kuri(); @@ -149,7 +149,9 @@ function payments_kuri(){ LEFT JOIN price ON anbuy.number_id = price.price_id WHERE - client_id = {$login['client_id']} + client_id = {$login['client_id']} + AND + buy_status = $filter ORDER BY buy_id DESC ";