filter status buy

This commit is contained in:
Andrey Kuvshinov
2020-05-16 09:44:46 +03:00
parent ef5ee4f498
commit b5a7a22f32

View File

@@ -132,7 +132,7 @@ function mybooks_kuri($page = 1){
//все покупки //все покупки
function payments_kuri(){ function payments_kuri($filter = 1 ){
$login = check_login_kuri(); $login = check_login_kuri();
@@ -150,6 +150,8 @@ function payments_kuri(){
anbuy.number_id = price.price_id anbuy.number_id = price.price_id
WHERE WHERE
client_id = {$login['client_id']} client_id = {$login['client_id']}
AND
buy_status = $filter
ORDER BY ORDER BY
buy_id DESC buy_id DESC
"; ";