Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract duplicated order information to a separate file
- Loading branch information
1 parent
b00c3b6
commit 26458c8
Showing
3 changed files
with
88 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<table border="0" cellspacing="0" cellpadding="0" id="order.info"> | ||
[{if $edit->isNettoMode()}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_INETTO"}]</td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedTotalNetSum()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_DISCOUNT"}] </td> | ||
<td class="edittext" align="right"><b>- [{$edit->getFormattedDiscount()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{foreach key=iVat from=$aProductVats item=dVatPrice}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_IVAT"}] ([{$iVat}]%)</td> | ||
<td class="edittext" align="right"><b>[{$dVatPrice}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{/foreach}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_IBRUTTO"}]</td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedTotalBrutSum()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{else}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_IBRUTTO"}]</td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedTotalBrutSum()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
|
||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_DISCOUNT"}] </td> | ||
<td class="edittext" align="right"><b>- [{$edit->getFormattedDiscount()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_INETTO"}]</td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedTotalNetSum()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{foreach key=iVat from=$aProductVats item=dVatPrice}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_IVAT"}] ([{$iVat}]%)</td> | ||
<td class="edittext" align="right"><b>[{$dVatPrice}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{/foreach}] | ||
[{/if}] | ||
[{if $edit->oxorder__oxvoucherdiscount->value}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_VOUCHERS"}]</td> | ||
<td class="edittext" align="right"><b>- [{$edit->getFormattedTotalVouchers()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{/if}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_DELIVERYCOST"}] </td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedeliveryCost()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_PAYCOST"}] </td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedPayCost()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{if $edit->oxorder__oxwrapcost->value}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_WRAPPING"}] [{if $wrapping}]([{$wrapping->oxwrapping__oxname->value}])[{/if}] </td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedWrapCost()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{/if}] | ||
[{if $edit->oxorder__oxgiftcardcost->value}] | ||
<tr> | ||
<td class="edittext" height="15">[{oxmultilang ident="GENERAL_CARD"}] [{if $giftCard}]([{$giftCard->oxwrapping__oxname->value}])[{/if}] </td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedGiftCardCost()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
[{/if}] | ||
<tr> | ||
<td class="edittext" height="25">[{oxmultilang ident="GENERAL_SUMTOTAL"}] </td> | ||
<td class="edittext" align="right"><b>[{$edit->getFormattedTotalOrderSum()}]</b></td> | ||
<td class="edittext"> <b>[{if $edit->oxorder__oxcurrency->value}] [{$edit->oxorder__oxcurrency->value}] [{else}] [{$currency->name}] [{/if}]</b></td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters