{****** make sure you create your parameters section ******} {if $parametersOnly==1} {$smarty.const.TRANS_GENERATE_DS_FOR}: {elseif $datedClients} {****** end parameters section, start report template section ******}

{$smarty.const.TRANS_DAILY_SIGNUP_SHEET}: {$startDate|getDate:short} - {$endDate|getDate:short}

{foreach item="clients" key="tdate" from=$datedClients}
{$clients.0.clientDateCreated|getDate:short}

{$smarty.const.TRANS_CLIENTS} - {$datedClientTotals.$tdate}

{foreach item="client" key="k" from=$clients} {/foreach}
{$smarty.const.TRANS_CLIENT} {$smarty.const.TRANS_INVOICE} {$smarty.const.TRANS_REVENUE}
{$client.contactFirstName} {$client.contactLastName} {$client.invoiceNumber} {$client.invoiceAmount|getAmount:$client.currencyID}

{$smarty.const.TRANS_PRODUCT_TOTALS} - {$datedTotalProducts.$tdate}

{foreach item="prod" key="productID" from=$datedProductTotals.$tdate} {/foreach}
{$smarty.const.TRANS_PRODUCT} {$smarty.const.TRANS_NUMBER_OF_TIMES_SOLD} {$smarty.const.TRANS_REVENUE}
{$productNames.$productID} {$prod.num} {foreach item="revAmt" key="currencyID" from=$prod.rev} {$revAmt|getAmount:$currencyID}
{/foreach}
{foreachelse} {$smarty.const.TRANS_NO_SIGNUPS_IN_PERIOD} {/foreach} {if $totalClients>0}
{$smarty.const.TRANS_TOTALS}

{$smarty.const.TRANS_TOTAL_NEW_CLIENTS} - {$totalClients}

{$smarty.const.TRANS_PRODUCT_TOTALS} - {$totalProducts}

{foreach item="prod" key="productID" from=$productTotals} {/foreach}
{$smarty.const.TRANS_PRODUCT} {$smarty.const.TRANS_NUMBER_OF_TIMES_SOLD} {$smarty.const.TRANS_REVENUE}
{$productNames.$productID} {$prod.num} {foreach item="revAmt" key="currencyID" from=$prod.rev} {$revAmt|getAmount:$currencyID}
{/foreach}
{/if}
{else}

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