{{ $company->name }}
{{ $company->address }}
{{$moduleTitle}}
| Bill No |
: |
{{'BR'.$data->branch_requisition_no}} |
|
Bill Date |
: |
{{date('d-m-Y', strtotime($data->branch_requisition_date))}} |
|
From Branch |
: |
{{$data->inv_branch->name}} |
| Total Quantity |
: |
{{$data->total_quantity}} |
|
To Branch |
: |
{{$data->inv_to_branch->name}} |
| SL No. |
Product Name |
Uom Name |
Demand |
Received |
@php $no= $t_d_qty = $t_qty = $t_amount = $iRow = $current_stock = 0;@endphp
@foreach($data->inv_branch_requisition_details as $details)
@php
$iRow++;
$purchaseBarcodeQuantity = 0;
// $purchaseBarcodeQuantity = $details->quantity;
$purchaseBarcodeQuantity = \App\Models\inventory\transaction\issue\InvTraIssueDetails::where('requisition_id',$details->id)->where('to_branch_id',$details->branch_id)->where('product_id',$details->product_id)->sum('quantity');
$requestedQuantity = $details->requested_qty;
@endphp
| {{++$no}} |
{{$details->inv_product->name}} |
{{$details->inv_product->inv_uom->name}} |
{{ $details->requested_qty }}
|
{{$purchaseBarcodeQuantity}}
|
@php $t_d_qty += $details->requested_qty; $t_qty += $purchaseBarcodeQuantity; $t_amount += ($purchaseBarcodeQuantity * $details->inv_product->cost_price); @endphp
@endforeach
| Total |
{{$t_d_qty}} |