{include file="clearheader.html"}

{$layout.pagetitle}

LMS {$layout.lmsv} @ {$layout.hostname}
{$smarty.now|date_format:"%A, %x"}
{t a=$layout.logname}Prepared by: $a{/t}

{foreach item=tax from=$taxes} {/foreach} {$total_value = array()} {$total_tax = array()} {cycle values="white,grey" print=false} {foreach $reportlist as $report} {foreach item=tax from=$taxes} {assign var=taxid value=$tax.id} {/foreach} {foreachelse} {/foreach} {foreach item=tax from=$taxes} {assign var=taxid value=$tax.id} {/foreach}
{trans("No.")} {trans("Customer")} {trans("Gross value")} {trans("Net value")} {trans("Tax value")} {$tax.label} {trans("Total Tax")}
{counter}. {$report.customername} ({$report.id|string_format:"%04d"})
{$report.address} {if $report.ten}
{$report.ten}{/if}
{foreach $report.values as $currency => $values} {if !$values@first}
{/if} {moneyf($values.value, $currency)} {if !isset($total_value[$currency])} {$total_value[$currency] = 0} {/if} {$total_value[$currency] = $total_value[$currency] + $values.value} {/foreach}
{foreach $report.values as $currency => $values} {if !$values@first}
{/if} {moneyf($values[$taxid].netto, $currency)} {/foreach}
{foreach $report.values as $currency => $values} {if !$values@first}
{/if} {moneyf($values[$taxid].tax, $currency)} {/foreach}
{foreach $report.values as $currency => $values} {if !$values@first}
{/if} {moneyf($values.taxsum, $currency)} {if !isset($total_tax[$currency])} {$total_tax[$currency] = 0} {/if} {$total_tax[$currency] = $total_tax[$currency] + $values.taxsum} {/foreach}
{trans("No such liabilities in selected date.")}
{trans("Total:")} {foreach $total_value as $currency => $value} {if !$value@first}
{/if} {moneyf($value, $currency)} {/foreach}
{foreach $total.netto as $currency => $total_netto} {if !$total_netto@first}
{/if} {moneyf($total_netto.$taxid, $currency)} {/foreach}
{foreach $total.tax as $currency => $total_tax} {if !$total_tax@first}
{/if} {moneyf($total_tax.$taxid, $currency)} {/foreach}
{foreach $total_tax as $currency => $tax} {if !$tax@first}
{/if} {moneyf($tax, $currency)} {/foreach}
{include file="clearfooter.html"}