From 019196c60f84647ac72051ab7a69e03ea37438bb Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 16 Nov 2015 14:53:02 +0200 Subject: [PATCH] Removed deleted records from system export --- readme.md | 2 +- resources/views/export/invoices.blade.php | 52 ++++++++++++----------- resources/views/export/payments.blade.php | 24 ++++++----- resources/views/export/tasks.blade.php | 20 +++++---- 4 files changed, 52 insertions(+), 46 deletions(-) diff --git a/readme.md b/readme.md index 29abc1e737..cb3a30fa29 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ If you'd like to use our code to sell your own invoicing app email us for detail ### Installation Options * [Self-Host Zip](https://www.invoiceninja.com/knowledgebase/self-host/) - Free -* [Docker File](https://github.com/lalop/invoice-ninja-docker/blob/master/Dockerfile) - Free +* [Docker File](https://github.com/invoiceninja/dockerfiles) - Free * [Bitnami](https://bitnami.com/stack/invoice-ninja) - Free * [Softaculous](https://www.softaculous.com/apps/ecommerce/Invoice_Ninja) - $30 diff --git a/resources/views/export/invoices.blade.php b/resources/views/export/invoices.blade.php index 78af6fa9da..018e5b096e 100644 --- a/resources/views/export/invoices.blade.php +++ b/resources/views/export/invoices.blade.php @@ -25,31 +25,33 @@ @foreach ($invoices as $invoice) - - {{ $invoice->present()->client }} - @if ($multiUser) - {{ $invoice->present()->user }} - @endif - {{ $invoice->invoice_number }} - {{ $invoice->present()->balance }} - {{ $invoice->present()->amount }} - {{ $invoice->po_number }} - {{ $invoice->present()->status }} - {{ $invoice->present()->invoice_date }} - {{ $invoice->present()->due_date }} - @if ($account->custom_invoice_label1) - {{ $invoice->custom_value1 }} - @endif - @if ($account->custom_invoice_label2) - {{ $invoice->custom_value2 }} - @endif - @if ($account->custom_invoice_label1) - {{ $invoice->custom_text_value1 }} - @endif - @if ($account->custom_invoice_label2) - {{ $invoice->custom_text_value2 }} - @endif - + @if (!$invoice->client->is_deleted) + + {{ $invoice->present()->client }} + @if ($multiUser) + {{ $invoice->present()->user }} + @endif + {{ $invoice->invoice_number }} + {{ $invoice->present()->balance }} + {{ $invoice->present()->amount }} + {{ $invoice->po_number }} + {{ $invoice->present()->status }} + {{ $invoice->present()->invoice_date }} + {{ $invoice->present()->due_date }} + @if ($account->custom_invoice_label1) + {{ $invoice->custom_value1 }} + @endif + @if ($account->custom_invoice_label2) + {{ $invoice->custom_value2 }} + @endif + @if ($account->custom_invoice_label1) + {{ $invoice->custom_text_value1 }} + @endif + @if ($account->custom_invoice_label2) + {{ $invoice->custom_text_value2 }} + @endif + + @endif @endforeach \ No newline at end of file diff --git a/resources/views/export/payments.blade.php b/resources/views/export/payments.blade.php index 84a07deaa4..0d07d6e2e0 100644 --- a/resources/views/export/payments.blade.php +++ b/resources/views/export/payments.blade.php @@ -11,17 +11,19 @@ @foreach ($payments as $payment) - - {{ $payment->present()->client }} - @if ($multiUser) - {{ $payment->user->getDisplayName() }} - @endif - {{ $payment->invoice->invoice_number }} - {{ $payment->present()->amount }} - {{ $payment->present()->payment_date }} - {{ $payment->present()->method }} - {{ $payment->transaction_reference }} - + @if (!$payment->client->is_deleted) + + {{ $payment->present()->client }} + @if ($multiUser) + {{ $payment->user->getDisplayName() }} + @endif + {{ $payment->invoice->invoice_number }} + {{ $payment->present()->amount }} + {{ $payment->present()->payment_date }} + {{ $payment->present()->method }} + {{ $payment->transaction_reference }} + + @endif @endforeach \ No newline at end of file diff --git a/resources/views/export/tasks.blade.php b/resources/views/export/tasks.blade.php index 1c8e58e54c..3cacc198b9 100644 --- a/resources/views/export/tasks.blade.php +++ b/resources/views/export/tasks.blade.php @@ -9,15 +9,17 @@ @foreach ($tasks as $task) - - {{ $task->present()->client }} - @if ($multiUser) - {{ $task->present()->user }} - @endif - {{ $task->getStartTime() }} - {{ $task->getDuration() }} - {{ $task->description }} - + @if (!$task->client || !$task->client->is_deleted) + + {{ $task->present()->client }} + @if ($multiUser) + {{ $task->present()->user }} + @endif + {{ $task->getStartTime() }} + {{ $task->getDuration() }} + {{ $task->description }} + + @endif @endforeach \ No newline at end of file