Musterlieferschein mit Pagebreak
Nach fünf Positionen auf der ersten Seite erfolgt ein Pagebreak. Auf den Folgeseiten erfolgt erst nach der 8. Pos. ein Pagebreak.Â
Nach Wunsch kann der Pagebreak auch bei weniger Positionen erfolgen.Â
Des Weiteren können nun auch manuelle Positionen auf dem Lieferschein ausgegeben werden.
Bei dem folgenden Lieferschein handelt es sich um ein Muster.Â
Musterlieferschein mit Pagebreak
{literal}<style> * { font-size:10pt; font-family:Verdana, Geneva, sans-serif; color:#000; line-height:120%;} * strong { font-size:10pt; font-family:Verdana, Geneva, sans-serif; color:#000; line-height:120%;} /* Farbdefinition Überschriften*/ .h1 { font-size:22pt; color:#1190c5; } .h2 { font-size:8pt; color:#888888; } .small p, .small { margin:0; font-size:9pt} </style> {/literal} <table width="100%" cellpadding="1" cellspacing="1" border="0" style="font-family: Arial;"> <tr> <td colspan="6"> {if $orderObject->get('order_DeliverAdressName') || $orderObject->get('order_DeliverAdressFirstname') || $orderObject->get('order_DeliverAdressLastname')} {if $orderObject->get('order_DeliverAdressCompany')}{$orderObject->get('order_DeliverAdressCompany')}<br> {/if} {if $orderObject->get('order_DeliverAdressCompany2')}{$orderObject->get('order_DeliverAdressCompany2')}<br> {/if} {if $orderObject->get('order_DeliverAdressName')} {$orderObject->get('order_DeliverAdressName')}<br> {elseif $orderObject->get('order_DeliverAdressFirstname') || $orderObject->get('order_DeliverAdressLastname')} {if $orderObject->get('order_DeliverAdressFirstname')} {$orderObject->get('order_DeliverAdressFirstname')} {/if} {if $orderObject->get('order_DeliverAdressLastname')} {$orderObject->get('order_DeliverAdressLastname')} {/if} <br> {/if} {if $orderObject->get('order_DeliverAdressStreet')}{$orderObject->get('order_DeliverAdressStreet')}<br> {/if} {if $orderObject->get('order_DeliverAdressZIP')}{$orderObject->get('order_DeliverAdressZIP')} {if $orderObject->get('order_DeliverAdressTown')}{$orderObject->get('order_DeliverAdressTown')}<br> {/if}{/if} {if $orderObject->get('order_DeliverAdressCountry')}{$orderObject->get('order_DeliverAdressCountry')}<br> {/if} {else} {if $orderObject->get('InvoiceAdressCompany1')}{$orderObject->get('InvoiceAdressCompany1')}<br> {/if} {if $orderObject->get('InvoiceAdressCompany2')}{$orderObject->get('InvoiceAdressCompany2')}<br> {/if} {if $orderObject->get('InvoiceAdressName')}{$orderObject->get('InvoiceAdressName')}<br> {/if} {if $orderObject->get('InvoiceAdressStreet')}{$orderObject->get('InvoiceAdressStreet')}<br> {/if} {if $orderObject->get('InvoiceAdressZIP')}{$orderObject->get('InvoiceAdressZIP')} {if $orderObject->get('InvoiceAdressTown')}{$orderObject->get('InvoiceAdressTown')}<br> {/if}{/if} {if $orderObject->get('InvoiceAdressCountry')}{$orderObject->get('InvoiceAdressCountry')}<br>{/if} {/if} <br><br><br><br> <strong style="font-size:15pt">Lieferschein</strong> ({$smarty.now|date_format:"%d.%m.%Y"})<br> <br> {if $orderObject->getInvoiceNumber()} Rechnungs-Nr. {$orderObject->getInvoiceNumber()}{else}Rechnungs-Nr. {$orderObject->get('invoice_number')}<br>{/if} {if $orderObject->getOrderCode()} Auftrags-Nr. {$orderObject->getOrderCode()}<br>{/if} {if $orderObject->getCustomerUser()->get('customer_user_kundennummer')}Kunden-Nr. {$orderObject->getCustomerUser()->get('customer_user_kundennummer')} <br>{/if} {if $orderObject->get('order_number')}Lieferschein-Nr. {$orderObject->get('order_number')}<br>{/if} <br><br> Sehr geehrte Damen und Herren, <br><br> wir liefern Ihnen gemäß unserer allgemeinen Geschäftsbedingungen: <br><br><br><br></td> </tr> <tr> <td>Pos.</td> <td width="20"></td> <td>Artikelnummer</td> <td width="20"></td> <td>Produkt</td> <td align="right">Menge</td> </tr> {if isset($countPos)} {assign var="countPos" value="0"} {/if} {counter print=false start=1 skip=1 assign=countPos} {foreach from=$orderObject->getOrderCart() item=item key=cartId} {if $item->get('aid')>0} <tr style="padding:3px;"> <td colspan="6" height="1" style="border-top:1px solid #000000"></td> </tr> <tr style="padding:3px;"> <td valign="top">{$countPos}</td> <td valign="top"> </td> <td valign="top">{$item->get('aid')}</td> <td valign="top"> </td> <td valign="top"> {$item->get('s_desc')} <br> <span class="small">{$item->getArticle()->get('article_fulldesc')}</span></td> <td align="right" valign="top" nowrap> {$item->get('quantity_value')} Stück</td> </tr> {foreach from=$item->getChildItems() item=childItem key=childId} <tr > <td></td> <td></td> <td> </td> <td valign="top" > </td> <td valign="top" class="small" >{$childItem->get('s_desc')}</td> <td align="right" valign="top"> </td> </tr> {/foreach} {if $countPos == 5} </table> <div style="PAGE-BREAK-AFTER: always;"></div> <table width="100%" cellpadding="1" cellspacing="1" border="0" style="font-family: Arial;vertical-align: bottom;"> {if $countPos < $orderObject->countOrderCartPosition()} <tr> <td>Pos.</td> <td width="20"> </td> <td>Artikelnummer</td> <td width="20"> </td> <td>Produkt</td> <td align="right">Menge</td> </tr> {else} <tr><td colspan="6"></td><tr> {/if} {/if} {if $countPos == 13} </table> <div style="PAGE-BREAK-AFTER: always;"></div> <table width="100%" cellpadding="1" cellspacing="1" border="0" style="font-family: Arial;vertical-align: bottom;"> {if $countPos < $orderObject->countOrderCartPosition()} <tr> <td>Pos.</td> <td width="20"> </td> <td>Artikelnummer</td> <td width="20"> </td> <td>Produkt</td> <td align="right">Menge</td> </tr> {else} <tr><td colspan="6"></td><tr> {/if} {/if} {if $countPos == 21} </table> <div style="PAGE-BREAK-AFTER: always;"></div> <table width="100%" cellpadding="1" cellspacing="1" border="0" style="font-family: Arial;vertical-align: bottom;"> {if $countPos < $orderObject->countOrderCartPosition()} <tr> <td>Pos.</td> <td width="20"> </td> <td>Artikelnummer</td> <td width="20"> </td> <td>Produkt</td> <td align="right">Menge</td> </tr> {else} <tr><td colspan="6"></td><tr> {/if} {/if} {counter} {/if} {/foreach} <tr> <td colspan="6" height="1" style="border-top:1px solid #000000"></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td colspan="6"> <br><br><br> <table width="100%" border="0" cellspacing="0"> <tr> <td> </td> <td></td> <td> </td> </tr> <tr> <td> </td> <td></td> <td> </td> </tr> <tr> <td valign="top">Empfangsbestätigung<br> <br> <br></td> <td> </td> <td>Abgabebestätigung<br> <br> <br></td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td > </td> <td></td> <td > </td> </tr> <tr> <td style="border-top:1px solid #000000">Datum, Uhrzeit, Unterschrift</td> <td> </td> <td style="border-top:1px solid #000000">Datum, Uhrzeit, Unterschrift</td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td></td> <td></td> </tr> <tr> <td height="50"> </td> <td></td> <td></td> </tr> <tr> <td>Versandart:</td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td align="right"> </td> </tr> <tr> <td> </td> <td> </td> <td align="right"> </td> </tr> <tr> <td>▢ UPS</td> <td>▢ Spedition</td> <td align="right">▢ Direktfahrt</td> </tr> </table> </td> </tr> </table>