{****** make sure you create your parameters section ******} {if $parametersOnly==1} {if $smarty.const.numClients<2501} {$smarty.const.TRANS_GENERATE_RR_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 ******}

{$smarty.const.TRANS_RR_FOR_PERIOD}: {$startTime|getDate:short} {$smarty.const.TRANS_THROUGH} {$endTime|getDate:short}


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

{$smarty.const.TRANS_PRODUCT_TOTALS}
{foreach key="currencyID" item="prods" from=$productTotals} {foreach key="productID" item="amt" from=$prods} {if $amt>0} {/if} {/foreach} {/foreach}
{$smarty.const.TRANS_PRODUCT} {$smarty.const.TRANS_AMOUNT} %
{$currencyID}
({$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}

{$smarty.const.TRANS_PRODUCT_USAGE_TOTALS}
{foreach key="currencyID" item="prods" from=$usageTotals} {foreach key="productID" item="amt" from=$prods} {if $amt>0} {/if} {/foreach} {/foreach}
{$smarty.const.TRANS_PRODUCT} {$smarty.const.TRANS_AMOUNT} %
{$currencyID}
({$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}