From 2d7b56ede7c202f4a2d3076e9f29adfdf9f8772d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 4 Jun 2017 16:04:09 +0300 Subject: [PATCH] Show used credits in the client portal --- app/Ninja/Repositories/CreditRepository.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Ninja/Repositories/CreditRepository.php b/app/Ninja/Repositories/CreditRepository.php index ddfcba801f44..346156cd91ee 100644 --- a/app/Ninja/Repositories/CreditRepository.php +++ b/app/Ninja/Repositories/CreditRepository.php @@ -69,7 +69,6 @@ class CreditRepository extends BaseRepository ->where('credits.client_id', '=', $clientId) ->where('clients.deleted_at', '=', null) ->where('credits.deleted_at', '=', null) - ->where('credits.balance', '>', 0) ->select( DB::raw('COALESCE(clients.currency_id, accounts.currency_id) currency_id'), DB::raw('COALESCE(clients.country_id, accounts.country_id) country_id'),