Sammelbestellung von Extern
This commit is contained in:
parent
d01b4bd560
commit
582ca8299d
33 changed files with 3437 additions and 1466 deletions
134
resources/views/pdf/invoice-collection.blade.php
Normal file
134
resources/views/pdf/invoice-collection.blade.php
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
<div id="invoice_box">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left" style="width: 5%">
|
||||
<span class="no-line-break">Artikel-Nr.</span>
|
||||
</th>
|
||||
<th class="text-left" style="width: 10%">Bezeichnung</th>
|
||||
<th class="text-right" style="width: 10%">Points</th>
|
||||
<th class="text-right" style="width: 15%">
|
||||
<span class="no-line-break">E-Preis*</span>
|
||||
</th>
|
||||
<th class="text-right" style="width: 5%">Menge</th>
|
||||
<th class="text-right" style="max-width: 15%">
|
||||
<span class="no-line-break">Summe*</span>
|
||||
</th>
|
||||
<th class="text-right" style="max-width: 5%">{{__('%')}}</th>
|
||||
<th class="text-right" style="max-width: 10%">{{__('MwSt')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($shopping_order->shopping_collect_order->shop_items as $key => $shop_item)
|
||||
<tr class="item">
|
||||
<td class="small text-left">
|
||||
{{ $shop_item['number'] }}
|
||||
</td>
|
||||
<td class="small text-left">
|
||||
{{$shop_item['name']}}
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{$shop_item['points_total']}}
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ formatNumber($shop_item['user_price_net']) }} €
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{$shop_item['qty']}}
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ formatNumber($shop_item['user_price_total_net']) }} €
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ formatNumber($shop_item['tax_rate'], 0) }}
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ formatNumber($shop_item['user_tax_total']) }} €
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
<tr>
|
||||
<td class="">
|
||||
</td>
|
||||
<td class="text-left" colspan="3">
|
||||
Gesamte Versandkosten
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
1
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ formatNumber($shopping_order->shopping_collect_order->shipping_net) }} €
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
</td>
|
||||
<td class="text-right small">
|
||||
{{ formatNumber($shopping_order->shopping_collect_order->shipping_tax) }} €
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left">
|
||||
<b>Summen</b>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ $shopping_order->shopping_collect_order->points }} <strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<strong>{{ $shopping_order->shopping_collect_order->qty_total }}</strong>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<span class="no-line-break">
|
||||
<strong>{{ formatNumber($shopping_order->shopping_collect_order->price_total_net) }} €</strong>
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<span class="no-line-break">
|
||||
<strong>{{ formatNumber($shopping_order->shopping_collect_order->tax_total) }} €</strong>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="5">
|
||||
{{__('email.checkout_mail_subtotal_ws')}}
|
||||
</td>
|
||||
<td class="text-right" colspan="2">
|
||||
{{ formatNumber($shopping_order->shopping_collect_order->price_total_net) }} €
|
||||
</td>
|
||||
</tr>
|
||||
@foreach ($shopping_order->shopping_collect_order->tax_split as $tax_rate => $tax)
|
||||
<tr class="">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="5">
|
||||
zzgl. {{ $tax_rate }}% MwSt
|
||||
</td>
|
||||
<td class="text-right" colspan="2">
|
||||
{{ formatNumber($tax) }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
<tr class="fullline">
|
||||
<td class="text-right"> </td>
|
||||
<td class="text-left" colspan="5">
|
||||
<b>Summe inkl. der gesetzlichen MwSt.</b>
|
||||
</td>
|
||||
<td class="text-right" colspan="2">
|
||||
<span class="no-line-break">
|
||||
<b>{{ formatNumber($shopping_order->shopping_collect_order->price_total) }} €</b>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
154
resources/views/pdf/invoice-journal-collection.blade.php
Normal file
154
resources/views/pdf/invoice-journal-collection.blade.php
Normal file
|
|
@ -0,0 +1,154 @@
|
|||
<style>
|
||||
#invoice_journal_box {
|
||||
position: relative;
|
||||
padding-top: 0mm;
|
||||
margin-left: 15mm;
|
||||
width: 180mm;
|
||||
line-height: 10pt;
|
||||
font-size: 8pt;
|
||||
|
||||
}
|
||||
.client_order_box {
|
||||
position: relative;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
#invoice_journal_box table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.client_order_box, {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
#invoice_journal_box table tr td, #invoice_journal_box table tr th {
|
||||
vertical-align: top;
|
||||
padding-top: 1mm;
|
||||
padding-bottom: 1mm;
|
||||
padding-left: 1.5mm;
|
||||
padding-right: 1.5mm;
|
||||
border-top: 0.5pt dotted #1a1a18;
|
||||
font-size: 8pt;
|
||||
|
||||
}
|
||||
|
||||
#invoice_journal_box table tfoot tr td {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
#invoice_journal_box table tfoot tr.fullline td {
|
||||
border-top: 0.3pt solid #575755;
|
||||
}
|
||||
|
||||
|
||||
#invoice_journal_box table tfoot tr td {
|
||||
padding-top: 0.8mm;
|
||||
padding-bottom: 0.8mm;
|
||||
|
||||
}
|
||||
|
||||
#invoice_journal_box table tr.small td, #invoice_journal_box table tfoot tr.small td {
|
||||
font-size: 7.5pt;
|
||||
padding-top: 0.5mm;
|
||||
padding-bottom: 0.5mm;
|
||||
}
|
||||
|
||||
#invoice_journal_box table tr.bg-grey td {
|
||||
background-color: rgb(195, 195, 195);
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div id="invoice_journal_box">
|
||||
<h4>Sammelbestellung behinhaltet folgende Kundenbestellungen</h4>
|
||||
@if($shopping_order->shopping_collect_order)
|
||||
@foreach($shopping_order->shopping_collect_order->orders as $order)
|
||||
@php($order = $shopping_order->shopping_collect_order->initShoppingOrder($order))
|
||||
|
||||
<div class="client_order_box">
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
<tr class="bg-grey">
|
||||
<td colspan="4">
|
||||
<b>Bestellnummer: {{ $order['order_id'] }}</b> |
|
||||
WP Number: {{ $order['wp_order_number'] }} |
|
||||
Points: {{ $order['shopping_order']->points }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="bg-grey">
|
||||
<td colspan="4">
|
||||
Rechnungsadresse: {{ $order['billing_address'] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="bg-grey">
|
||||
<td colspan="4">
|
||||
Lieferadresse: {{ $order['shipping_address'] }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="">
|
||||
<th class="text-left">Produkt</th>
|
||||
<th class="text-right">VK-Preis brutto</th>
|
||||
<th class="text-right">Anzahl</th>
|
||||
<th class="text-right">Summe</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
@foreach($order['shopping_order']->shopping_order_items as $shopping_order_item)
|
||||
<tr class="">
|
||||
<td class="text-left">
|
||||
<strong>{{ $shopping_order_item->product->name }}</strong>
|
||||
<span class="text-muted">#{{ $shopping_order_item->product->number }}</span>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $shopping_order_item->getFormattedPrice() }} €
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $shopping_order_item->qty }}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ $shopping_order_item->getFormattedTotalPrice() }} €
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr class="fullline small">
|
||||
<td colspan="3">{{__('email.checkout_mail_shipping')}} </td>
|
||||
<td class="text-right">
|
||||
{{ $order['shopping_order']->getFormattedShipping() }} €
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="small">
|
||||
<td colspan="3"> {{__('email.checkout_mail_subtotal_ws')}}</td>
|
||||
<td class="text-right">
|
||||
{{ $order['shopping_order']->getFormattedSubtotalWs() }} €
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="small">
|
||||
<td colspan="3">{{__('email.checkout_mail_tax')}}</td>
|
||||
<td class="text-right">
|
||||
{{ $order['shopping_order']->getFormattedTax() }} €
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="fullline">
|
||||
<td colspan="3"> <b>{{__('email.checkout_mail_total')}}</b></td>
|
||||
<td class="text-right">
|
||||
<b>{{ $order['shopping_order']->getFormattedTotalShipping() }} €</b>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
@ -366,51 +366,58 @@
|
|||
</div>
|
||||
@if($shopping_order->homeparty)
|
||||
@include('pdf.invoice-homeparty')
|
||||
@elseif($shopping_order->shopping_collect_order)
|
||||
@include('pdf.invoice-collection')
|
||||
@else
|
||||
@include('pdf.invoice-detail')
|
||||
@endif
|
||||
|
||||
<div id="footer_box">
|
||||
<div class="text">
|
||||
<p>Zahlungsart: {{ $shopping_order->getLastShoppingPayment('getPaymentType') }} / Status der Rechnung: {{ App\Services\Payment::getFormattedTxaction($shopping_order->txaction) }}<br>
|
||||
Lieferdatum entspricht dem Rechnungsdatum.
|
||||
@if($shopping_order->tax == 0)
|
||||
<br><span class="xsmall">* Preise netto</span>
|
||||
@endif
|
||||
</p>
|
||||
@if($shopping_order->payment_for !== 6 && isset($shopping_order->shopping_user->auth_user))
|
||||
<p>
|
||||
@if(isset($shopping_order->shopping_user->auth_user->account->tax_identification_number))
|
||||
USt-ID des Leistungsempfängers: {{ $shopping_order->shopping_user->auth_user->account->tax_identification_number }}<br>
|
||||
<div class="text">
|
||||
<p>Zahlungsart: {{ $shopping_order->getLastShoppingPayment('getPaymentType') }} / Status der Rechnung: {{ App\Services\Payment::getFormattedTxaction($shopping_order->txaction) }}<br>
|
||||
Lieferdatum entspricht dem Rechnungsdatum.
|
||||
@if($shopping_order->tax == 0 || $shopping_order->shopping_collect_order)
|
||||
<br><span class="xsmall">* Preise netto</span>
|
||||
@endif
|
||||
</p>
|
||||
@if($shopping_order->payment_for !== 6 && isset($shopping_order->shopping_user->auth_user))
|
||||
<p>
|
||||
@if(isset($shopping_order->shopping_user->auth_user->account->tax_identification_number))
|
||||
USt-ID des Leistungsempfängers: {{ $shopping_order->shopping_user->auth_user->account->tax_identification_number }}<br>
|
||||
|
||||
@else
|
||||
@if(isset($shopping_order->shopping_user->auth_user->account->tax_number))
|
||||
USt-Nr. des Leistungsempfängers: {{ $shopping_order->shopping_user->auth_user->account->tax_number }}<br>
|
||||
@endif
|
||||
@else
|
||||
@if(isset($shopping_order->shopping_user->auth_user->account->tax_number))
|
||||
USt-Nr. des Leistungsempfängers: {{ $shopping_order->shopping_user->auth_user->account->tax_number }}<br>
|
||||
@endif
|
||||
@if(isset($user_reverse_charge) && $user_reverse_charge)
|
||||
<span class="xsmall">Die Rechnung erfolgt ohne Umsatzsteuer, da vorliegend der Wechsel der Steuerschuldnerschaft (Reverse-Charge-Verfahren) greift.<br>
|
||||
Die Umsatzsteuer ist vom Leistungsempfänger anzumelden und abzuführen.</span>
|
||||
@endif
|
||||
@if(isset($user_reverse_charge) && $user_reverse_charge)
|
||||
<span class="xsmall">Die Rechnung erfolgt ohne Umsatzsteuer, da vorliegend der Wechsel der Steuerschuldnerschaft (Reverse-Charge-Verfahren) greift.<br>
|
||||
Die Umsatzsteuer ist vom Leistungsempfänger anzumelden und abzuführen.</span>
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
@if($shopping_order->member)
|
||||
<div class="dotted-line"></div>
|
||||
<p>Bei Fragen sind wir jederzeit für Dich da.<br>
|
||||
@if($shopping_order->member->shop && $shopping_order->member->isActiveShop())
|
||||
@if($shopping_order->member->shop->title)
|
||||
<b>{{ $shopping_order->member->shop->title }}</b><br>
|
||||
@endif
|
||||
@if($shopping_order->member->shop->contact)
|
||||
{!! str_replace(array("\r\n", "\r", "\n"), " • ", $shopping_order->member->shop->contact) !!}<br>
|
||||
@endif
|
||||
<a href="{{ $shopping_order->member->shop->getSubdomain(true) }}">{{ $shopping_order->member->shop->getSubdomain(true) }}</a>
|
||||
@else
|
||||
Dein Berater: {{$shopping_order->member->getFullName()}}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
@if($shopping_order->member)
|
||||
<div class="dotted-line"></div>
|
||||
<p>Bei Fragen sind wir jederzeit für Dich da.<br>
|
||||
@if($shopping_order->member->shop && $shopping_order->member->isActiveShop())
|
||||
@if($shopping_order->member->shop->title)
|
||||
<b>{{ $shopping_order->member->shop->title }}</b><br>
|
||||
@endif
|
||||
@if($shopping_order->member->shop->contact)
|
||||
{!! str_replace(array("\r\n", "\r", "\n"), " • ", $shopping_order->member->shop->contact) !!}<br>
|
||||
@endif
|
||||
<a href="{{ $shopping_order->member->shop->getSubdomain(true) }}">{{ $shopping_order->member->shop->getSubdomain(true) }}</a>
|
||||
@else
|
||||
Dein Berater: {{$shopping_order->member->getFullName()}}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($shopping_order->shopping_collect_order)
|
||||
<div style="page-break-after: always"></div>
|
||||
@include('pdf.invoice-journal-collection')
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue