add: pdfDocuments_EVS module and it's correspoding files

# Conflicts:
#	source/modules/d3/pdfdocuments/src/Modules/Application/Model/d3_Order_PdfDocuments.php
#	source/modules/d3/pdfdocuments/src/Modules/out/src/deliverynote.css
This commit is contained in:
MaxBUhe 2020-05-15 15:36:43 +02:00 committed by Daniel Seifert
parent e7ad653268
commit 59e49490b2
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
34 changed files with 1616 additions and 221 deletions

View File

@ -0,0 +1,91 @@
[{assign var= currency value= $order->getOrderCurrency()}]
[{assign var= deliveryPrice value= $order->getOrderDeliveryPrice()}]
<style type="text/css">
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'out/src/css/deliverynote.css')}],
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'out/src/css/pdfStyling.css')}]
</style>
<page backtop="30mm" backbottom="30mm" backleft="10mm" backright="10mm" pageset="new">
<page_header>
[{block name="pdfTopingFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/deliveryNote/includingFiles/pdfToping.tpl')}]
[{/block}]
</page_header>
<page_footer>
[{block name="pdfFooterFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/deliveryNote/includingFiles/pdfFooter.tpl')}]
[{/block}]
</page_footer>
[{* +++++ main page part +++++ *}]
[{block name="pdfHeadingFile"}]
[{block name="pdfHeaderFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/deliveryNote/includingFiles/pdfHeader.tpl')}]
[{/block}]
[{/block}]
[{* +++++Artikeltabelle+++++*}]
[{block name="articleListing"}]
<table class="order_article_marginTop10 border-bottom" cellspacing="0">
<tr>
<td class="border-bottom order_article_PaddingBottom5 "><div class="vertical-a order_article_listing_fontSize deliverynote_width_amount">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_AMOUNT"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 paddingLeft"><div class="order_article_listing_fontSize deliverynote_width_artnum">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="order_article_listing_fontSize deliverynote_width_desc">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DESCRIPTION"}]</div></td>
</tr>
[{foreach from=$order->getOrderArticles(true) item=oOrderArticle}]
[{*<tr>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 aligning order_article_listing_width_amount order_article_listing_paddingRight52'>[{$oOrderArticle->oxorderarticles__oxamount->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 order_article_listing_width_desc'>
[{$oOrderArticle->oxorderarticles__oxtitle->getRawValue() }] [{ $oOrderArticle->oxorderarticles__oxselvariant->getRawValue() }]
<br>
<span class="order_article_listing_fontSize9">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}] [{$oOrderArticle->oxorderarticles__oxartnum->value }]</span>
</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_ust'>[{$oOrderArticle->oxorderarticles__oxvat->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_unitPrice'>[{$oOrderArticle->getBrutPriceFormated()}] [{$currency->name}]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_total_Price'>[{$oOrderArticle->getTotalBrutPriceFormated()}] [{$currency->name}]</div></td>
</tr>*}]
<tr>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 aligning deliverynote_width_amount order_article_listing_paddingRight52'>[{$oOrderArticle->oxorderarticles__oxamount->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 textAlignLeft deliverynote_width_artnum order_article_listing_paddingRight52'>[{$oOrderArticle->oxorderarticles__oxartnum->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 deliverynote_width_desc'>[{$oOrderArticle->oxorderarticles__oxtitle->getRawValue() }] [{$oOrderArticle->oxorderarticles__oxselvariant->getRawValue()}]</div></td>
</tr>
[{/foreach}]
</table>
[{/block}]
<nobreak>
[{block name="articleCosts"}]
[{*<table class="article_costs_table border-bottom">
<tr>
[{ ++++++Artikelzusammenfassung++++++ }]
<td class="article_costs_table_paddingRight article_costs_table_td_width50 ">
<div class="order_sum fontSize12 border-bottom order_article_PaddingBottom5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMBRUTTO"}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DISCOUNT"}]</div>
[{/if}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMNETTO"}]</div>
[{foreach from=$order->getVats() key=VatKey item=oVat}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{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"}]</div>
[{/foreach}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DELIVERY"}]</div>
<div class="fontSize12 border-bottom spacing_order_info aligning order_article_costs_paddingRight66 order_article_costs_marginLeftSub3">[{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"}]</div>
<div class="order_sum fontSize12 order_article_PaddingTop5 order_article_PaddingBottom5"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TOTALSUMBRUT"}]</strong></div>
</td>
[{ ++++++Kosten der Bestellung++++++ }]
<td class="article_costs_table_td_width50">
<div class="order_sumNum aligning fontSize12 border-bottom order_article_PaddingBottom5">[{$order->getFormattedTotalBrutSum()}] [{$currency->name}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">-[{$order->getFormattedDiscount()}] [{$currency->name}]</div>
[{/if}]
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$order->getFormattedTotalNetSum()}] [{$currency->name}]</div>
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$lang->formatCurrency($deliveryPrice->getNettoPrice(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($deliveryPrice->getVATValue(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12"><strong>[{$order->getFormattedTotalOrderSum()}] [{$currency->name}]</strong></div>
</td>
</tr>
</table>*}]
[{/block}]
[{block name="pdfPastThankFile"}]
[{include file=$oViewConf->getModulePath('d3InvoicePdf', 'Application/views/tpl/deliveryNote/includingFiles/pdfPastThank.tpl')}]
[{/block}]
</nobreak>
</page>

View File

@ -0,0 +1,32 @@
[{block name="pdfFooter"}]
<table class="pdf_footer_table" cellspacing="0">
<tr>
[{block name="shop_basic_information"}]
<td class="footer_parts">
<div>[{$shop->oxshops__oxname->value}]</div>
<div>[{$shop->oxshops__oxstreet->value}]</div>
<div>[{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxurl->value}]</div>
<div>[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
[{/block}]
[{block name="owner_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_MANAGINGDIRECTOR"}][{$shop->oxshops__oxfname->value}] [{$shop->oxshops__oxlname->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_COURT"}] [{$shop->oxshops__oxcourt->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_HRBNR"}][{$shop->oxshops__oxhrbnr->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTID"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
[{/block}]
[{block name="bank_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</div>
<div>[{$shop->oxshops__oxbankname->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE"}][{$shop->oxshops__oxbiccode->value}]</div>
</td>
[{/block}]
</tr>
</table>
[{/block}]

View File

@ -0,0 +1,52 @@
[{block name="pdfHeading"}]
<table class="fontSize12 pdf_heading_table" cellspacing="0">
[{block name="heading_owner_information"}]
<tr>
<td class="pdf_heading_width65">
<div class="pdf_heading_fontSize8">[{$shop->oxshops__oxname->value}] - [{$shop->oxshops__oxstreet->value}] - [{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
</td>
[{*<td class="pdf_heading_width35">
<div class="aligning"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_GET_IN_CONTACT"}]</strong></div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TELEFON"}][{$shop->oxshops__oxtelefon->value}]</div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_FAX"}][{$shop->oxshops__oxtelefax->value}]</div>
<div class="aligning fontSize12">[{$shop->oxshops__oxinfoemail->value}]</div>
</td>*}]
</tr>
[{/block}]
[{block name="heading_order_information"}]
<tr>
<td class="vertical-a heading_order_width65 heading_order_paddingTopSub5" style="padding-top: 5px">
[{if $order->oxorder__oxbillcompany->value}]
<div>[{$order->oxorder__oxbillcompany->value}]</div>
[{/if}]
<div>[{$order->oxorder__oxbillfname->value}] [{$order->oxorder__oxbilllname->value}]</div>
<div>[{$order->oxorder__oxbillstreet->value}] [{$order->oxorder__oxbillstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxbillzip->value}] [{$order->oxorder__oxbillcity->value}]</strong></div>
<div class="heading_order_paddingBottom15">[{$shop->oxshops__oxcountry->value}]</div>
[{* +++++++Lieferadressen dynamisch+++++++ *}]
[{if $order->oxorder__oxdelstreet->value}]
<div class="heading_order_fontSize10 heading_order_paddingBottom8">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DELIVERYADDRESS"}]</div>
[{if $order->oxorder__oxdelcompany->value}]<div>[{$order->oxorder__oxdelcompany->value}]</div>[{/if}]
<div>[{$order->oxorder__oxdelfname->value}] [{$order->oxorder__oxdellname->value}]</div>
<div>[{$order->oxorder__oxdelstreet->value}] [{$order->oxorder__oxdelstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxdelzip->value}] [{$order->oxorder__oxdelcity->value}]</strong></div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxdeladdinfo->value}]</div>
[{/if}]
[{*Bestellnummer,Rechnungsvermerk, 'Ihre bestellung vom...'*}]
<div class="heading_order_paddingTop22 heading_order_fontSize15"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DELIVERYNOTE"}][{$order->oxorder__oxordernr->value}]</strong></div>
<div class="heading_order_paddingTop1">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSINCERELY"}][{$order->oxorder__oxorderdate->value|date_format:"%d.%m.%Y"}][{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSAT"}]</div>
</td>
<td class="vertical-a heading_order_width35 heading_order_paddingTopSub5">
<div class="aligning" style="font-size: 7px; padding-top: 50px">[{oxmultilang ident="D3_DELIVERYNOTE_PDF_QUOTECUSTMNR"}]</div>
<div class="aligning" style="padding-bottom: 50px">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_CUSTOMERNR"}] [{$user->oxuser__oxcustnr->value}]</div>
<div class="aligning">[{$shop->oxshops__oxcity->value}], [{$order->oxorder__oxbilldate->value|date_format:"%d.%m.%Y"}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTIDNR"}][{$shop->oxshops__oxvatnumber->value}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILLNR"}][{$order->oxorder__oxbillnr->value}]</div>
</td>
</tr>
[{/block}]
</table>
[{/block}]

View File

@ -0,0 +1,16 @@
[{block name="pdfPastThankFile"}]
<table class="past_thank_width100" cellspacing="0">
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_PAYMENTMETHOD"}][{$payment->oxpayments__oxdesc->value}]</td></tr>
[{* +++++++Individueller Zahlungstext+++++++ *}]
[{if $order->oxorder__d3pdftextbestellbestaetigung->value}]
<tr><td class="past_thank_width100 fontSize12">[{$order->oxorder__d3pdftextbestellbestaetigung->value}]</td></tr>
[{else}]
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_GREETINGSORDER"}]</td></tr>
[{/if}]
[{*+++++++++++*}]
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1"}]</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2"}]</td></tr>
</table>
[{/block}]

View File

@ -0,0 +1,5 @@
[{block name="pdfToping"}]
<div class="pdf_header_positioning">
<img src="[{$oViewConf->getImageUrl('Elektroversand-Schmidt_Logo_180.jpg')}]">
</div>
[{/block}]

View File

@ -0,0 +1,32 @@
[{block name="pdfFooter"}]
<table class="pdf_footer_table" cellspacing="0">
<tr>
[{block name="shop_basic_information"}]
<td class="footer_parts">
<div>[{*$shop->oxshops__oxname->value*}][{$pdfdocumentsCSS}]</div>
<div>[{$shop->oxshops__oxstreet->value}]</div>
<div>[{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxurl->value}]</div>
<div>[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
[{/block}]
[{block name="owner_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_MANAGINGDIRECTOR"}][{$shop->oxshops__oxfname->value}] [{$shop->oxshops__oxlname->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_COURT"}] [{$shop->oxshops__oxcourt->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_HRBNR"}][{$shop->oxshops__oxhrbnr->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTID"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
[{/block}]
[{block name="bank_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</div>
<div>[{$shop->oxshops__oxbankname->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE"}][{$shop->oxshops__oxbiccode->value}]</div>
</td>
[{/block}]
</tr>
</table>
[{/block}]

View File

@ -0,0 +1,56 @@
[{block name="pdfHeading"}]
<table class="fontSize12 pdf_heading_table" cellspacing="0">
[{block name="heading_owner_information"}]
<tr>
<td class="pdf_heading_width65">
<div class="pdf_heading_fontSize8">[{$shop->oxshops__oxname->value}] - [{$shop->oxshops__oxstreet->value}] - [{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
</td>
<td class="pdf_heading_width35">
<div class="aligning"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_GET_IN_CONTACT"}]</strong></div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TELEFON"}][{$shop->oxshops__oxtelefon->value}]</div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_FAX"}][{$shop->oxshops__oxtelefax->value}]</div>
<div class="aligning fontSize12">[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
</tr>
[{/block}]
[{block name="heading_order_information"}]
<tr>
<td class="vertical-a heading_order_width65 heading_order_paddingTopSub5">
[{if $order->oxorder__oxbillcompany->value}]
<div>[{$order->oxorder__oxbillcompany->value}]</div>
[{/if}]
<div>[{$order->oxorder__oxbillfname->value}] [{$order->oxorder__oxbilllname->value}]</div>
<div>[{$order->oxorder__oxbillstreet->value}] [{$order->oxorder__oxbillstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxbillzip->value}] [{$order->oxorder__oxbillcity->value}]</strong></div>
<div class="heading_order_paddingBottom15">[{$shop->oxshops__oxcountry->value}]</div>
[{* +++++++Lieferadressen dynamisch+++++++ *}]
[{if $order->oxorder__oxdelstreet->value}]
<div class="heading_order_fontSize10 heading_order_paddingBottom8">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DELIVERYADDRESS"}]</div>
[{if $order->oxorder__oxdelcompany->value}]<div>[{$order->oxorder__oxdelcompany->value}]</div>[{/if}]
<div>[{$order->oxorder__oxdelfname->value}] [{$order->oxorder__oxdellname->value}]</div>
<div>[{$order->oxorder__oxdelstreet->value}] [{$order->oxorder__oxdelstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxdelzip->value}] [{$order->oxorder__oxdelcity->value}]</strong></div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxdeladdinfo->value}]</div>
[{/if}]
[{*Bestellnummer,Rechnungsvermerk, 'Ihre bestellung vom...'*}]
<div class="heading_order_paddingTop22 heading_order_fontSize15"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERNR"}][{$order->oxorder__oxordernr->value}]</strong></div>
<div>[{if $order->oxorder__d3pdftextkostenstelle_kunden->value}][{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_INVOICENOTE"}][{$order->oxorder__d3pdftextkostenstelle_kunden->value}][{/if}]</div>
<div class="heading_order_paddingTop1">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSINCERELY"}][{$order->oxorder__oxorderdate->value|date_format:"%d.%m.%Y"}][{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSAT"}]</div>
</td>
<td class="vertical-a heading_order_width35 heading_order_paddingTopSub5">
<div class="aligning heading_order_paddingTop10"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</strong></div>
<div class="aligning">[{$shop->oxshops__oxbankname->value}]</div>
<div class="aligning">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div class="aligning">[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE_HEADER"}][{$shop->oxshops__oxbiccode->value}]</div>
<div class="aligning heading_order_paddingTop10">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILLNR"}][{$order->oxorder__oxbillnr->value}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_CUSTOMERNR"}] [{$user->oxuser__oxcustnr->value}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DATE"}][{$order->oxorder__oxbilldate->value|date_format:"%d.%m.%Y"}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTIDNR"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
</tr>
[{/block}]
</table>
[{/block}]

View File

@ -0,0 +1,16 @@
[{block name="pdfPastThankFile"}]
<table class="past_thank_width100" cellspacing="0">
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_PAYMENTMETHOD"}][{$payment->oxpayments__oxdesc->value}]</td></tr>
[{* +++++++Individueller Zahlungstext+++++++ *}]
[{if $order->oxorder__d3pdftextbestellbestaetigung->value}]
<tr><td class="past_thank_width100 fontSize12">[{$order->oxorder__d3pdftextbestellbestaetigung->value}]</td></tr>
[{else}]
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_GREETINGSORDER"}]</td></tr>
[{/if}]
[{*+++++++++++*}]
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1"}]</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2"}]</td></tr>
</table>
[{/block}]

View File

@ -0,0 +1,5 @@
[{block name="pdfToping"}]
<div class="pdf_header_positioning">
<img src="[{$oViewConf->getImageUrl('Elektroversand-Schmidt_Logo_180.jpg')}]">
</div>
[{/block}]

View File

@ -0,0 +1,87 @@
[{assign var= currency value= $order->getOrderCurrency()}]
[{assign var= deliveryPrice value= $order->getOrderDeliveryPrice()}]
<style type="text/css">
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'out/src/css/pdfStyling.css')}]
</style>
<page backtop="30mm" backbottom="30mm" backleft="10mm" backright="10mm" pageset="new">
<page_header>
[{block name="pdfTopingFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfToping.tpl"}]
[{/block}]
</page_header>
<page_footer>
[{block name="pdfFooterFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfFooter.tpl"}]
[{/block}]
</page_footer>
[{* +++++ main page part +++++ *}]
[{block name="pdfHeadingFile"}]
[{block name="pdfHeaderFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfHeader.tpl"}]
[{/block}]
[{/block}]
[{* +++++Artikeltabelle+++++*}]
[{block name="articleListing"}]
<table class="order_article_marginTop10" cellspacing="0">
<tr>
<td class="border-bottom order_article_PaddingBottom5 "><div class="vertical-a order_article_listing_fontSize order_article_listing_width_amount">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_AMOUNT"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="order_article_listing_fontSize order_article_listing_width_desc">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DESCRIPTION"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_ust">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTPERCENTAGE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_unitPrice">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_UNITPRICE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_total_Price">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TOTALPRICE"}]</div></td>
</tr>
[{foreach from=$order->getOrderArticles(true) item=oOrderArticle}]
<tr>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 aligning order_article_listing_width_amount order_article_listing_paddingRight52'>[{$oOrderArticle->oxorderarticles__oxamount->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 order_article_listing_width_desc'>
[{$oOrderArticle->oxorderarticles__oxtitle->getRawValue() }] [{ $oOrderArticle->oxorderarticles__oxselvariant->getRawValue() }]
<br>
<span class="order_article_listing_fontSize9">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}] [{$oOrderArticle->oxorderarticles__oxartnum->value }]</span>
</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_ust'>[{$oOrderArticle->oxorderarticles__oxvat->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_unitPrice'>[{$oOrderArticle->getBrutPriceFormated()}] [{$currency->name}]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_total_Price'>[{$oOrderArticle->getTotalBrutPriceFormated()}] [{$currency->name}]</div></td>
</tr>
[{/foreach}]
</table>
[{/block}]
<nobreak>
[{block name="articleCosts"}]
<table class="article_costs_table border-bottom">
<tr>
[{* ++++++Artikelzusammenfassung++++++ *}]
<td class="article_costs_table_paddingRight article_costs_table_td_width50 ">
<div class="order_sum fontSize12 border-bottom order_article_PaddingBottom5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMBRUTTO"}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DISCOUNT"}]</div>
[{/if}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMNETTO"}]</div>
[{foreach from=$order->getVats() key=VatKey item=oVat}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{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"}]</div>
[{/foreach}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DELIVERY"}]</div>
<div class="fontSize12 border-bottom spacing_order_info aligning order_article_costs_paddingRight66 order_article_costs_marginLeftSub3">[{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"}]</div>
<div class="order_sum fontSize12 order_article_PaddingTop5 order_article_PaddingBottom5"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TOTALSUMBRUT"}]</strong></div>
</td>
[{* ++++++Kosten der Bestellung++++++ *}]
<td class="article_costs_table_td_width50">
<div class="order_sumNum aligning fontSize12 border-bottom order_article_PaddingBottom5">[{$order->getFormattedTotalBrutSum()}] [{$currency->name}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">-[{$order->getFormattedDiscount()}] [{$currency->name}]</div>
[{/if}]
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$order->getFormattedTotalNetSum()}] [{$currency->name}]</div>
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$lang->formatCurrency($deliveryPrice->getNettoPrice(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($deliveryPrice->getVATValue(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12"><strong>[{$order->getFormattedTotalOrderSum()}] [{$currency->name}]</strong></div>
</td>
</tr>
</table>
[{/block}]
[{block name="pdfPastThankFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfPastThank.tpl"}]
[{/block}]
</nobreak>
</page>

View File

@ -0,0 +1,101 @@
[{assign var= currency value= $order->getOrderCurrency()}]
[{assign var= deliveryPrice value= $order->getOrderDeliveryPrice()}]
<style type="text/css">
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'out/src/css/pdfInvoiceCorrection.css')}],
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'out/src/css/pdfStyling.css')}]
</style>
<page backtop="30mm" backbottom="30mm" backleft="10mm" backright="10mm" pageset="new">
<page_header>
[{block name="pdfTopingFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/invoiceCorrection/includingFiles/pdfToping.tpl')}]
[{/block}]
</page_header>
<page_footer>
[{block name="pdfFooterFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/invoiceCorrection/includingFiles/pdfFooter.tpl')}]
[{/block}]
</page_footer>
[{* +++++ main page part +++++ *}]
[{block name="pdfHeadingFile"}]
[{block name="pdfHeaderFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/invoiceCorrection/includingFiles/pdfHeader.tpl')}]
[{/block}]
[{/block}]
[{* +++++Artikeltabelle+++++*}]
[{block name="articleListing"}]
<table class="order_article_marginTop10" cellspacing="0">
<tr>
<td class="border-bottom order_article_PaddingBottom5 "><div class="vertical-a order_article_listing_fontSize order_article_listing_width_amount">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_AMOUNT"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="order_article_listing_fontSize order_article_listing_width_desc">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DESCRIPTION"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_ust">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTPERCENTAGE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_unitPrice">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_UNITPRICE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_total_Price">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TOTALPRICE"}]</div></td>
</tr>
[{foreach from=$order->getOrderArticles(true) item=oOrderArticle}]
<tr>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 aligning order_article_listing_width_amount order_article_listing_paddingRight52'>[{$oOrderArticle->oxorderarticles__oxamount->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 order_article_listing_width_desc'>
[{$oOrderArticle->oxorderarticles__oxtitle->getRawValue() }] [{ $oOrderArticle->oxorderarticles__oxselvariant->getRawValue() }]
<br>
<span class="order_article_listing_fontSize9">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}] [{$oOrderArticle->oxorderarticles__oxartnum->value }]</span>
</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_ust'>[{$oOrderArticle->oxorderarticles__oxvat->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_unitPrice'>[{$oOrderArticle->getBrutPriceFormated()}] [{$currency->name}]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_total_Price'>[{$oOrderArticle->getTotalBrutPriceFormated()}] [{$currency->name}]</div></td>
</tr>
[{/foreach}]
</table>
[{/block}]
<nobreak>
[{block name="articleCosts"}]
<table class="article_costs_table border-bottom invoiceCorrection_tableMarginTop15" cellspacing="0">
<tr>
[{* ++++++Artikelzusammenfassung++++++ *}]
<td class="article_costs_table_paddingRight article_costs_table_td_width50">
<div class="invoiceCorrection_spacingLeft20 fontSize12 order_article_PaddingTop5 order_article_PaddingBottom5"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TOTALSUMBRUT"}]</strong></div>
[{*if $order->getFormattedDiscount() != 0}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DISCOUNT"}]</div>
[{/if}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMNETTO"}]</div>
[{foreach from=$order->getVats() key=VatKey item=oVat}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{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"}]</div>
[{/foreach}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DELIVERY"}]</div>
<div class="fontSize12 border-bottom spacing_order_info aligning order_article_costs_paddingRight66 order_article_costs_marginLeftSub3">[{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"}]</div>*}]
</td>
[{* ++++++Kosten der Bestellung++++++ *}]
<td class="article_costs_table_td_width50">
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12"><strong>[{$order->getFormattedTotalOrderSum()}] [{$currency->name}]</strong></div>
[{*if $order->getFormattedDiscount() != 0}]
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">-[{$order->getFormattedDiscount()}] [{$currency->name}]</div>
[{/if}]
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$order->getFormattedTotalNetSum()}] [{$currency->name}]</div>
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$lang->formatCurrency($deliveryPrice->getNettoPrice(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($deliveryPrice->getVATValue(), $currency)}] [{$currency->name}]</div>*}]
</td>
</tr>
</table>
<table class="article_costs_table border-bottom" style="margin-top: 7px" cellspacing="0">
<tr>
<td class="article_costs_table_td_width50">
<div class="invoiceCorrection_spacingLeft20 fontSize12">[{oxmultilang ident="D3_DELIVERYNOTE_PDF_SUM_EXCL_TAX"}]</div>
<div class="invoiceCorrection_spacingLeft20 fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_DELIVERYNOTE_PDF_CONTAININGTAX"}]</div>
</td>
<td class="article_costs_table_td_width50">
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$order->getFormattedTotalNetSum()}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</div>
</td>
</tr>
</table>
[{/block}]
[{block name="pdfPastThankFile"}]
<div style="padding-top: 30px; padding-bottom: 30px">
<div>hier müssen auch noch die Werte von 'te' ausgegriffen werden [Gesamtsumme; Gesamtsumme (excl. MwSt); enthaltene Mehrwertsteuer]</div>
<div>oben die Rechnungskorrekturnummer muss ausgegriffen werden</div>
</div>
[{/block}]
</nobreak>
</page>

View File

@ -0,0 +1,32 @@
[{block name="pdfFooter"}]
<table class="pdf_footer_table" cellspacing="0">
<tr>
[{block name="shop_basic_information"}]
<td class="footer_parts">
<div>[{$shop->oxshops__oxname->value}]</div>
<div>[{$shop->oxshops__oxstreet->value}]</div>
<div>[{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxurl->value}]</div>
<div>[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
[{/block}]
[{block name="owner_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_MANAGINGDIRECTOR"}][{$shop->oxshops__oxfname->value}] [{$shop->oxshops__oxlname->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_COURT"}] [{$shop->oxshops__oxcourt->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_HRBNR"}][{$shop->oxshops__oxhrbnr->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTID"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
[{/block}]
[{block name="bank_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</div>
<div>[{$shop->oxshops__oxbankname->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE"}][{$shop->oxshops__oxbiccode->value}]</div>
</td>
[{/block}]
</tr>
</table>
[{/block}]

View File

@ -0,0 +1,48 @@
[{block name="pdfHeading"}]
<table class="fontSize12 pdf_heading_table" cellspacing="0">
[{block name="heading_owner_information"}]
<tr>
<td class="pdf_heading_width65">
<div class="pdf_heading_fontSize8">[{$shop->oxshops__oxname->value}] - [{$shop->oxshops__oxstreet->value}] - [{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
</td>
<td class="pdf_heading_width35">
<div class="aligning" style="font-size: 7px; padding-top: 8px; padding-bottom: 4px">[{oxmultilang ident="D3_DELIVERYNOTE_PDF_QUOTECUSTMNR"}]</div>
<div class="aligning" style="font-size: 10px;">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_CUSTOMERNR"}] [{$user->oxuser__oxcustnr->value}]</div>
</td>
</tr>
[{/block}]
[{block name="heading_order_information"}]
<tr>
<td class="vertical-a heading_order_width65 heading_order_paddingTopSub5 invoiceCorrectionPaddingTop5" style="padding-top: 5px;">
[{if $order->oxorder__oxbilllname->value}]
[{if $order->oxorder__oxdelcompany->value}]<div>[{$order->oxorder__oxdelcompany->value}]</div>[{/if}]
<div>[{$order->oxorder__oxdelfname->value}] [{$order->oxorder__oxdellname->value}]</div>
<div>[{$order->oxorder__oxdelstreet->value}] [{$order->oxorder__oxdelstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxdelzip->value}] [{$order->oxorder__oxdelcity->value}]</strong></div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxdeladdinfo->value}]</div>
[{else}]
[{if $order->oxorder__oxbillcompany->value}]<div>[{$order->oxorder__oxbillcompany->value}]</div>[{/if}]
<div>[{$order->oxorder__oxbillfname->value}] [{$order->oxorder__oxbilllname->value}]</div>
<div>[{$order->oxorder__oxbillstreet->value}] [{$order->oxorder__oxbillstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxbillzip->value}] [{$order->oxorder__oxbillcity->value}]</strong></div>
<div class="heading_order_paddingBottom15">[{$shop->oxshops__oxcountry->value}]</div>
[{/if}]
</td>
</tr>
</table>
<table class="fontSize12 pdf_heading_table" cellspacing="0">
<tr>
<td class="invoiceCorrection_width_60" style="width: 60%">
<div class="heading_order_fontSize15 invoiceCorrectionPaddingBottom20">[{oxmultilang ident="D3_DELIVERYNOTE_PDF_INVOICECORRECTION"}] 0000 [{oxmultilang ident="D3_DELIVERYNOTE_PDF_TOINVOICE"}][{$order->oxorder__oxbillnr->value}]</div>
<div class="">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSINCERELY"}][{$order->oxorder__oxorderdate->value|date_format:"%d.%m.%Y"}][{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSAT"}]</div>
</td>
<td class="vertical-a invoiceCorrection_width_40">
<div class="aligning invoiceCorrection_font8 invoiceCorrectionPaddingTop4">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DATE"}]</div>
<div class="aligning invoiceCorrection_font9 invoiceCorrectionPaddingBottom16">[{$shop->oxshops__oxcity->value}], [{$order->oxorder__oxorderdate->value|date_format:"%d.%m.%Y"}]</div>
<div class="aligning invoiceCorrection_font9">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERNR"}][{$order->oxorder__oxordernr->value}]</div>
</td>
</tr>
[{/block}]
</table>
[{/block}]

View File

@ -0,0 +1,16 @@
[{block name="pdfPastThankFile"}]
<table class="past_thank_width100" cellspacing="0">
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_PAYMENTMETHOD"}][{$payment->oxpayments__oxdesc->value}]</td></tr>
[{* +++++++Individueller Zahlungstext+++++++ *}]
[{if $order->oxorder__d3pdftextbestellbestaetigung->value}]
<tr><td class="past_thank_width100 fontSize12">[{$order->oxorder__d3pdftextbestellbestaetigung->value}]</td></tr>
[{else}]
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_GREETINGSORDER"}]</td></tr>
[{/if}]
[{*+++++++++++*}]
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1"}]</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2"}]</td></tr>
</table>
[{/block}]

View File

@ -0,0 +1,5 @@
[{block name="pdfToping"}]
<div class="pdf_header_positioning">
<img src="[{$oViewConf->getImageUrl('Elektroversand-Schmidt_Logo_180.jpg')}]">
</div>
[{/block}]

View File

@ -0,0 +1,87 @@
[{assign var= currency value= $order->getOrderCurrency()}]
[{assign var= deliveryPrice value= $order->getOrderDeliveryPrice()}]
<style type="text/css">
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'out/src/css/pdfStyling.css')}]
</style>
<page backtop="30mm" backbottom="30mm" backleft="10mm" backright="10mm" pageset="new">
<page_header>
[{block name="pdfTopingFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfToping.tpl"}]
[{/block}]
</page_header>
<page_footer>
[{block name="pdfFooterFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfFooter.tpl"}]
[{/block}]
</page_footer>
[{* +++++ main page part +++++ *}]
[{block name="pdfHeadingFile"}]
[{block name="pdfHeaderFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfHeader.tpl"}]
[{/block}]
[{/block}]
[{* +++++Artikeltabelle+++++*}]
[{block name="articleListing"}]
<table class="order_article_marginTop10" cellspacing="0">
<tr>
<td class="border-bottom order_article_PaddingBottom5 "><div class="vertical-a order_article_listing_fontSize order_article_listing_width_amount">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_AMOUNT"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="order_article_listing_fontSize order_article_listing_width_desc">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DESCRIPTION"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_ust">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTPERCENTAGE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_unitPrice">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_UNITPRICE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_total_Price">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TOTALPRICE"}]</div></td>
</tr>
[{foreach from=$order->getOrderArticles(true) item=oOrderArticle}]
<tr>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 aligning order_article_listing_width_amount order_article_listing_paddingRight52'>[{$oOrderArticle->oxorderarticles__oxamount->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 order_article_listing_width_desc'>
[{$oOrderArticle->oxorderarticles__oxtitle->getRawValue() }] [{ $oOrderArticle->oxorderarticles__oxselvariant->getRawValue() }]
<br>
<span class="order_article_listing_fontSize9">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}] [{$oOrderArticle->oxorderarticles__oxartnum->value }]</span>
</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_ust'>[{$oOrderArticle->oxorderarticles__oxvat->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_unitPrice'>[{$oOrderArticle->getBrutPriceFormated()}] [{$currency->name}]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_total_Price'>[{$oOrderArticle->getTotalBrutPriceFormated()}] [{$currency->name}]</div></td>
</tr>
[{/foreach}]
</table>
[{/block}]
<nobreak>
[{block name="articleCosts"}]
<table class="article_costs_table border-bottom">
<tr>
[{* ++++++Artikelzusammenfassung++++++ *}]
<td class="article_costs_table_paddingRight article_costs_table_td_width50 ">
<div class="order_sum fontSize12 border-bottom order_article_PaddingBottom5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMBRUTTO"}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DISCOUNT"}]</div>
[{/if}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMNETTO"}]</div>
[{foreach from=$order->getVats() key=VatKey item=oVat}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{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"}]</div>
[{/foreach}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DELIVERY"}]</div>
<div class="fontSize12 border-bottom spacing_order_info aligning order_article_costs_paddingRight66 order_article_costs_marginLeftSub3">[{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"}]</div>
<div class="order_sum fontSize12 order_article_PaddingTop5 order_article_PaddingBottom5"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TOTALSUMBRUT"}]</strong></div>
</td>
[{* ++++++Kosten der Bestellung++++++ *}]
<td class="article_costs_table_td_width50">
<div class="order_sumNum aligning fontSize12 border-bottom order_article_PaddingBottom5">[{$order->getFormattedTotalBrutSum()}] [{$currency->name}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">-[{$order->getFormattedDiscount()}] [{$currency->name}]</div>
[{/if}]
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$order->getFormattedTotalNetSum()}] [{$currency->name}]</div>
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$lang->formatCurrency($deliveryPrice->getNettoPrice(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($deliveryPrice->getVATValue(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12"><strong>[{$order->getFormattedTotalOrderSum()}] [{$currency->name}]</strong></div>
</td>
</tr>
</table>
[{/block}]
[{block name="pdfPastThankFile"}]
[{include file="/home/elegltyp/schmidtshop.wkgisp.de/source/modules/d3/pdfdocuments/Application/views/tpl/includingFiles/pdfPastThank.tpl"}]
[{/block}]
</nobreak>
</page>

View File

@ -0,0 +1,32 @@
[{block name="pdfFooter"}]
<table class="pdf_footer_table" cellspacing="0">
<tr>
[{block name="shop_basic_information"}]
<td class="footer_parts">
<div>[{*$shop->oxshops__oxname->value*}][{$pdfdocumentsCSS}]</div>
<div>[{$shop->oxshops__oxstreet->value}]</div>
<div>[{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxurl->value}]</div>
<div>[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
[{/block}]
[{block name="owner_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_MANAGINGDIRECTOR"}][{$shop->oxshops__oxfname->value}] [{$shop->oxshops__oxlname->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_COURT"}] [{$shop->oxshops__oxcourt->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_HRBNR"}][{$shop->oxshops__oxhrbnr->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTID"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
[{/block}]
[{block name="bank_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</div>
<div>[{$shop->oxshops__oxbankname->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE"}][{$shop->oxshops__oxbiccode->value}]</div>
</td>
[{/block}]
</tr>
</table>
[{/block}]

View File

@ -0,0 +1,56 @@
[{block name="pdfHeading"}]
<table class="fontSize12 pdf_heading_table" cellspacing="0">
[{block name="heading_owner_information"}]
<tr>
<td class="pdf_heading_width65">
<div class="pdf_heading_fontSize8">[{$shop->oxshops__oxname->value}] - [{$shop->oxshops__oxstreet->value}] - [{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
</td>
<td class="pdf_heading_width35">
<div class="aligning"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_GET_IN_CONTACT"}]</strong></div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TELEFON"}][{$shop->oxshops__oxtelefon->value}]</div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_FAX"}][{$shop->oxshops__oxtelefax->value}]</div>
<div class="aligning fontSize12">[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
</tr>
[{/block}]
[{block name="heading_order_information"}]
<tr>
<td class="vertical-a heading_order_width65 heading_order_paddingTopSub5">
[{if $order->oxorder__oxbillcompany->value}]
<div>[{$order->oxorder__oxbillcompany->value}]</div>
[{/if}]
<div>[{$order->oxorder__oxbillfname->value}] [{$order->oxorder__oxbilllname->value}]</div>
<div>[{$order->oxorder__oxbillstreet->value}] [{$order->oxorder__oxbillstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxbillzip->value}] [{$order->oxorder__oxbillcity->value}]</strong></div>
<div class="heading_order_paddingBottom15">[{$shop->oxshops__oxcountry->value}]</div>
[{* +++++++Lieferadressen dynamisch+++++++ *}]
[{if $order->oxorder__oxdelstreet->value}]
<div class="heading_order_fontSize10 heading_order_paddingBottom8">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DELIVERYADDRESS"}]</div>
[{if $order->oxorder__oxdelcompany->value}]<div>[{$order->oxorder__oxdelcompany->value}]</div>[{/if}]
<div>[{$order->oxorder__oxdelfname->value}] [{$order->oxorder__oxdellname->value}]</div>
<div>[{$order->oxorder__oxdelstreet->value}] [{$order->oxorder__oxdelstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxdelzip->value}] [{$order->oxorder__oxdelcity->value}]</strong></div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxdeladdinfo->value}]</div>
[{/if}]
[{*Bestellnummer,Rechnungsvermerk, 'Ihre bestellung vom...'*}]
<div class="heading_order_paddingTop22 heading_order_fontSize15"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERNR"}][{$order->oxorder__oxordernr->value}]</strong></div>
<div>[{if $order->oxorder__d3pdftextkostenstelle_kunden->value}][{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_INVOICENOTE"}][{$order->oxorder__d3pdftextkostenstelle_kunden->value}][{/if}]</div>
<div class="heading_order_paddingTop1">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSINCERELY"}][{$order->oxorder__oxorderdate->value|date_format:"%d.%m.%Y"}][{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSAT"}]</div>
</td>
<td class="vertical-a heading_order_width35 heading_order_paddingTopSub5">
<div class="aligning heading_order_paddingTop10"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</strong></div>
<div class="aligning">[{$shop->oxshops__oxbankname->value}]</div>
<div class="aligning">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div class="aligning">[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE_HEADER"}][{$shop->oxshops__oxbiccode->value}]</div>
<div class="aligning heading_order_paddingTop10">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILLNR"}][{$order->oxorder__oxbillnr->value}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_CUSTOMERNR"}] [{$user->oxuser__oxcustnr->value}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DATE"}][{$order->oxorder__oxbilldate->value|date_format:"%d.%m.%Y"}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTIDNR"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
</tr>
[{/block}]
</table>
[{/block}]

View File

@ -0,0 +1,16 @@
[{block name="pdfPastThankFile"}]
<table class="past_thank_width100" cellspacing="0">
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_PAYMENTMETHOD"}][{$payment->oxpayments__oxdesc->value}]</td></tr>
[{* +++++++Individueller Zahlungstext+++++++ *}]
[{if $order->oxorder__d3pdftextbestellbestaetigung->value}]
<tr><td class="past_thank_width100 fontSize12">[{$order->oxorder__d3pdftextbestellbestaetigung->value}]</td></tr>
[{else}]
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_GREETINGSORDER"}]</td></tr>
[{/if}]
[{*+++++++++++*}]
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1"}]</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2"}]</td></tr>
</table>
[{/block}]

View File

@ -0,0 +1,5 @@
[{block name="pdfToping"}]
<div class="pdf_header_positioning">
<img src="[{$oViewConf->getImageUrl('Elektroversand-Schmidt_Logo_180.jpg')}]">
</div>
[{/block}]

View File

@ -0,0 +1,87 @@
[{assign var= currency value= $order->getOrderCurrency()}]
[{assign var= deliveryPrice value= $order->getOrderDeliveryPrice()}]
<style type="text/css">
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'out/src/css/pdfStyling.css')}]
</style>
<page backtop="30mm" backbottom="30mm" backleft="10mm" backright="10mm" pageset="new">
<page_header>
[{block name="pdfTopingFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/orderConfirmationincludingFiles/pdfToping.tpl')}]
[{/block}]
</page_header>
<page_footer>
[{block name="pdfFooterFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/orderConfirmationincludingFiles/pdfFooter.tpl')}]
[{/block}]
</page_footer>
[{* +++++ main page part +++++ *}]
[{block name="pdfHeadingFile"}]
[{block name="pdfHeaderFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/orderConfirmationincludingFiles/pdfHeader.tpl')}]
[{/block}]
[{/block}]
[{* +++++Artikeltabelle+++++*}]
[{block name="articleListing"}]
<table class="order_article_marginTop10" cellspacing="0">
<tr>
<td class="border-bottom order_article_PaddingBottom5 "><div class="vertical-a order_article_listing_fontSize order_article_listing_width_amount">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_AMOUNT"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="order_article_listing_fontSize order_article_listing_width_desc">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DESCRIPTION"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_ust">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTPERCENTAGE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_unitPrice">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_UNITPRICE"}]</div></td>
<td class="border-bottom order_article_PaddingBottom5 "><div class="aligning order_article_listing_fontSize order_article_listing_width_total_Price">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TOTALPRICE"}]</div></td>
</tr>
[{foreach from=$order->getOrderArticles(true) item=oOrderArticle}]
<tr>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 aligning order_article_listing_width_amount order_article_listing_paddingRight52'>[{$oOrderArticle->oxorderarticles__oxamount->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='fontSize12 order_article_listing_width_desc'>
[{$oOrderArticle->oxorderarticles__oxtitle->getRawValue() }] [{ $oOrderArticle->oxorderarticles__oxselvariant->getRawValue() }]
<br>
<span class="order_article_listing_fontSize9">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ARTNR"}] [{$oOrderArticle->oxorderarticles__oxartnum->value }]</span>
</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_ust'>[{$oOrderArticle->oxorderarticles__oxvat->value }]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_unitPrice'>[{$oOrderArticle->getBrutPriceFormated()}] [{$currency->name}]</div></td>
<td class="order_article_PaddingTop5 vertical-a order_article_PaddingBottom5"><div class='aligning fontSize12 order_article_listing_width_total_Price'>[{$oOrderArticle->getTotalBrutPriceFormated()}] [{$currency->name}]</div></td>
</tr>
[{/foreach}]
</table>
[{/block}]
<nobreak>
[{block name="articleCosts"}]
<table class="article_costs_table border-bottom">
<tr>
[{* ++++++Artikelzusammenfassung++++++ *}]
<td class="article_costs_table_paddingRight article_costs_table_td_width50 ">
<div class="order_sum fontSize12 border-bottom order_article_PaddingBottom5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMBRUTTO"}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DISCOUNT"}]</div>
[{/if}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_SUMNETTO"}]</div>
[{foreach from=$order->getVats() key=VatKey item=oVat}]
<div class="order_sum fontSize12 border-bottom spacing_order_info">[{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"}]</div>
[{/foreach}]
<div class="order_sum fontSize12 order_article_PaddingTop5">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_DELIVERY"}]</div>
<div class="fontSize12 border-bottom spacing_order_info aligning order_article_costs_paddingRight66 order_article_costs_marginLeftSub3">[{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"}]</div>
<div class="order_sum fontSize12 order_article_PaddingTop5 order_article_PaddingBottom5"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_TOTALSUMBRUT"}]</strong></div>
</td>
[{* ++++++Kosten der Bestellung++++++ *}]
<td class="article_costs_table_td_width50">
<div class="order_sumNum aligning fontSize12 border-bottom order_article_PaddingBottom5">[{$order->getFormattedTotalBrutSum()}] [{$currency->name}]</div>
[{if $order->getFormattedDiscount() != 0}]
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">-[{$order->getFormattedDiscount()}] [{$currency->name}]</div>
[{/if}]
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$order->getFormattedTotalNetSum()}] [{$currency->name}]</div>
<div class="spacing_order_info order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_sumNum aligning fontSize12">[{$lang->formatCurrency($deliveryPrice->getNettoPrice(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12 border-bottom">[{$lang->formatCurrency($deliveryPrice->getVATValue(), $currency)}] [{$currency->name}]</div>
<div class="order_article_PaddingTop5 order_article_PaddingBottom5 order_sumNum aligning fontSize12"><strong>[{$order->getFormattedTotalOrderSum()}] [{$currency->name}]</strong></div>
</td>
</tr>
</table>
[{/block}]
[{block name="pdfPastThankFile"}]
[{include file=$oViewConf->getModulePath('d3invoicePdf', 'Application/views/tpl/orderConfirmationincludingFiles/pdfPastThank.tpl')}]
[{/block}]
</nobreak>
</page>

View File

@ -0,0 +1,32 @@
[{block name="pdfFooter"}]
<table class="pdf_footer_table" cellspacing="0">
<tr>
[{block name="shop_basic_information"}]
<td class="footer_parts">
<div>[{*$shop->oxshops__oxname->value*}][{$pdfdocumentsCSS}]</div>
<div>[{$shop->oxshops__oxstreet->value}]</div>
<div>[{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxurl->value}]</div>
<div>[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
[{/block}]
[{block name="owner_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_MANAGINGDIRECTOR"}][{$shop->oxshops__oxfname->value}] [{$shop->oxshops__oxlname->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_COURT"}] [{$shop->oxshops__oxcourt->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_HRBNR"}][{$shop->oxshops__oxhrbnr->value}]</div>
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTID"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
[{/block}]
[{block name="bank_basic_information"}]
<td class="vertical-a footer_parts">
<div>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</div>
<div>[{$shop->oxshops__oxbankname->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div>[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE"}][{$shop->oxshops__oxbiccode->value}]</div>
</td>
[{/block}]
</tr>
</table>
[{/block}]

View File

@ -0,0 +1,56 @@
[{block name="pdfHeading"}]
<table class="fontSize12 pdf_heading_table" cellspacing="0">
[{block name="heading_owner_information"}]
<tr>
<td class="pdf_heading_width65">
<div class="pdf_heading_fontSize8">[{$shop->oxshops__oxname->value}] - [{$shop->oxshops__oxstreet->value}] - [{$shop->oxshops__oxzip->value}] [{$shop->oxshops__oxcity->value}]</div>
</td>
<td class="pdf_heading_width35">
<div class="aligning"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_GET_IN_CONTACT"}]</strong></div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_TELEFON"}][{$shop->oxshops__oxtelefon->value}]</div>
<div class="aligning fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_FAX"}][{$shop->oxshops__oxtelefax->value}]</div>
<div class="aligning fontSize12">[{$shop->oxshops__oxinfoemail->value}]</div>
</td>
</tr>
[{/block}]
[{block name="heading_order_information"}]
<tr>
<td class="vertical-a heading_order_width65 heading_order_paddingTopSub5">
[{if $order->oxorder__oxbillcompany->value}]
<div>[{$order->oxorder__oxbillcompany->value}]</div>
[{/if}]
<div>[{$order->oxorder__oxbillfname->value}] [{$order->oxorder__oxbilllname->value}]</div>
<div>[{$order->oxorder__oxbillstreet->value}] [{$order->oxorder__oxbillstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxbillzip->value}] [{$order->oxorder__oxbillcity->value}]</strong></div>
<div class="heading_order_paddingBottom15">[{$shop->oxshops__oxcountry->value}]</div>
[{* +++++++Lieferadressen dynamisch+++++++ *}]
[{if $order->oxorder__oxdelstreet->value}]
<div class="heading_order_fontSize10 heading_order_paddingBottom8">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DELIVERYADDRESS"}]</div>
[{if $order->oxorder__oxdelcompany->value}]<div>[{$order->oxorder__oxdelcompany->value}]</div>[{/if}]
<div>[{$order->oxorder__oxdelfname->value}] [{$order->oxorder__oxdellname->value}]</div>
<div>[{$order->oxorder__oxdelstreet->value}] [{$order->oxorder__oxdelstreetnr->value}]</div>
<div><strong>[{$order->oxorder__oxdelzip->value}] [{$order->oxorder__oxdelcity->value}]</strong></div>
<div>[{$shop->oxshops__oxcountry->value}]</div>
<div>[{$shop->oxshops__oxdeladdinfo->value}]</div>
[{/if}]
[{*Bestellnummer,Rechnungsvermerk, 'Ihre bestellung vom...'*}]
<div class="heading_order_paddingTop22 heading_order_fontSize15"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERNR"}][{$order->oxorder__oxordernr->value}]</strong></div>
<div>[{if $order->oxorder__d3pdftextkostenstelle_kunden->value}][{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_INVOICENOTE"}][{$order->oxorder__d3pdftextkostenstelle_kunden->value}][{/if}]</div>
<div class="heading_order_paddingTop1">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSINCERELY"}][{$order->oxorder__oxorderdate->value|date_format:"%d.%m.%Y"}][{oxmultilang ident="ORDER_OVERVIEW_PDF_ORDERSAT"}]</div>
</td>
<td class="vertical-a heading_order_width35 heading_order_paddingTopSub5">
<div class="aligning heading_order_paddingTop10"><strong>[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_BANKVERBINDUNG"}]</strong></div>
<div class="aligning">[{$shop->oxshops__oxbankname->value}]</div>
<div class="aligning">[{oxmultilang ident="ORDER_OVERVIEW_PDF_ACCOUNTNR"}][{$shop->oxshops__oxibannumber->value}]</div>
<div class="aligning">[{oxmultilang ident="ORDER_OVERVIEW_PDF_BANKCODE_HEADER"}][{$shop->oxshops__oxbiccode->value}]</div>
<div class="aligning heading_order_paddingTop10">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILLNR"}][{$order->oxorder__oxbillnr->value}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_ORDERBILL_CUSTOMERNR"}] [{$user->oxuser__oxcustnr->value}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_DATE"}][{$order->oxorder__oxbilldate->value|date_format:"%d.%m.%Y"}]</div>
<div class="aligning">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USTIDNR"}][{$shop->oxshops__oxvatnumber->value}]</div>
</td>
</tr>
[{/block}]
</table>
[{/block}]

View File

@ -0,0 +1,16 @@
[{block name="pdfPastThankFile"}]
<table class="past_thank_width100" cellspacing="0">
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_PAYMENTMETHOD"}][{$payment->oxpayments__oxdesc->value}]</td></tr>
[{* +++++++Individueller Zahlungstext+++++++ *}]
[{if $order->oxorder__d3pdftextbestellbestaetigung->value}]
<tr><td class="past_thank_width100 fontSize12">[{$order->oxorder__d3pdftextbestellbestaetigung->value}]</td></tr>
[{else}]
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="D3_ORDER_OVERVIEW_PDF_USED_GREETINGSORDER"}]</td></tr>
[{/if}]
[{*+++++++++++*}]
<tr><td class="past_thank_width100">&nbsp;</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_1"}]</td></tr>
<tr><td class="past_thank_width100 fontSize12">[{oxmultilang ident="ORDER_OVERVIEW_PDF_GREETINGS_AUFTRAG_2"}]</td></tr>
</table>
[{/block}]

View File

@ -0,0 +1,5 @@
[{block name="pdfToping"}]
<div class="pdf_header_positioning">
<img src="[{$oViewConf->getImageUrl('Elektroversand-Schmidt_Logo_180.jpg')}]">
</div>
[{/block}]

View File

@ -17,6 +17,7 @@
namespace D3\PdfDocuments\Modules\Application\Model;
use D3\PdfDocuments\Modules\Application\Model\dev\deliverynotePdf;
use OxidEsales\EshopCommunity\Application\Model\User;
use OxidEsales\EshopCommunity\Application\Model\Payment;
use OxidEsales\Eshop\Core\Registry;
@ -33,59 +34,16 @@ class d3_Order_PdfDocuments extends d3_Order_PdfDocuments_parent
*/
public function genPdf($sFilename, $iSelLang = 0, $target = 'I')
{
self::$_blIsAdmin = false;
switch (Registry::getRequest()->getRequestParameter('pdftype')) {
case ('dnote'):
case ('dnote_without_logo'):
$Pdf = oxNew(deliverynotePdf::class);
break;
default:
$Pdf = oxNew(invoicePdf::class);
}
$oSmarty = Registry::getUtilsView()->getSmarty();
$oSmarty->assign('oConfig', Registry::getSession()->getConfig());
$oSmarty->assign('oViewConf', Registry::getSession()->getConfig()->getActiveView()->getViewConfig());
$oSmarty->assign('order', $this);
$oSmarty->assign('shop', Registry::getSession()->getConfig()->getActiveShop());
$oSmarty->assign('lang', Registry::getLang());
$oUser= oxNew(User::Class);
$oUser->load($this->oxorder__oxuserid->value);
$oSmarty->assign('user', $oUser);
$oPayment= oxNew(Payment::class);
$oPayment->load($this->oxorder__oxpaymenttype->value);
$oSmarty->assign('payment', $oPayment);
//in eigene Funktion auslagern//
$blIsNewOrder = 0;
// setting invoice number
if (!$this->oxorder__oxbillnr->value) {
$this->oxorder__oxbillnr->setValue($this->getNextBillNum());
$blIsNewOrder = 1;
}
// setting invoice date
if ($this->oxorder__oxbilldate->value == '0000-00-00') {
$this->oxorder__oxbilldate->setValue(date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y'))));
$blIsNewOrder = 1;
}
// saving order if new number or date
if ($blIsNewOrder) {
$this->save();
}
switch (Registry::getRequest()->getRequestParameter('pdftype')) {
case ('dnote'):
case ('dnote_without_logo'):
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
break;
default:
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
}
$sFilename = str_replace( $this->oxorder__oxordernr->value, $this->oxorder__oxbillnr->value, $sFilename);
$oPdf = oxNew(Html2Pdf::class, 'P', 'A4', 'de');
$oPdf->writeHTML($sContent);
$oPdf->output($sFilename, $target);
$Pdf->setOrder($this);
$Pdf->genPdf($sFilename, $iSelLang = 0, $target = 'I');
}
public function getDeliveryNoteTemplate()
{
return 'd3deliverynote.tpl';
}
}
}

View File

@ -0,0 +1,111 @@
<?php
namespace D3\PdfDocuments\Modules\Application\Model\dev;
use OxidEsales\Eshop\Application\Model\Order as OrderModel;
use OxidEsales\EshopCommunity\Application\Model\Order;
use OxidEsales\EshopCommunity\Application\Model\User;
use OxidEsales\EshopCommunity\Application\Model\Payment;
use OxidEsales\Eshop\Core\Registry;
use Spipu\Html2Pdf\Exception\Html2PdfException;
use Spipu\Html2Pdf\Html2Pdf;
class deliverynotePdf extends pdfDocuments implements \pdfDocuments_interface
{
/**
* @param string $sFilename
* @param int $iSelLang
* @param string $target
* @throws Html2PdfException
*/
public $blIsNewOrder = 0;
public $sFilename;
public $oOrder;
public function genPdf($sFilename, $iSelLang = 0, $target = 'I')
{
self::$_blIsAdmin = 0;
$oSmarty = Registry::getUtilsView()->getSmarty();
$oSmarty->assign('oConfig', Registry::getSession()->getConfig());
$oSmarty->assign('oViewConf', Registry::getSession()->getConfig()->getActiveView()->getViewConfig());
$oSmarty->assign('order', $this);
$oSmarty->assign('shop', Registry::getSession()->getConfig()->getActiveShop());
$oSmarty->assign('lang', Registry::getLang());
$oUser= oxNew(User::Class);
$oUser->load($this->getOrder()->getFieldData('oxuserid'));
$oSmarty->assign('user', $oUser);
$oPayment= oxNew(Payment::class);
$oPayment->load($this->getOrder()->getFieldData('oxpaymenttype'));
$oSmarty->assign('payment', $oPayment);
$this->setInvoiceNumber();
$this->setInvoiceDate();
$this->saveOrderOnChanges();
switch (Registry::getRequest()->getRequestParameter('pdftype')) {
case ('dnote'):
case ('dnote_without_logo'):
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
break;
default:
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
}
}
/**
* @param OrderModel $order
*/
public function setOrder(OrderModel $order){
$this->oOrder= $order;
}
/**
* @return OrderModel
*/
public function getOrder(){
return $this->oOrder;
}
public function setFilename($sContent, $target, $sFilename){
$ordernr= $this->getOrder()->getFieldData('oxordernr');
$billnr= $this->getOrder()->getFieldData('oxbillnr');;
$sFilename = str_replace( $ordernr, $billnr, $sFilename);
$oPdf= oxNew(Html2Pdf::class, 'P', 'A4', 'de');
$oPdf->writeHTML($sContent);
$oPdf->output($sFilename, $target);
}
public function setInvoiceNumber(){
$this->blIsNewOrder = 0;
if (!$this->getOrder()->getFieldData('oxbillnr')) {
$this->getOrder()->assign(['oxbillnr' => $this->getOrder()->getNextBillNum()]);
$this->blIsNewOrder = 1;
}
}
public function setInvoiceDate(){
if ($this->getOrder()->getFieldData('oxbilldate') == '0000-00-00') {
$this->getOrder()->assign([date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y')))]);
$this->blIsNewOrder = 1;
}
}
public function saveOrderOnChanges(){
if ($this->blIsNewOrder) {
$this->getOrder()->save();
}
}
public function getDeliveryNoteTemplate(){
return 'd3deliverynote.tpl';
}
}

View File

@ -0,0 +1,111 @@
<?php
namespace D3\PdfDocuments\Modules\Application\Model\dev;
use OxidEsales\Eshop\Application\Model\Order as OrderModel;
use OxidEsales\EshopCommunity\Application\Model\Order;
use OxidEsales\EshopCommunity\Application\Model\User;
use OxidEsales\EshopCommunity\Application\Model\Payment;
use OxidEsales\Eshop\Core\Registry;
use Spipu\Html2Pdf\Exception\Html2PdfException;
use Spipu\Html2Pdf\Html2Pdf;
class invoicePdf extends pdfDocuments implements \pdfDocuments_interface
{
/**
* @param string $sFilename
* @param int $iSelLang
* @param string $target
* @throws Html2PdfException
*/
public $blIsNewOrder = 0;
public $sFilename;
public $oOrder;
public function genPdf($sFilename, $iSelLang = 0, $target = 'I')
{
self::$_blIsAdmin = 0;
$oSmarty = Registry::getUtilsView()->getSmarty();
$oSmarty->assign('oConfig', Registry::getSession()->getConfig());
$oSmarty->assign('oViewConf', Registry::getSession()->getConfig()->getActiveView()->getViewConfig());
$oSmarty->assign('order', $this);
$oSmarty->assign('shop', Registry::getSession()->getConfig()->getActiveShop());
$oSmarty->assign('lang', Registry::getLang());
$oUser= oxNew(User::Class);
$oUser->load($this->getOrder()->getFieldData('oxuserid'));
$oSmarty->assign('user', $oUser);
$oPayment= oxNew(Payment::class);
$oPayment->load($this->getOrder()->getFieldData('oxpaymenttype'));
$oSmarty->assign('payment', $oPayment);
$this->setInvoiceNumber();
$this->setInvoiceDate();
$this->saveOrderOnChanges();
switch (Registry::getRequest()->getRequestParameter('pdftype')) {
case ('dnote'):
case ('dnote_without_logo'):
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
break;
default:
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
}
}
/**
* @param OrderModel $order
*/
public function setOrder(OrderModel $order){
$this->oOrder= $order;
}
/**
* @return OrderModel
*/
public function getOrder(){
return $this->oOrder;
}
public function setFilename($sContent, $target, $sFilename){
$ordernr= $this->getOrder()->getFieldData('oxordernr');
$billnr= $this->getOrder()->getFieldData('oxbillnr');;
$sFilename = str_replace( $ordernr, $billnr, $sFilename);
$oPdf= oxNew(Html2Pdf::class, 'P', 'A4', 'de');
$oPdf->writeHTML($sContent);
$oPdf->output($sFilename, $target);
}
public function setInvoiceNumber(){
$this->blIsNewOrder = 0;
if (!$this->getOrder()->getFieldData('oxbillnr')) {
$this->getOrder()->assign(['oxbillnr' => $this->getOrder()->getNextBillNum()]);
$this->blIsNewOrder = 1;
}
}
public function setInvoiceDate(){
if ($this->getOrder()->getFieldData('oxbilldate') == '0000-00-00') {
$this->getOrder()->assign([date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y')))]);
$this->blIsNewOrder = 1;
}
}
public function saveOrderOnChanges(){
if ($this->blIsNewOrder) {
$this->getOrder()->save();
}
}
public function getDeliveryNoteTemplate(){
return 'd3deliverynote.tpl';
}
}

View File

@ -0,0 +1,118 @@
<?php
namespace D3\PdfDocuments\Modules\Application\Model\dev;
use \OxidEsales\Eshop\Application\Model\Order;
interface albatros{
public function setFilename($sContent, $target, $sFilename);
public function setInvoiceNumber();
public function setInvoiceDate();
public function saveOrderOnChanges();
public function getDeliveryNoteTemplate();
}
abstract class pdfDocuments implements albatros, \pdfDocuments_interface
{
public function genPdf($sFilename, $iSelLang = 0, $target = 'I')
{
self::$_blIsAdmin = 0;
$oSmarty = Registry::getUtilsView()->getSmarty();
$oSmarty->assign('oConfig', Registry::getSession()->getConfig());
$oSmarty->assign('oViewConf', Registry::getSession()->getConfig()->getActiveView()->getViewConfig());
$oSmarty->assign('order', $this);
$oSmarty->assign('shop', Registry::getSession()->getConfig()->getActiveShop());
$oSmarty->assign('lang', Registry::getLang());
$oUser = oxNew(User::Class);
$oUser->load($this->getOrder()->getFieldData('oxuserid'));
$oSmarty->assign('user', $oUser);
$oPayment = oxNew(Payment::class);
$oPayment->load($this->getOrder()->getFieldData('oxpaymenttype'));
$oSmarty->assign('payment', $oPayment);
$this->setInvoiceNumber();
$this->setInvoiceDate();
$this->saveOrderOnChanges();
switch (Registry::getRequest()->getRequestParameter('pdftype')) {
case ('dnote'):
case ('dnote_without_logo'):
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
break;
default:
$sContent = $oSmarty->fetch($this->getDeliveryNoteTemplate());
}
}
/**
* @param Order $order
*/
public function setOrder(Order $order)
{
$this->oOrder = $order;
}
/**
* @return OrderModel
*/
public function getOrder()
{
return $this->oOrder;
}
public function setFilename($sContent, $target, $sFilename)
{
$ordernr = $this->getOrder()->getFieldData('oxordernr');
$billnr = $this->getOrder()->getFieldData('oxbillnr');;
$sFilename = str_replace($ordernr, $billnr, $sFilename);
$oPdf = oxNew(Html2Pdf::class, 'P', 'A4', 'de');
$oPdf->writeHTML($sContent);
$oPdf->output($sFilename, $target);
}
public function setInvoiceNumber()
{
$this->blIsNewOrder = 0;
if (!$this->getOrder()->getFieldData('oxbillnr')) {
$this->getOrder()->assign(['oxbillnr' => $this->getOrder()->getNextBillNum()]);
$this->blIsNewOrder = 1;
}
}
public function setInvoiceDate()
{
if ($this->getOrder()->getFieldData('oxbilldate') == '0000-00-00') {
$this->getOrder()->assign([date('Y-m-d', mktime(0, 0, 0, date('m'), date('d'), date('Y')))]);
$this->blIsNewOrder = 1;
}
}
public function saveOrderOnChanges()
{
if ($this->blIsNewOrder) {
$this->getOrder()->save();
}
}
abstract public function getDeliveryNoteTemplate();
}
class invoicePdf extends pdfDocuments{
public function getDeliveryNoteTemplate(){
return 'deliverynote.tpl';
}
}
class deliverynotePdf extends pdfDocuments{
public function getDeliveryNoteTemplate(){
return 'invoice.tpl';
}
}

View File

@ -0,0 +1,9 @@
<?php
require('deliverynotePdf.php');
require('invoicePdf.php');
interface pdfDocuments_interface{
public function genPdf($sFilename, $iSelLang = 0, $target = 'I');
public function setOrder(\OxidEsales\Eshop\Application\Model\Order $order);
public function getOrder();
}

View File

@ -1,173 +1,15 @@
/*debug hilfe*/
.eraseBug{
border: dashed blueviolet 1px;
}
table{
font-family: "helvetica";
}
.aligning{
text-align: right;
}
.vertical-a{
vertical-align: top;
}
.fontSize12{
font-size: 12px;
}
.order_sum{
margin-left: 181px;
}
.order_sumNum{
margin-right: -2.2px;
}
.border-bottom{
border-bottom: solid 0.15mm #000;
}
.hermes{
padding-top: 5px;
}
.mercurius{
padding-bottom: 5px;
}
.spacing_order_info{
padding-bottom: 5px;
padding-top: 5px;
}
/*pdf_header*/
.pdf_header_positioning{
position: absolute;
top: 30px;
right: 44px;
}
/*pdf_footer*/
.pdf_footer_table{
width: 688px;
font-size: 9px;
margin: 0 30px 0 30px;
border-top: solid 1px #000;
}
/*pdf_heading*/
.pdf_heading_table{
width: 100%;
margin-top: 8mm;
}
.pdf_heading_width35{
width: 35%;
}
.pdf_heading_fontSize8{
font-size: 8px;
}
.pdf_heading_width65{
width: 65%;
}
.pdf_heading_fontSize12{
font-size: 12px;
}
/*heading_order_information*/
.heading_order_paddingTop10{
padding-top: 10px;
}
.heading_order_width35{
width: 35%;
}
.heading_order_paddingTopSub5{
padding-top: -5px;
}
.heading_order_paddingTop1{
padding-top: 1mm;
}
.heading_order_fontSize15{
font-size: 15px;
}
.heading_order_paddingTop22{
padding-top: 22px;
}
.heading_order_paddingBottom8{
padding-bottom: 8px;
}
.heading_order_paddingBottom15{
padding-bottom: 15px;
}
.heading_order_fontSize10{
font-size: 10px;
}
.heading_order_paddingTopSub5{
padding-top: -5px;
}
.heading_order_width65{
width: 65%;
}
/*order_article_listing*/
.order_article_listing_width_amount{
.deliverynote_width_amount{
width: 20px;
}
.order_article_listing_width_desc{
width: 398px;
.deliverynote_width_artnum{
width: 80px;
}
.order_article_listing_width_ust{
width: 10px;
.deliverynote_width_desc{
width: 469.5px;
}
.order_article_listing_width_unitPrice{
width: 90px;
.textAlignLeft{
text-align: left;
}
.order_article_listing_width_total_Price{
width: 100px;
}
.order_article_listing_paddingRight52{
padding-right: 52.1px;
}
.order_article_listing_fontSize{
font-size: 11px;
}
.order_article_PaddingBottom5{
padding-bottom: 5px;
}
.order_article_PaddingTop5{
padding-top: 5px;
}
.order_article_marginTop10{
margin-top: 10px;
}
.order_article_costs_marginLeftSub3{
margin-left: -3px;
}
.order_article_costs_paddingRight66{
padding-right: 65.9px;
}
.order_article_listing_fontSize9{
font-size: 9px;
}
.order_article_listing_fontSize12{
font-size: 12px;
}
/* order_article_costs */
.article_costs_table{
width: 100%;
border-top: solid 0.15mm #000;
}
.article_costs_table_td_width50{
width: 50%;
}
.article_costs_table_paddingRight{
padding-right: -3px;
}
.order_article_costs_fontSize12{
font-size: 12px;
}
/*order_shop_past_thank*/
.past_thank_width100{
width: 100%;
}
/* footer styling */
.footer_parts{
width: 33.33%;
.paddingLeft{
padding-left: 2.4px;
}

View File

@ -0,0 +1,32 @@
.invoiceCorrection_width_40{
width: 40%;
}
.invoiceCorrection_width_60{
width: 60%;
}
.invoiceCorrection_font8{
font-size: 8px;
}
.invoiceCorrection_font9{
font-size: 9px;
}
.invoiceCorrection_tableMarginTop15{
margin-top: 15px;
}
.invoiceCorrection_spacingLeft20{
margin-left: 73.6px;
}
.invoiceCorrectionPaddingTop4{
padding-top: 4px;
}
.invoiceCorrectionPaddingTop5{
padding-top: 5px;
}
.invoiceCorrectionPaddingBottom20{
padding-bottom: 20px;
}
.invoiceCorrectionPaddingBottom16{
padding-bottom: 16px;
}

View File

@ -0,0 +1,173 @@
/*debug hilfe*/
.eraseBug{
border: dashed blueviolet 1px;
}
table{
font-family: "helvetica";
}
.aligning{
text-align: right;
}
.vertical-a{
vertical-align: top;
}
.fontSize12{
font-size: 12px;
}
.order_sum{
margin-left: 181px;
}
.order_sumNum{
margin-right: -2.2px;
}
.border-bottom{
border-bottom: solid 0.15mm #000;
}
.hermes{
padding-top: 5px;
}
.mercurius{
padding-bottom: 5px;
}
.spacing_order_info{
padding-bottom: 5px;
padding-top: 5px;
}
/*pdf_header*/
.pdf_header_positioning{
position: absolute;
top: 30px;
right: 44px;
}
/*pdf_footer*/
.pdf_footer_table{
width: 688px;
font-size: 9px;
margin: 0 30px 0 30px;
border-top: solid 1px #000;
}
/*pdf_heading*/
.pdf_heading_table{
width: 100%;
margin-top: 8mm;
}
.pdf_heading_width35{
width: 35%;
}
.pdf_heading_fontSize8{
font-size: 8px;
}
.pdf_heading_width65{
width: 65%;
}
.pdf_heading_fontSize12{
font-size: 12px;
}
/*heading_order_information*/
.heading_order_paddingTop10{
padding-top: 10px;
}
.heading_order_width35{
width: 35%;
}
.heading_order_paddingTopSub5{
padding-top: -5px;
}
.heading_order_paddingTop1{
padding-top: 1mm;
}
.heading_order_fontSize15{
font-size: 15px;
}
.heading_order_paddingTop22{
padding-top: 22px;
}
.heading_order_paddingBottom8{
padding-bottom: 8px;
}
.heading_order_paddingBottom15{
padding-bottom: 15px;
}
.heading_order_fontSize10{
font-size: 10px;
}
.heading_order_paddingTopSub5{
padding-top: -5px;
}
.heading_order_width65{
width: 65%;
}
/*order_article_listing*/
.order_article_listing_width_amount{
width: 20px;
}
.order_article_listing_width_desc{
width: 398px;
}
.order_article_listing_width_ust{
width: 10px;
}
.order_article_listing_width_unitPrice{
width: 90px;
}
.order_article_listing_width_total_Price{
width: 100px;
}
.order_article_listing_paddingRight52{
padding-right: 52.1px;
}
.order_article_listing_fontSize{
font-size: 11px;
}
.order_article_PaddingBottom5{
padding-bottom: 5px;
}
.order_article_PaddingTop5{
padding-top: 5px;
}
.order_article_marginTop10{
margin-top: 10px;
}
.order_article_costs_marginLeftSub3{
margin-left: -3px;
}
.order_article_costs_paddingRight66{
padding-right: 65.9px;
}
.order_article_listing_fontSize9{
font-size: 9px;
}
.order_article_listing_fontSize12{
font-size: 12px;
}
/* order_article_costs */
.article_costs_table{
width: 100%;
border-top: solid 0.15mm #000;
}
.article_costs_table_td_width50{
width: 50%;
}
.article_costs_table_paddingRight{
padding-right: -3px;
}
.order_article_costs_fontSize12{
font-size: 12px;
}
/*order_shop_past_thank*/
.past_thank_width100{
width: 100%;
}
/* footer styling */
.footer_parts{
width: 33.33%;
}

View File

@ -0,0 +1,55 @@
<?php
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware.
*
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law.
*
* http://www.shopmodule.com
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link http://www.oxidmodule.com
*/
use D3\ModCfg\Application\Model\d3utils;
use D3\PdfDocuments\Modules\Application\Model\d3_Order_PdfDocuments as d3_pdfdocs_OrderModel;
use OxidEsales\Eshop\Application\Model as OxidModel;
/**
* Metadata version
*/
$sMetadataVersion = '2.0';
$logo = (class_exists(d3utils::class) ? d3utils::getInstance()->getD3Logo() : 'D&sup3;');
$sModuleId = 'pdfDocuments';
/**
* Module information
*/
$aModule = [
'id' => $sModuleId,
'title' => [
'de' => $logo.' PDF-Dokumente aus HTML-Templates',
'en' => $logo.' PDF documents from HTML templates',
],
'thumbnail' => 'picture.png',
'version' => '1.0',
'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com',
'url' => 'http://www.oxidmodule.com/',
'extend' => [
OxidModel\Order::class => d3_pdfdocs_OrderModel::class,
'oxorder' => d3_pdfdocs_OrderModel::class
],
'controllers' => [],
'templates' => [
'd3deliverynote.tpl' => 'd3/pdfdocuments/Application/views/tpl/deliverynote.tpl',
'd3tplheader.tpl' => 'd3/pdfdocuments/Application/views/tpl/header.tpl'
],
'events' => [],
'blocks' => []
];