{$shcontrollname}

Prescription Drugs
{assign var=i value=1} {foreach $durgs as $datafetch} {if $datafetch->currentbalance lt $datafetch->amount} {else} {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
# Drug Name Amount Notes
{$i} {$datafetch->name} the amount NOT enough to cash the current balance is {$datafetch->currentbalance} the current balance is {$datafetch->currentbalance}
{if $datachecked eq true}

Sorry , you can't cashing this Prescription Now

{else}
{/if}