Musterjobticket mit manueller Position
Mit folgendem Code lässt sich ein Jobticket mit manuellen Positionen generieren:
Musterjobticket
{literal} <style> * { font-size:9pt; 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%;} html { padding:0; margin:0} /* Farbdefinition Überschriften*/ .h1 { font-size:22pt; color:#1190c5;} .h2 { font-size:8pt; color:#888888;} .small p, .small { margin:0; font-size:9pt} div {border:1px dotted #000; box-sizing:border-box; padding:3mm} .left { float:left; width:11.3cm;border:none !important; padding:0 !important;} .right {float: right; width:5.6cm;border:none !important; padding:0 !important;} .right div {background-color: #DADADA;} .right div, .left div { margin-top:0.3cm} .clr { clear:both !important} p { margin:0} </style> {/literal} {counter print=false assign=countPos} {foreach from=$orderObject->getOrderCart() item=item key=cartId name=foo} {if $item->get('parent_id') || (!$item->get('aid') && $item->get('article_type') != 0)} {continue}{/if} <div style="border:none !important; padding:0 !important; width:17.2cm;"> <div style="height:0.8cm; background-color: #DADADA; font-size:16pt; padding-top:0.5cm; "> Auftrag {$OrderCode} - Pos {$countPos} von {$order->countOrderCartPosition()} </div> {if $item->get('aid')>0 || $item->get('article_type') == 0} <div class="left"> <div style="height:4.5cm;"><strong>Objektdaten</strong><br> {if $item->get('s_desc')}Artikel: {$item->get('s_desc')}<br>{/if} {if $item->get('aid')}Artikelnummer: {$item->get('aid')}<br>{/if} {if $item->get('s_qty')}Auflage: {$item->get('s_qty')}<br>{/if} {if $item->get('aid')>0} {if $item->get('s_qty')} {if $item->getArticle()->get('article_fulldesc')}{$item->getArticle()->get('article_fulldesc')}{/if} {else}{if $item->get('s_desc')}{$item->get('s_desc')}{/if} {/if}{/if} </div> {if $item->get('aid')>0} <div style="height:2.2cm; "> <strong>Optionen</strong><br> {foreach from=$item->getChildItems() item=childItem key=childId} {$childItem->get('s_desc')} {/foreach} </div> <div style="height:2.2cm; "><strong>Verarbeitung</strong><br> {if $item->getArticle()->get('article_zusatzinfo')}{$item->getArticle()->get('article_zusatzinfo')}{/if} </div> {/if} <div style="height:6.5cm; "> <strong>Logistik - Versandinfo</strong><br> Lieferadresse<br> {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_DeliverAdressName')} {$orderObject->get('order_DeliverAdressName')}<br> {elseif $orderObject->get('order_DeliverAdressFirstname') || $orderObject->get('order_DeliverAdressLastname')} {$orderObject->get('order_DeliverAdressFirstname')} {$orderObject->get('order_DeliverAdressLastname')} <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->getCustomerUser()->get('customer_user_telefon')}{$orderObject->getCustomerUser()->get('customer_user_telefon')}<br>{/if} {else} {if $orderObject->get('InvoiceAdressCompany1')}{$orderObject->get('InvoiceAdressCompany1')}<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->getCustomerUser()->get('customer_user_telefon')}{$orderObject->getCustomerUser()->get('customer_user_telefon')}<br>{/if} {/if} <br> {if $orderObject->getShipping()} Versandart: {$orderObject->getShipping()->get('versand_desc')}<br> {/if} {if $item->getInfo('weight')}Gewicht: {$item->getInfo('weight')} kg<br>{/if} {if $item->get('s_qty')}Auflage: {$item->get('s_qty')}<br>{/if} <br> {if $order->countOrderCartPosition(true)}Warenkorb mit {$order->countOrderCartPosition(false)} Posten<br>{/if} {if $orderObject->getOrderInfo('weight')}Gesamtgewicht: {$orderObject->getOrderInfo('weight')} kg{/if} </div> <div class="clr" style="clear:both; border:none; padding:0; margin:0"></div> </div> <div class="right"> <div style="height:3.2cm; ">Bestellung vom: {$order->get('cdate')|date_format:"%d.%m.%Y"}<br> <br> {if $orderObject->get('order_DeliverAdressCompany')}{$orderObject->get('order_DeliverAdressCompany')}<br> {/if} {if $orderObject->get('order_DeliverAdressName')}{$orderObject->get('order_DeliverAdressName')}<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_DeliverAdressEMail')}{$orderObject->get('order_DeliverAdressEMail')}<br> {/if} </div> <div style="height:3.5cm; ">Bemerkung intern:</div> <div style="height:2.2cm; ">Bemerkung vom Besteller:<br> {if $item->get('remark')}{$item->get('remark')}{/if}</div> <div style="height:6.5cm; "><strong>Zahlungsinformationen</strong><br> Rechnungsanschrift:<br> {if $orderObject->get('InvoiceAdressName')} {if $orderObject->get('InvoiceAdressCompany1')}{$orderObject->get('InvoiceAdressCompany1')}<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->getCustomerUser()->get('customer_user_telefon')}{$orderObject->getCustomerUser()->get('customer_user_telefon')}<br>{/if} {else} {if $orderObject->get('order_DeliverAdressCompany')}{$orderObject->get('order_DeliverAdressCompany')}<br>{/if} {if $orderObject->get('order_DeliverAdressName')}{$orderObject->get('order_DeliverAdressName')}<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->getCustomerUser()->get('customer_user_telefon')}{$orderObject->getCustomerUser()->get('customer_user_telefon')}<br>{/if} {/if} <br> {if $orderObject->getPayment()} Zahlungsart:<br> {$orderObject->getPayment()->get('payment_desc')} {/if}</div> <div class="clr" style="clear:both; border:none; padding:0; margin:0"></div> </div> <div class="clr" style="clear:both; border:none; padding:0; margin:0"></div> {/if}</div> {counter} {/foreach}