@include('inventory.print.dynamic.head') {{-- --}}
{!! $head !!}
@if (count($vat_tax)>0) @endif @forelse ($invoice->transaction->where('transaction_type', '<>', 7) as $item) @php $price = $item->avg_price*$item->unit_qty; if ($invoice->transaction_type == 3) { $issue_qty = (($item->quantity+$item->allocated_qty)/$item->unit_qty); $ret_qty = ($item->allocated_qty??0/$item->order_qty??0); $sell_qty = $item->quantity/$item->unit_qty; $net = $price*$sell_qty; } else { $issue_qty = 0; $ret_qty = $item->quantity/$item->unit_qty; $sell_qty = 0; $net = $price*$ret_qty; } @endphp {{-- Issue --}} {{-- Return --}} {{-- Sell --}} @if (count($vat_tax)>0)