171 lines
No EOL
7.4 KiB
PHP
171 lines
No EOL
7.4 KiB
PHP
<div id="invoice_box">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left" style="width: 10%">
|
|
<span class="no-line-break">Artikel-Nr.</span>
|
|
</th>
|
|
<th class="text-left" style="width: 40%">Bezeichnung</th>
|
|
@if($shopping_order->payment_for === 6)
|
|
<th class="text-right" style="width: 15%">
|
|
<span class="no-line-break">E-Preis</span> @if($shopping_order->tax == 0)*@endif</th>
|
|
<th class="text-right" style="width: 10%">Menge</th>
|
|
<th class="text-right" style="width: 10%">MwSt.</th>
|
|
<th class="text-right" style="width: 15%">Summe @if($shopping_order->tax == 0)*@endif</th>
|
|
@else
|
|
<th class="text-right" style="width: 15%">
|
|
<span class="no-line-break">VK-Preis*</span>
|
|
</th>
|
|
<th class="text-right" style="width: 10%">Menge</th>
|
|
<th class="text-right" style="width: 10%">Points</th>
|
|
<th class="text-right" style="width: 10%">%</th>
|
|
<th class="text-right" style="width: 15%">
|
|
<span class="no-line-break">EK-Preis*</span>
|
|
</th>
|
|
@endif
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($shopping_order->shopping_order_items as $shopping_order_item)
|
|
<tr class="item">
|
|
<td class="small text-left">
|
|
{{ $shopping_order_item->product->number }}
|
|
</td>
|
|
<td class="small text-left">
|
|
{{ maxStrLength($shopping_order_item->product->name , 35) }}
|
|
</td>
|
|
@if($shopping_order->payment_for === 6)
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->getFormattedPrice() }} €
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->qty }}
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->getFormattedTaxRate() }}%
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->getFormattedTotalPrice() }} €
|
|
</td>
|
|
@else
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->getFormattedPriceVkNet() }} €
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->qty }}
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->points }}
|
|
</td>
|
|
<td class="text-right small">
|
|
@if($shopping_order_item->price > 0)
|
|
{{ cleanNumberFormat($shopping_order_item->discount) }}
|
|
@else
|
|
0
|
|
@endif
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $shopping_order_item->getFormattedTotalPriceNet() }} €
|
|
</td>
|
|
@endif
|
|
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
@if($shopping_order->payment_for === 6)
|
|
@php($colspan = 4)
|
|
@else
|
|
@php($colspan = 5)
|
|
@endif
|
|
|
|
<tr class="fullline">
|
|
<td class="text-right"> </td>
|
|
<td class="text-left" colspan="{{ $colspan }}">
|
|
{{__('email.checkout_mail_shipping')}}
|
|
</td>
|
|
<td class="text-right">
|
|
@if($shopping_order->tax > 0)
|
|
@if($shopping_order->payment_for === 6)
|
|
{{ $shopping_order->getFormattedShipping() }} €
|
|
@else
|
|
{{ $shopping_order->getFormattedShippingNet() }} €
|
|
@endif
|
|
@else
|
|
{{ $shopping_order->getFormattedShippingNet() }} €
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr class="fullline">
|
|
<td class="text-right"> </td>
|
|
<td class="text-left" colspan="{{ $colspan }}">
|
|
{{__('email.checkout_mail_subtotal_ws')}}
|
|
</td>
|
|
<td class="text-right">
|
|
{{ $shopping_order->getFormattedSubtotalWs() }} €
|
|
</td>
|
|
</tr>
|
|
@if($shopping_order->tax > 0)
|
|
@if($shopping_order->tax_split)
|
|
@foreach ($shopping_order->tax_split as $tax_rate => $tax)
|
|
<tr class="">
|
|
<td class="text-right"> </td>
|
|
<td class="text-left" colspan="{{ $colspan }}">
|
|
zzgl. {{ $tax_rate }}% MwSt
|
|
@if(isset($shopping_order->net_split[$tax_rate]))
|
|
/ aus {{ Util::formatNumber($shopping_order->net_split[$tax_rate]) }} € netto
|
|
@endif
|
|
</td>
|
|
<td class="text-right">
|
|
{{ formatNumber($tax) }} €
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@else
|
|
<tr class="">
|
|
<td class="text-right"> </td>
|
|
<td class="text-left" colspan="{{ $colspan }}">
|
|
{{__('email.checkout_mail_tax')}}
|
|
</td>
|
|
<td class="text-right">
|
|
{{ $shopping_order->getFormattedTax() }} €
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
|
|
<tr class="fullline">
|
|
<td class="text-right"> </td>
|
|
<td class="text-left" colspan="{{ $colspan }}">
|
|
<b>Summe inkl. der gesetzlichen MwSt.</b>
|
|
</td>
|
|
<td class="text-right">
|
|
<span class="no-line-break">
|
|
<b>{{ $shopping_order->getFormattedTotalShipping() }} €</b>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
@else
|
|
<tr class="">
|
|
<td class="text-right"> </td>
|
|
<td class="text-left" colspan="{{ $colspan }}">
|
|
{{__('email.checkout_mail_tax')}}
|
|
</td>
|
|
<td class="text-right">
|
|
0 €
|
|
</td>
|
|
</tr>
|
|
<tr class="fullline">
|
|
<td class="text-right"> </td>
|
|
<td class="text-left" colspan="{{ $colspan }}">
|
|
<b>Summe</b>
|
|
</td>
|
|
<td class="text-right">
|
|
<span class="no-line-break">
|
|
<b>{{ $shopping_order->getFormattedTotalShipping() }} €</b>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
</tfoot>
|
|
</table>
|
|
</div> |