{!! Form::open(['url' => action([\App\Http\Controllers\ReportController::class, 'productStockDetails']), 'method' => 'get' ]) !!}
{!! Form::close() !!}
@if(!empty($stock_details))
Product
|
{{ __('report.opening_stock') }}
|
{{ __('home.total_purchase') }}:
|
{{ __('lang_v1.total_purchase_return') }}
|
{{ __('report.total_stock_adjustment') }}
|
{{ __('lang_v1.total_stock_transfered_to_the_location') }}
|
{{ __('lang_v1.total_sold') }}
|
{{ __('lang_v1.total_sell_return') }}
|
{{ __('lang_v1.total_stock_transfered_from_the_location') }}
|
Total Manufactured
|
Total Used For Production
|
Correct Stock
({{ __('lang_v1.total_stock_calculated') }})
|
Incorrect Stock
({{ __('lang_v1.total_stock_available') }})
|
Fix
|
@foreach($stock_details as $row)
@php
$stock_mismatch = round($row->stock) - round($row->total_stock_calculated);
@endphp
@if($stock_mismatch == 0)
@continue
@endif
{{$row->product}}
@if($row->type == "variable")
{{$row->product_variation}} - {{$row->variation_name}} ({{$row->sub_sku}})
@else
({{$row->sku}})
@endif
|
{{$row->total_opening_stock}}
|
{{$row->total_purchased}}
|
{{$row->total_purchase_return}}
|
{{$row->total_adjusted}}
|
{{$row->total_sell_transfered}}
|
{{$row->total_sold}}
|
{{$row->total_sell_return}}
|
{{$row->total_sell_transfered}}
|
{{$row->total_manufactured}}
|
{{$row->total_ingredients_used}}
|
{{$row->total_stock_calculated}}
|
{{$row->stock}}
|
Fix
|
@endforeach
@endif