@lang('lang_v1.sell_return_details'):
@lang('lang_v1.return_date'): {{@format_date($sell->transaction_date)}}
@lang('contact.customer'): {{ $sell->contact->name }}
@lang('purchase.business_location'): {{ $sell->location->name }}
@lang('lang_v1.sell_details'):
@lang('sale.invoice_no'): {{ $sell->invoice_no }}
@lang('messages.date'): {{@format_date($sell->transaction_date)}}
| # |
@lang('product.product_name') |
@lang('sale.unit_price') |
@lang('lang_v1.return_quantity') |
{{-- @lang('Garbage Quantity') |
@lang('Garbage Piece Quantity') | --}}
{{-- @lang('State-Tax') |
@lang('City-Tax') | --}}
@lang('lang_v1.return_subtotal') |
@php
$total_before_tax = 0;
@endphp
@foreach($sell->sell_lines as $sellKey => $sell_line)
@php
$totalTax += $sell_line->pos_line_tax_amount + $sell_line->city_tax_amount;
$unit_name = $sell_line->product->unit->short_name;
if(!empty($sell_line->sub_unit)) {
$unit_name = $sell_line->sub_unit->short_name;
}
@endphp
| {{ $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->product->sku }}
@if( isset($sell_line->sell_line_note) && $sell_line->sell_line_note)
{{ ucfirst($sell_line->sell_line_note) }}
@endif
|
{{ $sell_line->unit_price_inc_tax }} |
{{@format_quantity($sell_line->quantity_returned)}} {{$unit_name}} |
{{-- {{@format_quantity($sell_line->gar_box_return_qty)}} {{$unit_name}} |
{{@format_quantity($sell_line->gar_piece_return_qty)}} {{$unit_name}} | --}}
{{-- {{$sell_line->pos_line_tax_amount}} |
{{$sell_line->city_tax_amount}} | --}}
@php
$line_total = ($sell_line->unit_price_inc_tax * $sell_line->quantity_returned) + ($sell_line->unit_price_inc_tax * $sell_line->gar_box_return_qty) + ($sell_line->gar_piece_return_qty * $sell_line->gar_piece_return_price);
$total_before_tax += $line_total ;
@endphp
{{$line_total}}
|
@endforeach
| @lang('purchase.net_total_amount'): |
|
{{ $total_before_tax }} |
| @lang('lang_v1.return_discount'): |
(-) |
{{ $sell->discount_amount }} |
| @lang('Return Tax'): |
(+) |
{{ $totalTax }} |
| @lang('lang_v1.return_total'): |
|
{{ ($sell->final_total) }} |
| Return Total Paid: |
|
{{ ($sell->amount_paid) }} |
| Return Total Remaining: |
|
{{ ($sell->final_total-$sell->amount_paid) }} |
{{--
@lang('lang_v1.box_qty')
{{$sell->box_qty ?? 0}}
--}}
Credit Memo Log Detail
| User Name |
Action |
Message |
Date And Time |
@if(isset($CreditmemoActivityLog))
@foreach($CreditmemoActivityLog as $log)
| {{$log->first_name}} |
@if($log->description == 'added')
Added |
@elseif($log->description == 'edited')
Edited |
@endif
{{$log->message}} |
{{ Carbon\Carbon::parse($log->datetime)->format('d-m-Y G:i A') }} |
@endforeach
@endif