set article summmary
This commit is contained in:
bovenliggende
7c3608efaf
commit
f8f226914d
@ -54,7 +54,17 @@ $aLang = array(
|
||||
'D3_PDFDOCUMENTS_DISCOUNT' => 'Rabatt',
|
||||
'D3_PDFDOCUMENTS_SUMNETTO' => 'Summe Artikel (netto)',
|
||||
'D3_PDFDOCUMENTS_TAX' => 'zzgl. MwSt. %1$s %%',
|
||||
'D3_PDFDOCUMENTS_DELIVERY' => 'Versandkosten (netto)',
|
||||
'D3_PDFDOCUMENTS_UNDEFINED_TAX' => 'zzgl. MwSt.',
|
||||
'D3_PDFDOCUMENTS_PROPORTIONAL_TAX' => 'zzgl. MwSt. (anteilig berechnet)',
|
||||
'D3_PDFDOCUMENTS_VOUCHERDISCOUNT' => 'Gutschein',
|
||||
'D3_PDFDOCUMENTS_DELIVERY_NET' => 'Versandkosten (netto)',
|
||||
'D3_PDFDOCUMENTS_DELIVERY' => 'Versandkosten',
|
||||
'D3_PDFDOCUMENTS_PAYMENT_NET' => 'Aufschlag Zahlungsart (netto)',
|
||||
'D3_PDFDOCUMENTS_PAYMENT' => 'Aufschlag Zahlungsart',
|
||||
'D3_PDFDOCUMENTS_WRAPPING_NET' => 'Geschenkverpackung (netto)',
|
||||
'D3_PDFDOCUMENTS_WRAPPING' => 'Geschenkverpackung',
|
||||
'D3_PDFDOCUMENTS_GIFTCARD_NET' => 'Grußkarte (netto)',
|
||||
'D3_PDFDOCUMENTS_GIFTCARD' => 'Grußkarte',
|
||||
'D3_PDFDOCUMENTS_TOTALSUMBRUT' => 'Gesamtsumme (brutto)',
|
||||
|
||||
'D3_PDFDOCUMENTS_USED_PAYMENTMETHOD' => 'Ihre gewählte Zahlungsweise',
|
||||
|
@ -53,7 +53,17 @@ $aLang = array(
|
||||
'D3_PDFDOCUMENTS_DISCOUNT' => 'Discount',
|
||||
'D3_PDFDOCUMENTS_SUMNETTO' => 'Total products (excl. tax)',
|
||||
'D3_PDFDOCUMENTS_TAX' => 'plus VAT %1$s %%',
|
||||
'D3_PDFDOCUMENTS_DELIVERY' => 'Shipping costs (net)',
|
||||
'D3_PDFDOCUMENTS_UNDEFINED_TAX' => 'plus VAT',
|
||||
'D3_PDFDOCUMENTS_PROPORTIONAL_TAX' => 'plus VAT (proportionally calculated)',
|
||||
'D3_PDFDOCUMENTS_VOUCHERDISCOUNT' => 'Coupon',
|
||||
'D3_PDFDOCUMENTS_DELIVERY_NET' => 'Shipping costs (net)',
|
||||
'D3_PDFDOCUMENTS_DELIVERY' => 'Shipping costs',
|
||||
'D3_PDFDOCUMENTS_PAYMENT_NET' => 'Additional Charge Payment Method (net)',
|
||||
'D3_PDFDOCUMENTS_PAYMENT' => 'Additional Charge Payment Method',
|
||||
'D3_PDFDOCUMENTS_WRAPPING_NET' => 'Gift Wrapping (net)',
|
||||
'D3_PDFDOCUMENTS_WRAPPING' => 'Gift Wrapping',
|
||||
'D3_PDFDOCUMENTS_GIFTCARD_NET' => 'Greeting Card (net)',
|
||||
'D3_PDFDOCUMENTS_GIFTCARD' => 'Greeting Card',
|
||||
'D3_PDFDOCUMENTS_TOTALSUMBRUT' => 'Total sum (gross)',
|
||||
|
||||
'D3_PDFDOCUMENTS_USED_PAYMENTMETHOD' => 'Your chosen payment method',
|
||||
|
@ -1,6 +1,3 @@
|
||||
[{assign var="currency" value=$order->getOrderCurrency()}]
|
||||
[{assign var="deliveryPrice" value= $order->getOrderDeliveryPrice()}]
|
||||
[{assign var="productVats" value= $order->getProductVats(false)}]
|
||||
[{assign var="pagePadding" value=","|explode:"45,15,25,25"}] [{* top, right, bottom, left *}]
|
||||
[{assign var="showLogo" value=$showLogo|default:true}]
|
||||
|
||||
|
@ -1,68 +1,249 @@
|
||||
[{block name="sumbrutto"}]
|
||||
<tr class="sumbrutto">
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMBRUTTO" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$order->getFormattedTotalBrutSum()}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/block}]
|
||||
[{block name="discount"}]
|
||||
[{if $order->getFormattedDiscount() != 0}]
|
||||
[{capture name="sumnetto"}]
|
||||
[{block name="sumnetto"}]
|
||||
<tr class="sumnetto">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMNETTO" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$order->getFormattedTotalNetSum()}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/block}]
|
||||
[{/capture}]
|
||||
|
||||
[{capture name="discount"}]
|
||||
[{block name="discount"}]
|
||||
<tr class="discount">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_DISCOUNT" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
-[{$order->getFormattedDiscount()}] [{$currency->name}]
|
||||
[{$order->getFormattedDiscount()}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/block}]
|
||||
[{/capture}]
|
||||
|
||||
[{capture name="producttax"}]
|
||||
[{block name="producttax"}]
|
||||
[{foreach from=$order->getProductVats(false) key=VatKey item=oVat}]
|
||||
<tr class="producttax">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$VatKey suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/foreach}]
|
||||
[{/block}]
|
||||
[{/capture}]
|
||||
|
||||
[{capture name="sumbrutto"}]
|
||||
[{block name="sumbrutto"}]
|
||||
<tr class="sumbrutto">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMBRUTTO" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$order->getFormattedTotalBrutSum()}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/block}]
|
||||
[{/capture}]
|
||||
|
||||
[{if $order->getFieldData('oxdiscount')}]
|
||||
[{if $order->isNettoMode()}]
|
||||
[{$smarty.capture.sumnetto}]
|
||||
[{$smarty.capture.discount}]
|
||||
[{$smarty.capture.producttax}]
|
||||
[{$smarty.capture.sumbrutto}]
|
||||
[{else}]
|
||||
[{$smarty.capture.sumbrutto}]
|
||||
[{$smarty.capture.discount}]
|
||||
[{$smarty.capture.sumnetto}]
|
||||
[{$smarty.capture.producttax}]
|
||||
[{/if}]
|
||||
[{else}]
|
||||
[{$smarty.capture.sumnetto}]
|
||||
[{$smarty.capture.producttax}]
|
||||
[{$smarty.capture.sumbrutto}]
|
||||
[{/if}]
|
||||
|
||||
[{if $order->getFieldData('oxvoucherdiscount')}]
|
||||
[{block name="voucherdiscount"}]
|
||||
<tr class="voucherdiscount">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_VOUCHERDISCOUNT" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
-[{$order->getFormattedTotalVouchers()}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/block}]
|
||||
[{/if}]
|
||||
|
||||
[{block name="delivery"}]
|
||||
[{if $oConfig->getConfigParam('blShowVATForDelivery')}]
|
||||
[{assign var="deliveryPrice" value=$order->getOrderDeliveryPrice()}]
|
||||
<tr class="delivery">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_DELIVERY_NET" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($deliveryPrice->getNettoPrice(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="deliverytax">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{if $oConfig->getConfigParam('sAdditionalServVATCalcMethod') != 'proportional'}]
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$order->getFieldData('oxdelvat') suffix="COLON"}]
|
||||
[{else}]
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_PROPORTIONAL_TAX" suffix="COLON"}]
|
||||
[{/if}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($deliveryPrice->getVATValue(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{else}]
|
||||
<tr class="delivery">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_DELIVERY" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($order->getFieldData('oxdelcost'), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
[{block name="sumnetto"}]
|
||||
<tr class="sumnetto">
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_SUMNETTO" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$order->getFormattedTotalNetSum()}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/block}]
|
||||
[{block name="producttax"}]
|
||||
[{foreach from=$productVats key=VatKey item=oVat}]
|
||||
<tr class="producttax">
|
||||
|
||||
[{block name="payment"}]
|
||||
[{if $oConfig->getConfigParam('blShowVATForPayCharge')}]
|
||||
[{assign var="paymentPrice" value=$order->getOrderPaymentPrice()}]
|
||||
<tr class="payment">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$VatKey suffix="COLON"}]
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_PAYMENT_NET" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($oVat, $currency)}] [{$currency->name}]
|
||||
[{$lang->formatCurrency($paymentPrice->getNettoPrice(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/foreach}]
|
||||
<tr class="paymenttax">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{if $oConfig->getConfigParam('sAdditionalServVATCalcMethod') != 'proportional'}]
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$order->getFieldData('oxpayvat') suffix="COLON"}]
|
||||
[{else}]
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_PROPORTIONAL_TAX" suffix="COLON"}]
|
||||
[{/if}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($paymentPrice->getVATValue(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{else}]
|
||||
<tr class="payment">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_PAYMENT" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($order->getFieldData('oxpaycost'), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
[{block name="delivery"}]
|
||||
<tr class="delivery">
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_DELIVERY" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($deliveryPrice->getNettoPrice(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="deliverytax">
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_TAX" args=$VatKey suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($deliveryPrice->getVATValue(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
[{block name="wrapping"}]
|
||||
[{if $order->getFieldData('oxwrapcost')}]
|
||||
[{if $oConfig->getConfigParam('blShowVATForWrapping')}]
|
||||
[{assign var="wrappingPrice" value=$order->getOrderWrappingPrice()}]
|
||||
<tr class="wrapping">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_WRAPPING_NET" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($wrappingPrice->getNettoPrice(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="wrappingtax">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_UNDEFINED_TAX" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($wrappingPrice->getVATValue(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{else}]
|
||||
<tr class="wrapping">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_WRAPPING" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($order->getFieldData('oxwrapcost'), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
[{* ToDo: keine payment costs ??? *}]
|
||||
|
||||
[{block name="giftcard"}]
|
||||
[{if $order->getFieldData('oxgiftcardcost')}]
|
||||
[{if $oConfig->getConfigParam('blShowVATForWrapping')}]
|
||||
[{assign var="giftCardPrice" value=$order->getOrderGiftCardPrice()}]
|
||||
<tr class="giftcard">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_GIFTCARD_NET" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($giftCardPrice->getNettoPrice(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="wrappingtax">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_UNDEFINED_TAX" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($giftCardPrice->getVATValue(), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{else}]
|
||||
<tr class="wrapping">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_GIFTCARD" suffix="COLON"}]
|
||||
</td>
|
||||
<td class="values">
|
||||
[{$lang->formatCurrency($order->getFieldData('oxgiftcardcost'), $currency)}] [{$currency->name}]
|
||||
</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
|
||||
[{block name="totalsum"}]
|
||||
<tr class="totalseparator">
|
||||
<td class="indent"></td>
|
||||
<td class="description"></td>
|
||||
<td class="values"></td>
|
||||
</tr>
|
||||
<tr class="totalsum">
|
||||
<td class="indent"></td>
|
||||
<td class="description">
|
||||
[{oxmultilang ident="D3_PDFDOCUMENTS_TOTALSUMBRUT" suffix="COLON"}]
|
||||
</td>
|
||||
|
@ -1,3 +1,4 @@
|
||||
[{assign var="currency" value=$order->getOrderCurrency()}]
|
||||
[{assign var="showPrices" value=$showPrices|default:true}]
|
||||
|
||||
[{block name="articlelist"}]
|
||||
|
@ -1,6 +1,3 @@
|
||||
[{assign var="currency" value=$order->getOrderCurrency()}]
|
||||
[{assign var="deliveryPrice" value=$order->getOrderDeliveryPrice()}]
|
||||
[{assign var="productVats" value=$order->getProductVats(false)}]
|
||||
[{assign var="pagePadding" value=","|explode:"45,15,25,25"}] [{* top, right, bottom, left *}]
|
||||
[{assign var="showLogo" value=$showLogo|default:true}]
|
||||
|
||||
|
@ -153,13 +153,14 @@ table{
|
||||
|
||||
.article_costs_table{
|
||||
width: 100%;
|
||||
padding-left: 300px;
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.article_costs_table .indent {
|
||||
width: 10%;
|
||||
}
|
||||
.article_costs_table .description {
|
||||
padding-right: -3px;
|
||||
width: 70%;
|
||||
width: 75%;
|
||||
}
|
||||
.article_costs_table td {
|
||||
padding-bottom: 5px;
|
||||
@ -167,21 +168,24 @@ table{
|
||||
font-size: 12px;
|
||||
}
|
||||
.article_costs_table .values {
|
||||
width: 30%;
|
||||
width: 15%;
|
||||
margin-right: -2.2px;
|
||||
text-align: right;
|
||||
}
|
||||
.article_costs_table .sumbrutto td {
|
||||
.article_costs_table .sumnetto td {
|
||||
border-top: solid 0.15mm #000;
|
||||
}
|
||||
.article_costs_table .sumbrutto td,
|
||||
.article_costs_table .discount td,
|
||||
.article_costs_table .producttax td,
|
||||
.article_costs_table .deliverytax td,
|
||||
.article_costs_table .totalsum td {
|
||||
.article_costs_table .voucherdiscount td,
|
||||
.article_costs_table .sumbrutto td {
|
||||
border-bottom: solid 0.15mm #000;
|
||||
}
|
||||
.article_costs_table .totalseparator td {
|
||||
height: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
.article_costs_table .totalseparator td,
|
||||
.article_costs_table .totalsum td {
|
||||
border-bottom: solid 0.3mm #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user