@foreach ($accountingVouchers as $accountingVoucher)

GSTIN: {{ $company->gst }}

DEBIT NOTE

Original Copy

{{ $company->name }}


{{ $company->address }}
Phone: {{ $company->phone }} Email: {{ $company->email }}

Invoice No : {{ $accountingVoucher->voucher_number }}

Invoice Date : {{ \Carbon\Carbon::parse($accountingVoucher->voucher_date)->format('d M Y') }}

To, {{ $accountingVoucher->debitLedger->name }}
Ph: {{ $accountingVoucher->debitLedger->mobile_no }} GSTIN : {{ $accountingVoucher->debitLedger->gst }} Address : {{ $accountingVoucher->debitLedger->address }}
@foreach ($accountingVoucher->items as $key => $item) @endforeach
SN Description of Goods HSN/SAC
Code
MRP Qty Unit Price Gross
Amount
Dis
%
Disc
Amt
Taxable
Amt
Tax
%
GST
Amount
Amount
{{ $key + 1 }} {{ $item->stockItem->name }} @if ($item->variant_id != null)
({{ $item->variant->name }}) @endif
{{ $item->stockItem->hsn_code }} {{ number_format($item->stockItem->getMrp($accountingVoucher->voucher_date), 2) }} {{ $item->quantity }} {{ $item->unit->symbol }} {{ number_format($item->price, 2) }} {{ number_format($item->gross_value, 2) }} {{ number_format($item->disc_percentage, 2) }} {{ $item->disc_amount }} {{ $item->taxable_value }} {{ $item->gst_per }} {{ number_format($item->cgst + $item->sgst + $item->igst, 2) }} {{ number_format($item->total, 2) }}
{{ $accountingVoucher->items->sum('quantity') }} {{ number_format($accountingVoucher->items->sum('gross_value'), 2) }} {{ number_format($accountingVoucher->items->sum('taxable_value'), 2) }} {{ number_format($accountingVoucher->items->sum('cgst') + $accountingVoucher->items->sum('sgst') + $accountingVoucher->items->sum('igst'), 2) }} {{ number_format($accountingVoucher->items->sum('total'), 2) }}
Add : Rounded Off (+) {{ $accountingVoucher->round_off }}
Discount : (-) {{ $accountingVoucher->discount ?? 0 }}
Previous Balance : {{ $accountingVoucher->previousBalance }} {{ $accountingVoucher->previousBalanceDrCr }} GRAND TOTAL {{ $accountingVoucher->amount }}
For {{ $company->name }}
@php $hsn_codes = $accountingVoucher ->items() ->join('stock_items', 'accounting_voucher_items.stock_item_id', '=', 'stock_items.id') ->select( 'stock_items.hsn_code', 'accounting_voucher_items.gst_per', \DB::raw('SUM(accounting_voucher_items.cgst) as cgst'), \DB::raw('SUM(accounting_voucher_items.sgst) as sgst'), \DB::raw('SUM(accounting_voucher_items.igst) as igst'), \DB::raw('SUM(accounting_voucher_items.taxable_value) as taxable_value'), ) ->groupBy('stock_items.hsn_code', 'accounting_voucher_items.gst_per') ->get(); // @dd($hsn_codes); @endphp @foreach ($hsn_codes as $hsn_code) @endforeach
HSN/SAC Taxable Amt. CGST Amt. SGST Amt. Igst
{{ $hsn_code->hsn_code }} {{ number_format($hsn_code->taxable_value, 2) }} {{ number_format($hsn_code->cgst) }} {{ number_format($hsn_code->sgst) }} {{ number_format($hsn_code->igst) }}
Authorised Signatory
@if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach