{{--

@lang('lang_v1.stock_transfer_details') (@lang('purchase.ref_no'): #{{ $sell_transfer->ref_no }}) --}}

Tax Invoice (Invoice No: #{{ $sell_transfer->ref_no }})

@lang('lang_v1.location_from'):
{{ $location_details['sell']->name }} ( {{$location_details['sell']->location_id}} ) @if(!empty($location_details['sell']->landmark))
{!! $location_details['sell']->landmark !!} @endif @if(!empty($location_details['sell']->city) || !empty($location_details['sell']->state) || !empty($location_details['sell']->country))
{{implode(',', array_filter([$location_details['sell']->city, $location_details['sell']->state, $location_details['sell']->country]))}} @endif @if(!empty($sell_transfer->contact->tax_number))
GSTIN: {{$sell_transfer->contact->tax_number}} @endif @if(!empty($location_details['sell']->custom_field2))
GSTIN: {{$location_details['sell']->custom_field2}} @endif @if(!empty($location_details['sell']->mobile))
@lang('contact.mobile'): {{$location_details['sell']->mobile}} @endif @if(!empty($location_details['sell']->email))
Email: {{$location_details['sell']->email}} @endif
@lang('lang_v1.location_to'):
{{ $location_details['purchase']->name }} ( {{$location_details['purchase']->location_id}} ) @if(!empty($location_details['purchase']->landmark))
{{$location_details['purchase']->landmark}} @endif @if(!empty($location_details['purchase']->city) || !empty($location_details['purchase']->state) || !empty($location_details['purchase']->country))
{{implode(',', array_filter([$location_details['purchase']->city, $location_details['purchase']->state, $location_details['purchase']->country]))}} @endif @if(!empty($sell_transfer->contact->tax_number))
@lang('contact.tax_no'): {{$sell_transfer->contact->tax_number}} @endif @if(!empty($location_details['purchase']->custom_field2))
GSTIN: {{$location_details['purchase']->custom_field2}} @endif @if(!empty($location_details['purchase']->mobile))
@lang('contact.mobile'): {{$location_details['purchase']->mobile}} @endif @if(!empty($location_details['purchase']->email))
Email: {{$location_details['purchase']->email}} @endif
@lang('purchase.ref_no'): #{{ $sell_transfer->ref_no }}
@lang('messages.date'): {{ @format_date($sell_transfer->transaction_date) }}
@lang('sale.status'): {{$statuses[$sell_transfer->status] ?? ''}}

@php $total = 0.00; $totalBasicAmount = 0.00; // Initialize an array to store GST totals dynamically $gstTotals = [ 0 => 0, 5 => 0, 12 => 0, 18 => 0, 28 => 0, 40 => 0, // Special handling for GST 40 ]; $gst @endphp @foreach($sell_transfer->sell_lines as $sell_lines) @php //$taxamount=($sell_lines->unit_price_inc_tax/(100+$sell_lines->product->product_tax->amount))*100 $discounts = round($sell_lines->variations->product_mrp / ($sell_lines->unit_price_inc_tax), 2); if($discounts >= 1 && $discounts < 2){ $discountedValue=($discounts-1)*100; }else if($discounts>= 2 && $discounts < 3){ $discountedValue=($discount-1)*100; } $product_cost_price=($sell_lines->variations->product_mrp)/(1+ $discounts * 0.01); $gstAmt=1+ $sell_lines->product->product_tax->amount * 0.01; $product_basic_price=$sell_lines->unit_price_inc_tax / $gstAmt; $gst_amount=$sell_lines->unit_price_inc_tax-$product_basic_price; @endphp @php $gst = $sell_lines->product->product_tax->amount; // $gstTotals[$gst] += $product_basic_price * $sell_lines->quantity; // Calculate Gst wise total Basic Amount if (isset($gstTotals[$gst])) { $gstTotals[$gst] += (($sell_lines->unit_price_inc_tax -$gst_amount ) * $sell_lines->quantity); } $totalBasicAmount += ($product_basic_price * $sell_lines->quantity); $total += ($sell_lines->unit_price_inc_tax * $sell_lines->quantity); $total_quantity +=$sell_lines->quantity; $total_taxes +=($sell_lines->unit_price_inc_tax- (($sell_lines->unit_price_inc_tax/(100+$sell_lines->product->product_tax->amount))*100))* $sell_lines->quantity; $total_weight +=$sell_lines->product->weight ? ($sell_lines->quantity * $sell_lines->product->weight)/1000 :'0'; @endphp @endforeach
# @lang('sale.product') HSN Code @lang('sale.qty') MRP Basic Price Cost Price Discount Tax Rate Weight Sub Total
{{ $loop->iteration }} {{ $sell_lines->product->name }} @if( $sell_lines->product->type == 'variable') - {{ $sell_lines->variations->product_variation->name}} - {{ $sell_lines->variations->name}} @endif - {{ $sell_lines->variations->sub_sku}} @if($lot_n_exp_enabled && !empty($sell_lines->lot_details))
@lang('lang_v1.lot_n_expiry'): @if(!empty($sell_lines->lot_details->lot_number)) {{$sell_lines->lot_details->lot_number}} @endif @if(!empty($sell_lines->lot_details->exp_date)) - {{@format_date($sell_lines->lot_details->exp_date)}} @endif @endif
{{ $sell_lines->product->hsn_code }} {{ @format_quantity($sell_lines->quantity) }} @if(!empty($sell_lines->sub_unit)) {{$sell_lines->sub_unit->short_name}} @else {{$sell_lines->product->unit->short_name}} @endif {{ $sell_lines->variations->product_mrp }} {{ $product_basic_price }} {{@num_format($sell_lines->unit_price_inc_tax)}} @php $discounts = round($sell_lines->variations->product_mrp / ($sell_lines->unit_price_inc_tax), 2); if($discounts >= 1 && $discounts < 2){ $discountedValue=($discounts-1)*100; }else if($discounts>= 2 && $discounts < 3){ $discountedValue=($discount-1)*100; } @endphp {{@num_format($discountedValue)}} {{ $sell_lines->product->product_tax->name ?? '' }}
{{@num_format($gst_amount)}}
{{@num_format($sell_lines->product->weight ? ($sell_lines->quantity * $sell_lines->product->weight)/1000 :'0')}} kg {{@num_format($sell_lines->quantity*$sell_lines->unit_price_inc_tax)}}
Total Quantity : {{ $total_quantity }} Pcs GST wise Basic Amt

@if(!empty($line_taxes)) @endif @if(!empty($total_tax)) @endif @if( !empty( $sell_transfer->shipping_charges ) ) @endif
@lang('Basic Amount'): {{ $sell_transfer->final_total - $total_tax }}
@if(!empty($line_taxes)) @foreach($line_taxes as $k => $v) {{$k}}
@endforeach @endif @if(strtolower($location_details['sell']->state)==strtolower($location_details['purchase']->state)) Total CGST :
Total SGST :
@else Total IGST :
@endif
@foreach($line_taxes as $k => $v) @if(strtolower($location_details['sell']->state)==strtolower($location_details['purchase']->state)) CGST : {{round($v/2, 2)}}
@else
@endif @endforeach
@foreach($line_taxes as $k => $v) @if(strtolower($location_details['sell']->state)==strtolower($location_details['purchase']->state)) SGST : {{round($v/2,2)}}
@else
@endif @endforeach
@if(!empty($line_taxes)) @foreach($line_taxes as $k => $v) {{ $v }}
@endforeach @else 0.00 @endif @if(strtolower($location_details['sell']->state)==strtolower($location_details['purchase']->state)) {{$total_taxes/2}}
{{$total_taxes/2}}
@else {{$total_taxes}}
@endif
Total Tax {{ $total_tax }}
Total Weight {{$total_weight}} Kg
@lang('purchase.additional_shipping_charges'): (+) {{ $sell_transfer->shipping_charges }}
@lang('purchase.net_total_amount'): {{ $sell_transfer->final_total }}
@lang('purchase.additional_notes'):

@if($sell_transfer->additional_notes) {{ $sell_transfer->additional_notes }} @else -- @endif

{{ __('lang_v1.activities') }}:
@includeIf('activity_log.activities', ['activity_type' => 'sell'])