Skip to content

Commit

Permalink
rewrite forach syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kyob committed Oct 14, 2016
1 parent c186d9f commit 07c66f9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/default/invoice/invoicereport-ext.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{include file="clearheader.html" landscape=true}
<!--// $Id$ //-->
{$report_type = ConfigHelper::getConfig('phpui.report_type')}
{foreach from=$pages item=item}{assign var=previtem value=$item-1}
{foreach $pages as $item}{assign var=previtem value=$item-1}
{if $report_type == 'pdf'}
{if $item > 1}<page>{/if}
{else}
Expand Down Expand Up @@ -37,7 +37,7 @@
{trans("Contractor")}
</TD>
{if $doctype == 'invoices'}
{foreach item=tax from=$taxes}
{foreach $taxes as $tax}
<TD WIDTH="50" CLASS="HEAD" ALIGN="CENTER">
{trans("Net value")} {$tax.label}
</TD>
Expand Down Expand Up @@ -78,7 +78,7 @@
{$invoicelist[invoicelist].custaddress}
</TD>
{if $doctype == 'invoices'}
{foreach item=tax from=$taxes}
{foreach $taxes as $tax}
{assign var=taxid value=$tax.id}
<TD ALIGN="RIGHT">
{$invoicelist[invoicelist].$taxid.val|string_format:"%01.2f"}
Expand Down Expand Up @@ -106,7 +106,7 @@
<B>{trans("Page total:")}</B>
</TD>
{if $doctype == 'invoices'}
{foreach item=tax from=$taxes}
{foreach $taxes as $tax}
{assign var=taxid value=$tax.id}
<TD ALIGN="RIGHT" class="HEADGREY">
<B>{$totals.$item.val.$taxid|string_format:"%01.2f"}</B>
Expand All @@ -132,7 +132,7 @@
<B>{trans("Transfered from previous page:")}</B>
</TD>
{if $doctype == 'invoices'}
{foreach item=tax from=$taxes}
{foreach $taxes as $tax}
{assign var=taxid value=$tax.id}
<TD ALIGN="RIGHT" class="HEADGREY">
<B>{$totals.$previtem.allval.$taxid|string_format:"%01.2f"}</B>
Expand All @@ -158,7 +158,7 @@
<B>{trans("Total from start of period:")}</B>
</TD>
{if $doctype == 'invoices'}
{foreach item=tax from=$taxes}
{foreach $taxes as $tax}
{assign var=taxid value=$tax.id}
<TD ALIGN="RIGHT" class="HEADGREY">
<B>{$totals.$item.allval.$taxid|string_format:"%01.2f"}</B>
Expand Down Expand Up @@ -216,7 +216,7 @@
{trans("Contractor")}
</TD>
{if $doctype == 'invoices'}
{foreach item=tax from=$taxes}
{foreach $taxes as $tax}
<TD WIDTH="50" CLASS="HEAD" ALIGN="CENTER">
{trans("Net value")}
</TD>
Expand Down

0 comments on commit 07c66f9

Please sign in to comment.