{if $allDailyEnteryCount>0}
{foreach $relatedArr as $related}
| # |
رقم القيد |
الفرع |
مدين |
دائن |
الحساب |
البيان |
عكس القيد |
{assign var=i value=1}
{assign var=debtorTotal value=0}
{assign var=creditorTotal value=0}
{foreach $allDailyEntery{$related} as $dailyEntery}
{if $dailyEntery->id !=""}
{if $dailyEntery->reverseofid != 0 && $dailyEntery->reverseofid != -10}
{else}
{/if}
| {$i} |
{assign var=i value=$i+1}
{$dailyEntery->id} |
{else}
{if $dailyEntery->reverseofid > 0}
{else}
{/if}
|
|
{/if}
{$dailyEntery->branchName} |
{if $dailyEntery->type eq 0}
{$dailyEntery->value} |
|
من حــ/ {$dailyEntery->accountstreeName} |
{$dailyEntery->dComment} |
{assign var=debtorTotal value=$debtorTotal+ $dailyEntery->value}
{else}
|
{$dailyEntery->value} |
الى حــ/ {$dailyEntery->accountstreeName} |
{$dailyEntery->dComment} |
{assign var=creditorTotal value=$creditorTotal+ $dailyEntery->value}
{/if}
{if $dailyEntery->id !=""}
{if $dailyEntery->reverseofid != 0 || $dailyEntery->reverseofid == -10}
|
{else}
|
{/if}
{else}
|
{/if}
{/foreach}
|
|
|
|
|
|
{/foreach}
{else}
عفوا لا توجد نتائج
{/if}