{****** 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}
{$smarty.const.TRANS_CURRENCY} |
{$smarty.const.TRANS_AMOUNT} |
{foreach key="currencyID" item="amt" from=$totals}
{$currencyID} |
{$amt|getAmount:$currencyID} |
{/foreach}
{if $productTotals}
{$smarty.const.TRANS_PRODUCT_TOTALS}
{$smarty.const.TRANS_PRODUCT} |
{$smarty.const.TRANS_AMOUNT} |
% |
{foreach key="currencyID" item="prods" from=$productTotals}
{$currencyID} |
{foreach key="productID" item="amt" from=$prods}
{if $amt>0}
({$productID}) {$productNames.$productID} |
{$amt|getAmount:$currencyID} |
{include file="$tplDirectory/widgets/miniProgressBar.tpl"
containerWidth="100"
containerColor="#CCCCCC"
barWidth=$amt*100/$productTotalAmount.$currencyID|ceil}
|
{/if}
{/foreach}
{/foreach}
{/if}
{if $usageTotals}
{$smarty.const.TRANS_PRODUCT_USAGE_TOTALS}
{$smarty.const.TRANS_PRODUCT} |
{$smarty.const.TRANS_AMOUNT} |
% |
{foreach key="currencyID" item="prods" from=$usageTotals}
{$currencyID} |
{foreach key="productID" item="amt" from=$prods}
{if $amt>0}
({$productID}) {$productNames.$productID} |
{$amt|getAmount:$currencyID} |
{include file="$tplDirectory/widgets/miniProgressBar.tpl"
containerWidth="100"
containerColor="#CCCCCC"
barWidth=$amt*100/$usageTotalAmount.$currencyID|ceil}
|
{/if}
{/foreach}
{/foreach}
{/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}