1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Prevent payments for deleted invoices from being included in export

This commit is contained in:
Hillel Coren 2016-07-11 22:24:49 +03:00
parent 6dba7f7153
commit ca94f5053e

View File

@ -11,7 +11,7 @@
</tr>
@foreach ($payments as $payment)
@if (!$payment->client->is_deleted)
@if ( ! $payment->client->is_deleted && ! $payment->invoice->is_deleted)
<tr>
<td>{{ $payment->present()->client }}</td>
@if ($multiUser)
@ -26,4 +26,4 @@
@endif
@endforeach
<tr><td></td></tr>
<tr><td></td></tr>