From d57fe62c49aedc156d1a6167f7c900dfa4a1a0a5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 10 Feb 2015 12:40:12 +0200 Subject: [PATCH] Removed possible duplicates from the payment list --- app/ninja/repositories/PaymentRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/ninja/repositories/PaymentRepository.php b/app/ninja/repositories/PaymentRepository.php index 19535f3352f5..640dbdaac127 100755 --- a/app/ninja/repositories/PaymentRepository.php +++ b/app/ninja/repositories/PaymentRepository.php @@ -18,6 +18,7 @@ class PaymentRepository ->where('payments.account_id', '=', \Auth::user()->account_id) ->where('clients.deleted_at', '=', null) ->where('contacts.is_primary', '=', true) + ->where('contacts.deleted_at', '=', null) ->select('payments.public_id', 'payments.transaction_reference', 'clients.name as client_name', 'clients.public_id as client_public_id', 'payments.amount', 'payments.payment_date', 'invoices.public_id as invoice_public_id', 'invoices.invoice_number', 'clients.currency_id', 'contacts.first_name', 'contacts.last_name', 'contacts.email', 'payment_types.name as payment_type', 'payments.account_gateway_id', 'payments.deleted_at', 'payments.is_deleted'); if (!\Session::get('show_trash:payment')) {