@php
$comission = $printData['invoice']->dp_commission;
if ($setting->show_zero_qty != 1) $transactions = $printData['invoice']->transactions->where('quantity', '>', 0);
if ($is_dp == 1 && $printData['invoice']->party->depot_id) {
$comission = request()->pd ? $printData['invoice']->dp_commission
: ($printData['invoice']->party->depot_id ?
$printData['invoice']->party->commission
: $printData['invoice']->dc_percentage);
}
@endphp
{{-- @if (!request()->chalan)
| SL | Product Name | Note | Quantity | Unit | @if (!request()->chalan)DP | TP | {{--Total | --}}Net Total | @endif
|---|---|---|---|---|---|---|---|---|
| {{ $key+1 }} | {{ $item->product->name_eng }} | {{ $item->description }} {{ $item->is_free_or_gift == 1 ? '(Free)':'' }} | {{ dualUnitQtyConverter($item->quantity, 1, $item->product->unit_quantity) }} | {{ $item->product->primaryUnit->name }} | @if (!request()->chalan){{ number_format($price, 2) }} | {{ number_format(($item->tp_price*$item->product->unit_quantity), 2) }} | {{--{{ number_format($nets[$key], 2) }} | --}}{{ number_format($nets[$key], 2) }} | @endif
| Grand Total | {{ number_format(array_sum($nets), 2) }} | |||||||
| Grand Total | {{ number_format($tot_net, 2) }} |
@if($tot_net < 0)(Minus)@endif {{ ucwords(getNumberInWords(number_format(abs($tot_net), 2, '.', '') )) }} {{ ($printData['currency'] ? $printData['currency']->name : '') }} only.