@lang('lang_v1.sell_return_details'):
@lang('lang_v1.return_date'): {{@format_date($single_sell->transaction_date)}}
@lang('contact.customer'): {{ $single_sell->customer_name }}
@lang('purchase.business_location'): {{ $single_sell->business_location }}
@lang('lang_v1.sell_details'):
@lang('sale.invoice_no'): {{ $single_sell->parent_invoice_no }}
@lang('contact.customer'): {{ $single_sell->parent_customer_name }}
@lang('purchase.business_location'): {{ $single_sell->parent_business_location }}
| # |
@lang('product.product_name') |
@lang('sale.unit_price') |
@lang('lang_v1.return_quantity') |
@lang('lang_v1.return_subtotal') |
@php
$total_before_tax = 0;
@endphp
@foreach ($sell_returns->transactions as $sell)
@if ($sell->type == 'sell_return')
@foreach ($sell->sell_lines as $sell_line)
| {{ $loop->iteration }} |
{{ $sell_line->product->name }}
@if( $sell_line->product->type == 'variable')
- {{ $sell_line->variations->product_variation->name}}
- {{ $sell_line->variations->name}}
@endif
|
{{ $sell_line->unit_price_inc_tax }} |
@php
$unit_name = $sell_line->product->unit->short_name;
if(!empty($sell_line->sub_unit)) {
$unit_name = $sell_line->sub_unit->short_name;
}
@endphp
@php
$return_qty = $sell_line->quantity;
@endphp
{{@format_quantity($return_qty)}}
{{$unit_name}}
|
@php
$line_total = $sell_line->unit_price_inc_tax * $return_qty;
$total_before_tax += $line_total ;
@endphp
{{$line_total}}
|
@endforeach
@endif
@endforeach
| @lang('purchase.net_total_amount'): |
|
{{ $total_before_tax }}
|
{{--
| @lang('lang_v1.return_discount'): |
(-) |
@if($sell->return_parent->discount_type == 'percentage')
@{{$sell->return_parent->discount_amount}}% -
@endif
{{ $total_discount }} |
--}}
| @lang('lang_v1.total_return_tax'): |
(+) |
@if(!empty($sell_taxes))
@foreach($sell_taxes as $k => $v)
{{$k}} - {{ $v }}
@endforeach
@else
0.00
@endif
|
| @lang('lang_v1.return_total'): |
|
{{ $single_sell->final_total }}
|
{{--
{{ __('repair::lang.activities') }}:
@includeIf('activity_log.activities', ['activity_type' => 'sell'])
--}}