{****** make sure you create your parameters section ******} {if $parametersOnly==1} {if $smarty.const.numClients<2501} {$smarty.const.TRANS_GENERATE_ERR_FOR}: {else} {$smarty.const.TRANS_SORRY_YOU_HAVE_TO_MANY_CLIENTS_TO_RUN_THIS_REPORT} {/if} {elseif $totals} {****** end parameters section, start report template section ******}

{"TRANS_ERR_FOR_PERIOD"|lmsg}: {$startTime|getDate:short} {"TRANS_THROUGH"|lmsg} {$endTime|getDate:short}


{"TRANS_TOTALS"|lmsg}
{foreach key="currencyID" item="amt" from=$totals} {/foreach}
{"TRANS_CURRENCY"|lmsg} {"TRANS_AMOUNT"|lmsg}
{"TRANS_CURRENCY_$currencyID"|lmsg} {$amt|getAmount:$currencyID}
{if $productTotals}

{"TRANS_PRODUCT_TOTALS"|lmsg}
{foreach key="currencyID" item="prods" from=$productTotals} {foreach key="productID" item="amt" from=$prods} {if $amt>0} {/if} {/foreach} {/foreach}
{"TRANS_PRODUCT"|lmsg} {"TRANS_AMOUNT"|lmsg} %
{"TRANS_CURRENCY_$currencyID"|lmsg}
({$productID}) {$productNames.$productID} {$amt|getAmount:$currencyID} {include file="$tplDirectory/widgets/miniProgressBar.tpl" containerWidth="100" containerColor="#CCCCCC" barWidth=$amt*100/$productTotalAmount.$currencyID|ceil}
{/if} {if $usageTotals}

{"TRANS_PRODUCT_USAGE_TOTALS"|lmsg}
{foreach key="currencyID" item="prods" from=$usageTotals} {foreach key="productID" item="amt" from=$prods} {if $amt>0} {/if} {/foreach} {/foreach}
{"TRANS_PRODUCT"|lmsg} {"TRANS_AMOUNT"|lmsg} %
{"TRANS_CURRENCY_$currencyID"|lmsg}
({$productID}) {$productNames.$productID} {$amt|getAmount:$currencyID} {include file="$tplDirectory/widgets/miniProgressBar.tpl" containerWidth="100" containerColor="#CCCCCC" barWidth=$amt*100/$usageTotalAmount.$currencyID|ceil}
{/if}
{elseif $smarty.const.numClients>2500}

{$smarty.const.TRANS_SORRY_YOU_HAVE_TO_MANY_CLIENTS_TO_RUN_THIS_REPORT}
{else}

{$smarty.const.TRANS_NO_DATA_IN_PERIOD}
{/if}