I have the equation to use, but is stuck how i get the weight value from each report to calculate.
Code: Select all
{math equation='((x-y)/y*100)' x=$weight1 y=$weight2 format='%.2f' assign='difference'}
Code: Select all
{if $smarty.foreach.foo.first}
{assign var="weight1" value=$item->fielddefs.weight.value}
{else}
{assign var="weight2" value=$item->fielddefs.weight.value}
{/if}
Any suggestions are greatly appreciated.