تقرير الموردين بالنوع
{if $message}{$message} {else}"لايوجد" {/if}

{assign var="totalDebit" value=0} {assign var="totalCredit" value=0} {foreach $allData as $data} {if $data->suppliercurrentDebt < 0} {assign var="totalCredit" value=$totalCredit+$data->suppliercurrentDebt} {else} {assign var="totalDebit" value= $totalDebit+$data->suppliercurrentDebt} {/if} {/foreach}
الرقم التسلسلي اسم المورد ليه عليه
{$data->supplierid} {$data->suppliername}0 {$data->suppliercurrentDebt}{$data->suppliercurrentDebt} 0
الإجمالي {$totalDebit} {$totalCredit}

الصافي {$totalDebit-$totalCredit}