@foreach($requisition->requisitionItems as $index=>$requisition_item)
{{--REQUISITION ITEM ACCOUNTS--}}
@if($requisition_item->requisitionItemAccount)
@if($requisition_item->requisitionItemAccount->requisitionItemAccountAccounts)
{{++$index}} |
{{$requisition_item->requisitionItemAccount->account->name}} |
{{$requisition_item->requisitionItemAccount->currency}} |
1 |
{{number_format($requisition_item->requisitionItemAccount->amount,2)}} |
{{number_format($requisition_item->requisitionItemAccount->amount,2)}} |
@endif
@if($requisition_item->requisitionItemAccount->requisitionItemAccountStores)
{{++$index}} |
{{$requisition_item->requisitionItemAccount->account->name}} |
{{$requisition_item->requisitionItemAccount->currency}} |
1 |
{{number_format($requisition_item->requisitionItemAccount->amount,2)}} |
{{number_format($requisition_item->requisitionItemAccount->amount,2)}} |
@endif
@if($requisition_item->requisitionItemAccount->requisitionItemAccountVendors)
{{++$index}} |
{{$requisition_item->requisitionItemAccount->account->name}} |
{{$requisition_item->requisitionItemAccount->currency}} |
1 |
{{number_format($requisition_item->requisitionItemAccount->amount,2)}} |
{{number_format($requisition_item->requisitionItemAccount->amount,2)}} |
@endif
@endif
{{--REQUISITION ITEM ITEM--}}
@if($requisition_item->requisitionItemItem)
@if($requisition_item->requisitionItemItem->requisitionItemItemAccounts)
{{++$index}} |
{{$requisition_item->requisitionItemItem->item->name}} |
{{$requisition_item->currency_name}} |
{{$requisition_item->requisitionItemItem->quantity}} |
{{number_format($requisition_item->requisitionItemItem->rate,2)}} |
{{number_format(($requisition_item->requisitionItemItem->rate * $requisition_item->requisitionItemItem->quantity),2)}} |
@endif
@if($requisition_item->requisitionItemItem->requisitionItemItemStores)
{{++$index}} |
{{$requisition_item->requisitionItemItem->item->name}} |
{{$requisition_item->currency_name}} |
{{$requisition_item->requisitionItemItem->quantity}} |
{{number_format($requisition_item->requisitionItemItem->rate,2)}} |
{{number_format(($requisition_item->requisitionItemItem->rate * $requisition_item->requisitionItemItem->quantity),2)}} |
@endif
@if($requisition_item->requisitionItemItem->requisitionItemItemVendors)
{{++$index}} |
{{$requisition_item->requisitionItemItem->item->name}} |
{{$requisition_item->currency_name}} |
{{$requisition_item->requisitionItemItem->quantity}} |
{{number_format($requisition_item->requisitionItemItem->rate,2)}} |
{{number_format(($requisition_item->requisitionItemItem->rate * $requisition_item->requisitionItemItem->quantity),2)}} |
@endif
@endif
@endforeach
@for($j=10;$j>=sizeof($requisition->requisitionItems);$j--)
|
|
|
|
|
|
@endfor