@php use App\Models\Setting; use App\Support\AddressFormatter; use App\Support\AmountInWords; $company = [ 'name' => Setting::get('company_name', config('app.name')), 'address' => Setting::get('company_address', ''), 'owner' => Setting::get('company_owner', ''), 'pincode' => Setting::get('company_pincode', ''), 'phone' => Setting::get('company_phone', ''), 'email' => Setting::get('company_email', ''), 'gstin' => Setting::get('company_gstin', ''), 'state' => Setting::get('company_state', ''), 'state_code' => Setting::get('company_state_code', ''), ]; $companyAddress = collect([ $company['owner'] ? "({$company['owner']})" : null, AddressFormatter::flow($company['address']), ])->filter()->implode(', '); if ($company['pincode']) { $companyAddress = trim($companyAddress.' - '.$company['pincode'], ' -'); } $toAddress = AddressFormatter::flow($transfer->toWarehouse->address); $summary = $transfer->taxSummary(); @endphp {{ $transfer->challan_number }} — {{ $company['name'] }} @unless ($forPdf ?? false)
← Back to transfer Download PDF
@endunless

STOCK TRANSFER INVOICE

{{ $company['name'] }}
@if ($companyAddress)
{{ $companyAddress }}
@endif
@if ($company['gstin'])GSTIN/UIN: {{ $company['gstin'] }}@endif @if ($company['state'])  |  State: {{ $company['state'] }}@if ($company['state_code']), Code: {{ $company['state_code'] }}@endif @endif @if ($company['phone'])  |  Mob: {{ $company['phone'] }}@endif @if ($company['email'])  |  {{ $company['email'] }}@endif
Consignee (Ship to)
{{ $transfer->toWarehouse->name }}
@if ($toAddress){{ $toAddress }}
@endif @if ($transfer->toWarehouse->phone)Phone: {{ $transfer->toWarehouse->phone }}@endif
Invoice Details
Invoice No.: {{ $transfer->challan_number }}
Dated: {{ $transfer->transfer_date->format('d-M-Y') }}
Supply: Intra-State (CGST + SGST)
Price tier: {{ $transfer->priceTierLabel() }}
Dispatched from: {{ $transfer->fromWarehouse->name }}
@foreach ($transfer->lines as $line) @endforeach
Sl
No.
Description of Goods HSN GST
Rate
Quantity Rate per Amount
{{ $loop->iteration }} {{ $line->product?->name ?? "Deleted product (#{$line->product_id})" }} {{ $line->hsn_code ?: '—' }} {{ rtrim(rtrim(number_format((float) $line->tax_rate, 2), '0'), '.') }} % {{ $line->quantity }} {{ $line->product?->unit ?: 'PCS' }} {{ number_format((float) $line->unit_price, 2) }} {{ $line->product?->unit ?: 'PCS' }} {{ number_format((float) $line->line_total, 2) }}
Total {{ $transfer->lines->sum('quantity') }} PCS {{ number_format((float) $transfer->subtotal, 2) }}
CGST{{ number_format((float) $transfer->cgst_total, 2) }}
SGST{{ number_format((float) $transfer->sgst_total, 2) }}
Round Off{{ number_format((float) $transfer->round_off, 2) }}
Grand Total ₹ {{ number_format((float) $transfer->total, 2) }}

Amount Chargeable (in words): {{ AmountInWords::rupees((float) $transfer->total) }} E. & O.E

@foreach ($summary as $bucket) @php $tax = $bucket['cgst'] + $bucket['sgst']; @endphp @endforeach
GST Rate Taxable Value CGST RateCGST AmtSGST RateSGST Amt Total Tax
{{ rtrim(rtrim(number_format($bucket['rate'], 2), '0'), '.') }}% {{ number_format($bucket['taxable'], 2) }} {{ rtrim(rtrim(number_format($bucket['rate'] / 2, 2), '0'), '.') }}% {{ number_format($bucket['cgst'], 2) }} {{ rtrim(rtrim(number_format($bucket['rate'] / 2, 2), '0'), '.') }}% {{ number_format($bucket['sgst'], 2) }} {{ number_format($tax, 2) }}
Total {{ number_format((float) $transfer->subtotal, 2) }} {{ number_format((float) $transfer->cgst_total, 2) }} {{ number_format((float) $transfer->sgst_total, 2) }} {{ number_format((float) $transfer->tax_total, 2) }}
for {{ $company['name'] }} for {{ $company['name'] }}


Authorised Signatory
Note: This is an internal stock transfer between warehouses of {{ $company['name'] }}. It does not constitute a sale and is not recorded as revenue — it accompanies the goods for GST/e-way-bill purposes only, valued at the {{ strtolower($transfer->priceTierLabel()) }} rate.

This is a Computer Generated Document