pdfdokumente/Application/views/tpl/documents/inc/elements/articlecostssummary.tpl

254 lines
9.3 KiB
Smarty
Raw Normal View History

2020-07-02 00:16:45 +02:00
[{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">
2020-07-02 00:16:45 +02:00
<td class="indent"></td>
<td class="description">
[{oxmultilang ident="D3_PDFDOCUMENTS_DISCOUNT" suffix="COLON"}]
</td>
<td class="values">
2020-07-02 00:16:45 +02:00
[{$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"}]
2020-07-02 10:35:56 +02:00
[{if $config->getConfigParam('blShowVATForDelivery')}]
2020-07-02 00:16:45 +02:00
[{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">
2020-07-02 10:35:56 +02:00
[{if $config->getConfigParam('sAdditionalServVATCalcMethod') != 'proportional'}]
2020-07-02 00:16:45 +02:00
[{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>
2020-06-28 01:03:15 +02:00
[{/if}]
[{/block}]
2020-07-02 00:16:45 +02:00
[{block name="payment"}]
2020-07-02 10:35:56 +02:00
[{if $config->getConfigParam('blShowVATForPayCharge')}]
2020-07-02 00:16:45 +02:00
[{assign var="paymentPrice" value=$order->getOrderPaymentPrice()}]
<tr class="payment">
<td class="indent"></td>
<td class="description">
2020-07-02 00:16:45 +02:00
[{oxmultilang ident="D3_PDFDOCUMENTS_PAYMENT_NET" suffix="COLON"}]
</td>
<td class="values">
2020-07-02 00:16:45 +02:00
[{$lang->formatCurrency($paymentPrice->getNettoPrice(), $currency)}] [{$currency->name}]
</td>
</tr>
2020-07-02 00:16:45 +02:00
<tr class="paymenttax">
<td class="indent"></td>
<td class="description">
2020-07-02 10:35:56 +02:00
[{if $config->getConfigParam('sAdditionalServVATCalcMethod') != 'proportional'}]
2020-07-02 00:16:45 +02:00
[{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}]
2020-07-02 00:16:45 +02:00
[{block name="wrapping"}]
[{if $order->getFieldData('oxwrapcost')}]
2020-07-02 10:35:56 +02:00
[{if $config->getConfigParam('blShowVATForWrapping')}]
2020-07-02 00:16:45 +02:00
[{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}]
[{block name="giftcard"}]
[{if $order->getFieldData('oxgiftcardcost')}]
2020-07-02 10:35:56 +02:00
[{if $config->getConfigParam('blShowVATForWrapping')}]
2020-07-02 00:16:45 +02:00
[{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}]
2020-07-02 00:16:45 +02:00
[{block name="totalsum"}]
2020-07-02 00:16:45 +02:00
<tr class="totalseparator">
<td class="indent"></td>
<td class="description"></td>
<td class="values"></td>
</tr>
<tr class="totalsum">
2020-07-02 00:16:45 +02:00
<td class="indent"></td>
<td class="description">
[{oxmultilang ident="D3_PDFDOCUMENTS_TOTALSUMBRUT" suffix="COLON"}]
</td>
<td class="values">
[{$order->getFormattedTotalOrderSum()}] [{$currency->name}]
</td>
</tr>
[{/block}]