@php
$total_price = 0;
$total_quantity = 0;
@endphp
@foreach( $item_purchase_order as $list )
@php
$po = \App\PurchaseOrder::find($list->purchase_order_id );
@endphp
@php
$total_price += $list->price * $list->received_quantity;
$total_quantity += $list->received_quantity ;
@endphp
@endforeach
Po# |
Vendor |
Order Qty |
Receive Qty |
Price |
Date |
PO-{{$po->id}}
|
{{ucfirst($po->vendor->name)}}
|
{{number_format($list->demand_quantity , 2)}} |
{{number_format($list->received_quantity , 2)}} |
{{number_format($list->price , 2)}} |
{{date('d-F-Y' , strtotime($po->created_at))}} |
Total Receive Qty : {{number_format($total_quantity , 2)}}
Total Receive Qty Amount: {{number_format($total_price , 2)}}
@php
$total_release = 0;
@endphp
@foreach( $item_releasings as $item_list )
@php
$current_release = \App\Http\Controllers\ItemController::getCurrentRelease($item->id , $item_list->purchase_request_id , $item_list->department_id);
@endphp
@if($current_release > 0 )
@php
$quantity = 0; $current_release = 0;
foreach($item_list->releasing_items as $quantity)
if($quantity->item_releasing_id == $item_list->id) $quantity = $quantity->item_quantity;
$project_id = null;
$department_id = $item_list->department_id;
if (! isset($out[$project_id ])) {
$out[$project_id ] = array('project_id' => $project_id );
}
if (! isset($out[$project_id ][$department_id ]))
{
$out[$project_id ][$department_id ] = 0;
}
$out[$project_id ][$department_id ] += $quantity;
@endphp
@php
$total_release = $total_release + $current_release;
@endphp
@endif
@endforeach
Pr# |
Department |
Releasing By |
Received By |
Releasing Quantity |
Releasing Date |
@if($item_list->purchase_request_id > 0)
@permission('view-purchase-request')
PR-{{$item_list->purchase_request_id }}
@else
PR-{{$item_list->purchase_request_id }}
@endpermission
@else
--
@endif
|
{{$item_list->department->department_name}} |
{{ucfirst($item_list->releaser_name)}} |
{{ucfirst($item_list->receiver_name)}} |
{{$current_release}}
|
{{date('d-F-Y' , strtotime($item_list->releasing_date))}} |
Total Release Qty : {{number_format($total_release , 2)}}
@if(!empty($out))
Item Usage
@endif
Item Stock