pdfdokumente/Application/views/tpl/deliverynote.tpl

295 lines
14 KiB
Smarty

[{assign var=currency value=$order->getOrderCurrency()}]
<page backtop="30mm" backbottom="30mm" backleft="10mm" backright="10mm">
<style>
.aligning{
text-align: right;
}
table > td{
font-family: "helvetica";
}
.vertical-a{
vertical-align: top;
}
.sizing{
font-size: 12px;
}
</style>
<page_header>
<div style="position: absolute; top: 30px; right: 44px;">
<img src="[{$oViewConf->getImageUrl('d3pdf_logo.png')}]">
</div>
</page_header>
<page_footer>
<table style="width: 688px; font-size: 9px; margin: 0 30px 0 30px; border-top: solid 1px #000;" cellspacing="0">
<tr>
<td style="width: 33.33%;"></td>
<td style="width: 33.33%;"></td>
<td style="width: 33.33%;"></td>
</tr>
<tr>
<td style="width: 33.33%">[{$shop->oxshops__oxname->value}]</td>
<td style="width: 33.33%">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_GESCHAEFTSFUEHRER"}]</td>
<td style="width: 33.33%">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</td>
</tr>
<tr>
<td style="width: 33.33%">[{$shop->oxshops__oxstreet->value}]</td>
<td style="width: 33.33%">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_COURT"}] [{$shop->oxshops__oxcourt->value}]</td>
<td style="width: 33.33%">[{$shop->oxshops__oxbankname->value}]</td>
</tr>
<tr>
<td style="width: 33.33%">[{$shop->oxshops__oxzip->value}][{$shop->oxshops__oxcity->value}]</td>
<td style="width: 33.33%">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_HRBNR"}][{$shop->oxshops__oxhrbnr->value}]</td>
<td style="width: 33.33%">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</td>
</tr>
<tr>
<td style="width: 33.33%">[{$shop->oxshops__oxcountry->value}]</td>
<td style="width: 33.33%">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTID"}][{$shop->oxshops__oxvatnumber->value}]</td>
<td style="width: 33.33%">[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE"}][{$shop->oxshops__oxbiccode->value}]</td>
</tr>
</table>
<table style="width: 100%; font-size: 9px; margin: 0 30px 0 30px;" cellspacing="0">
<tr>
<td style="width: 100%">[{$shop->oxshops__oxurl->value}]</td>
</tr>
<tr>
<td style="width: 100%">[{$shop->oxshops__oxinfoemail->value}]</td>
</tr>
</table>
</page_footer>
<table style="width: 100%; font-size: 12px; margin-top: 50px;" cellspacing="0">
<tr>
<td style="width: 70%"></td>
<td style="width: 30%;" class="aligning"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_GET_IN_CONTACT"}]</strong></td>
</tr>
<tr>
<td style="width: 70%; font-size: 8px">[{$shop->oxshops__oxname->value}] - [{$shop->oxshops__oxstreet->value}] - [{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</td>
<td style="width: 30%;" class="aligning sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TELEFON"}][{$shop->oxshops__oxtelefon->value}]</td>
</tr>
<tr>
<td style="width: 70%"></td>
<td style="width: 30%" class="aligning sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_FAX"}][{$shop->oxshops__oxtelefax->value}]</td>
</tr>
<tr>
<td style="width: 70%">[{$order->oxorder__oxbillcompany->value}]</td>
<td style="width: 30%" class="aligning sizing">[{$shop->oxshops__oxinfoemail->value}]</td>
</tr>
<tr>
<td style="width: 70%">[{$order->oxorder__oxbillfname->value}] [{$order->oxorder__oxbilllname->value}]</td>
<td style="width: 30%"></td>
</tr>
<tr>
<td style="width: 70%">[{$order->oxorder__oxbillstreet->value}] [{$order->oxorder__oxbillstreetnr->value}]</td>
<td style="width: 30%" class="aligning"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</strong></td>
</tr>
<tr>
<td style="width: 70%"><strong>[{$order->oxorder__oxbillzip}] [{$order->oxorder__oxbillcity->value}]</strong></td>
<td style="width: 30%" class="aligning sizing">[{$shop->oxshops__oxbankname->value}]</td>
</tr>
</table>
<table style="width: 100%; font-size: 12px;" cellspacing="0">
<tr>
<td style="width: 10%">[{$shop->oxshops__oxcountry->value}]</td>
<td style="width: 90%" class="aligning sizing">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</td>
</tr>
</table>
<table style="width: 100%; font-size: 12px;" cellspacing="0">
<tr>
<td style="width: 70%"></td>
<td style="width: 30%" class="aligning sizing">[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE_HEADER"}][{$shop->oxshops__oxbiccode->value}]</td>
</tr>
<tr>
<td style="width: 70%">&nbsp;</td>
<td style="width: 30%"></td>
</tr>
<tr>
<td style="width: 70%"></td>
<td style="width: 30%" class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILLNR"}][{$order->oxorder__oxbillnr->value}]</td>
</tr>
<tr>
<td style="width: 70%; font-size: 15px;"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERNR"}][{$order->oxorder__oxordernr->value}]</strong></td>
<td style="width: 30%" class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_CUSTOMERNR"}] [{$user->oxuser__oxcustnr->value}]</td>
</tr>
<tr>
<td style="width: 70%"></td>
<td style="width: 30%" class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DATE"}][{$order->oxorder__oxbilldate->value|date_format:"%d. %m. %Y"}]</td>
</tr>
<tr>
<td style="width: 70%">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSINCERELY"}][{$order->oxorder__oxorderdate->value|date_format:"%d. %m. %Y"}][{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSAT"}]</td>
<td style="width: 30%" class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTIDNR"}][{$shop->oxshops__oxvatnumber->value}]</td>
</tr>
</table>
<table style="width: 100%; border-bottom: solid 1px #000; margin-top: 10px;" cellspacing="0">
<tr>
<td style="width: 8%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_AMOUNT"}]</td>
<td style="width: 20%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}]</td>
<td style="width: 40%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DESCRIPTION"}]</td>
<td style="width: 5%" class="sizing aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTPERCENTAGE"}]</td>
<td style="width: 12%; text-align: right" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_UNITPRICE"}]</td>
<td style="width: 15%" class="aligning sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TOTALPRICE"}]</td>
</tr>
<tr>
<td style="width: 8%; border-top: solid 1px #000;"></td>
<td style="width: 20%; border-top: solid 1px #000;"></td>
<td style="width: 40%; border-top: solid 1px #000;"></td>
<td style="width: 5%; border-top: solid 1px #000;"></td>
<td style="width: 12%; border-top: solid 1px #000;"></td>
<td style="width: 15%; border-top: solid 1px #000;"></td>
</tr>
[{foreach from=$order->getOrderArticles(true) item=oOrderArticle}]
<tr>
<td style="width: 8%" class='vertical-a sizing'>[{$oOrderArticle->oxorderarticles__oxamount->value }]</td>
<td style="width: 20%" class='vertical-a sizing'>[{$oOrderArticle->oxorderarticles__oxartnum->value }]</td>
<td style="width: 40%" class='vertical-a sizing'>[{$oOrderArticle->oxorderarticles__oxtitle->getRawValue() }] [{ $oOrderArticle->oxorderarticles__oxselvariant->getRawValue() }]</td>
<td style="width: 5%" class='vertical-a sizing aligning'>[{$oOrderArticle->oxorderarticles__oxvat->value }]</td>
<td style="width: 12%; text-align: right" class='vertical-a sizing'>[{$oOrderArticle->getBrutPriceFormated()}] [{$currency->name}]</td>
<td style="width: 15%" class="aligning vertical-a sizing">[{$oOrderArticle->getTotalBrutPriceFormated()}] [{$currency->name}]</td>
</tr>
[{/foreach}]
<tr>
<td style="width: 8%; border-top: solid 1px #000;"></td>
<td style="width: 20%; border-top: solid 1px #000;"></td>
<td style="width: 40%; border-top: solid 1px #000;"></td>
<td style="width: 5%; border-top: solid 1px #000;"></td>
<td style="width: 12%; border-top: solid 1px #000;"></td>
<td style="width: 15%; border-top: solid 1px #000;"></td>
</tr>
<tr>
<td style="width: 8%"></td>
<td style="width: 20%"></td>
<td style="width: 40%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMBRUTTO"}]</td>
<td style="width: 5%"></td>
<td style="width: 12%"></td>
<td style="width: 15%" class="aligning sizing">[{$order->getFormattedTotalBrutSum()}] [{$currency->name}]</td>
</tr>
<tr>
<td style="width: 8%;"></td>
<td style="width: 20%;"></td>
<td style="width: 40%; border-top: solid 1px #000;"></td>
<td style="width: 5%; border-top: solid 1px #000;"></td>
<td style="width: 12%; border-top: solid 1px #000;"></td>
<td style="width: 15%; border-top: solid 1px #000;"></td>
</tr>
<tr>
<td style="width: 8%"></td>
<td style="width: 20%"></td>
<td style="width: 40%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DISCOUNT"}]</td>
<td style="width: 5%"></td>
<td style="width: 12%"></td>
<td style="width: 15%" class="aligning sizing">[{$order->getFormattedDiscount()}] [{$currency->name}]</td>
</tr>
<tr>
<td style="width: 8%;"></td>
<td style="width: 20%;"></td>
<td style="width: 40%; border-top: solid 1px #000;"></td>
<td style="width: 5%; border-top: solid 1px #000;"></td>
<td style="width: 12%; border-top: solid 1px #000;"></td>
<td style="width: 15%; border-top: solid 1px #000;"></td>
</tr>
<tr style="border-bottom: solid 2px #000">
<td style="width: 8%"></td>
<td style="width: 20%"></td>
<td style="width: 40%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMNETTO"}]</td>
<td style="width: 5%"></td>
<td style="width: 12%"></td>
<td style="width: 15%" class="aligning sizing">[{$order->getFormattedTotalNetSum()}] [{$currency->name}]</td>
</tr>
[{foreach from=$order->getVats() key=VatKey item=oVat}]
<tr>
<td style="width: 8%"></td>
<td style="width: 20%">&nbsp;</td>
<td style="width: 40%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TAX"}] [{$VatKey}] [{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_PERCENTAGE"}] [{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TAXPERCVALUE"}]</td>
<td style="width: 5%%"></td>
<td style="width: 12%"></td>
<td style="width: 15%" class="aligning sizing">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</td>
</tr>
[{/foreach}]
<tr>
<td style="width: 8%;"></td>
<td style="width: 20%;"></td>
<td style="width: 40%; border-top: solid 1px #000;"></td>
<td style="width: 5%; border-top: solid 1px #000;"></td>
<td style="width: 12%; border-top: solid 1px #000;"></td>
<td style="width: 15%; border-top: solid 1px #000;"></td>
</tr>
<tr style="border-bottom: 2px solid #000">
<td style="width: 8%"></td>
<td style="width: 20%"></td>
<td style="width: 40%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DELIVERY"}]</td>
<td style="width: 5%"></td>
<td style="width: 12%"></td>
<td style="width: 15%" class="aligning sizing">[{$order->getFormattedeliveryCost()}] [{$currency->name}]</td>
</tr>
<tr>
<td style="width: 8%"></td>
<td style="width: 20%">&nbsp;</td>
<td style="width: 40%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TAX"}]</td>
<td style="width: 5%"></td>
<td style="width: 12%"></td>
<td style="width: 15%" class="aligning sizing">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</td>
</tr>
<tr>
<td style="width: 8%; border-top: solid 1px #000;"></td>
<td style="width: 20%; border-top: solid 1px #000;"></td>
<td style="width: 40%; border-top: solid 1px #000;"></td>
<td style="width: 5%; border-top: solid 1px #000;"></td>
<td style="width: 12%; border-top: solid 1px #000;"></td>
<td style="width: 15%; border-top: solid 1px #000;"></td>
</tr>
<tr>
<td style="width: 8%;"></td>
<td style="width: 20%;"></td>
<td style="width: 40%;" class="sizing"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TOTALSUMBRUT"}]</strong></td>
<td style="width: 5%;"></td>
<td style="width: 12%;"></td>
<td style="width: 15%;" class="aligning sizing">[{$order->getFormattedTotalOrderSum()}] [{$currency->name}]<strong></strong></td>
</tr>
</table>
<table style="width: 100%" cellspacing="0">
<tr><td style="width: 100%">&nbsp;</td></tr>
<tr><td style="width: 100%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_PAYMENTMETHOD"}][{$payment->oxpayments__oxdesc->value}]</td></tr>
<tr><td style="width: 100%" class="sizing">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_GREETINGSORDER"}]</td></tr>
<tr><td style="width: 100%">&nbsp;</td></tr>
<tr><td style="width: 100%" class="sizing">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1"}]</td></tr>
<tr><td style="width: 100%" class="sizing">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2"}]</td></tr>
</table>
</page>
[{*
[{include file="d3tplheader.tpl" title="DD_ORDER_CUST_HEADING"|oxmultilangassign|cat:" #"|cat:"0815" style=""}]
[{block name="email_html_order_cust_orderemail"}]
<p>
[{oxcontent ident="oxuserorderemail"}]
</p>
[{/block}]
[{block name="email_html_order_cust_address"}]
<table class="orderarticles" width="100%" style="width:100%; border: 1px;">
<thead>
<tr bgcolor="#ebebeb">
<th>[{oxmultilang ident="PRODUCT"}]</th>
<th>[{oxmultilang ident="UNIT_PRICE"}]</th>
<th>[{oxmultilang ident="QUANTITY"}]</th>
<th>[{oxmultilang ident="VAT"}]</th>
<th>[{oxmultilang ident="TOTAL"}]</th>
</tr>
</thead>
<tr>
<td>[{oxmultilang ident="PRODUCT"}]</td>
<td>[{oxmultilang ident="UNIT_PRICE"}]</td>
<td>[{oxmultilang ident="QUANTITY"}]</td>
<td>[{oxmultilang ident="VAT"}]</td>
<td>[{oxmultilang ident="TOTAL"}]</td>
</tr>
</table>
[{/block}]
++[{$order->getFieldData('oxordernr')}]++
*}]