1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Remove newline from end of CSV exports

This commit is contained in:
Hillel Coren 2017-03-28 11:40:42 +03:00
parent aad8c5e53f
commit 1debb52997
12 changed files with 12 additions and 23 deletions

View File

@ -3,64 +3,75 @@
<tr> <tr>
<td>{{ $title }}</td> <td>{{ $title }}</td>
</tr> </tr>
<tr><td></td></tr>
@if (isset($clients) && $clients && count($clients)) @if (isset($clients) && $clients && count($clients))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.clients')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.clients')) }}</td></tr>
@include('export.clients') @include('export.clients')
@endif @endif
@if (isset($contacts) && $contacts && count($contacts)) @if (isset($contacts) && $contacts && count($contacts))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.contacts')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.contacts')) }}</td></tr>
@include('export.contacts') @include('export.contacts')
@endif @endif
@if (isset($credits) && $credits && count($credits)) @if (isset($credits) && $credits && count($credits))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.credits')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.credits')) }}</td></tr>
@include('export.credits') @include('export.credits')
@endif @endif
@if (isset($tasks) && $tasks && count($tasks)) @if (isset($tasks) && $tasks && count($tasks))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.tasks')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.tasks')) }}</td></tr>
@include('export.tasks') @include('export.tasks')
@endif @endif
@if (isset($invoices) && $invoices && count($invoices)) @if (isset($invoices) && $invoices && count($invoices))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.invoices')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.invoices')) }}</td></tr>
@include('export.invoices') @include('export.invoices')
@endif @endif
@if (isset($quotes) && $quotes && count($quotes)) @if (isset($quotes) && $quotes && count($quotes))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.quotes')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.quotes')) }}</td></tr>
@include('export.invoices', ['invoices' => $quotes, 'entityType' => ENTITY_QUOTE]) @include('export.invoices', ['invoices' => $quotes, 'entityType' => ENTITY_QUOTE])
@endif @endif
@if (isset($recurringInvoices) && $recurringInvoices && count($recurringInvoices)) @if (isset($recurringInvoices) && $recurringInvoices && count($recurringInvoices))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.recurring_invoices')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.recurring_invoices')) }}</td></tr>
@include('export.recurring_invoices', ['entityType' => ENTITY_RECURRING_INVOICE]) @include('export.recurring_invoices', ['entityType' => ENTITY_RECURRING_INVOICE])
@endif @endif
@if (isset($payments) && $payments && count($payments)) @if (isset($payments) && $payments && count($payments))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.payments')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.payments')) }}</td></tr>
@include('export.payments') @include('export.payments')
@endif @endif
@if (isset($products) && $products && count($products)) @if (isset($products) && $products && count($products))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.products')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.products')) }}</td></tr>
@include('export.products') @include('export.products')
@endif @endif
@if (isset($expenses) && $expenses && count($expenses)) @if (isset($expenses) && $expenses && count($expenses))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.expenses')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.expenses')) }}</td></tr>
@include('export.expenses') @include('export.expenses')
@endif @endif
@if (isset($vendors) && $vendors && count($vendors)) @if (isset($vendors) && $vendors && count($vendors))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.vendors')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.vendors')) }}</td></tr>
@include('export.vendors') @include('export.vendors')
@endif @endif
@if (isset($vendor_contacts) && $vendor_contacts && count($vendor_contacts)) @if (isset($vendor_contacts) && $vendor_contacts && count($vendor_contacts))
<tr><td></td></tr>
<tr><td>{{ strtoupper(trans('texts.vendor_contacts')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.vendor_contacts')) }}</td></tr>
@include('export.vendor_contacts') @include('export.vendor_contacts')
@endif @endif

View File

@ -49,5 +49,3 @@
@endif @endif
</tr> </tr>
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -23,5 +23,3 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -21,5 +21,3 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -25,5 +25,3 @@
<td>{{ $expense->private_notes }}</td> <td>{{ $expense->private_notes }}</td>
</tr> </tr>
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -55,5 +55,3 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -25,5 +25,3 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -17,5 +17,3 @@
<td>{{ $product->cost }}</td> <td>{{ $product->cost }}</td>
</tr> </tr>
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -51,5 +51,3 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -21,5 +21,3 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -23,5 +23,3 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
<tr><td></td></tr>

View File

@ -25,5 +25,3 @@
<td>{{ $vendor->present()->country }}</td> <td>{{ $vendor->present()->country }}</td>
</tr> </tr>
@endforeach @endforeach
<tr><td></td></tr>