@php use Carbon\Carbon; $party = 'Dr'; switch ($name) { case 'Purchase': $party = 'Cr'; break; case 'Sales': $party = 'Dr'; break; case 'Purchase Return': $party = 'Dr'; break; case 'Sales Return': $party = 'Cr'; break; default: $party = 'Dr'; break; } @endphp
| Voucher Number | Voucher Type | Voucher Date | Party Name | Party Address | Party Pincode | Party GSTIN | Party Code | Product Name | Product Code | Product HSN | Product GST | Product Unit | Product Quantity | Product Price | Gross Value | Discount Percentage | Discount Amount | Taxable Value | CGST | SGST | IGST | CESS | Total | Business Type | Supplier Inv No | Supplier Inv Date | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| B2B | |||||||||||||||||||||||||||
| {{ $voucher->voucher_number }} | {{ $voucher->voucherType->name }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $item->stockItem->name }} | {{ $item->stockItem->item_code }} | {{ $item->stockItem->hsn_code }} | {{ $item->gst_per }} | {{ $item->unit->name }} | {{ $item->quantity }} | {{ $item->price }} | {{ $item->gross_value }} | {{ $item->disc_percentage }} | {{ $item->disc_amount }} | {{ $item->taxable_value }} | {{ $item->cgst }} | {{ $item->sgst }} | {{ $item->igst }} | {{ $item->cess }} | {{ $item->total }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | {{ $voucher->status == 0 ? 'Cancelled' : '' }} |
| {{ $voucher->voucher_number }} | {{ $voucher->voucherType->name }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | Cancelled | ||||||||||||||||
| B2C | |||||||||||||||||||||||||||
| {{ $voucher->voucher_number }} | {{ $voucher->voucherType->name }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $item->stockItem->name }} | {{ $item->stockItem->item_code }} | {{ $item->stockItem->hsn_code }} | {{ $item->gst_per }} | {{ $item->unit->name }} | {{ $item->quantity }} | {{ $item->price }} | {{ $item->gross_value }} | {{ $item->disc_percentage }} | {{ $item->disc_amount }} | {{ $item->taxable_value }} | {{ $item->cgst }} | {{ $item->sgst }} | {{ $item->igst }} | {{ $item->cess }} | {{ $item->total }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | {{ $voucher->status == 0 ? 'Cancelled' : '' }} |
| {{ $voucher->voucher_number }} | {{ $voucher->voucherType->name }} | {{ Carbon::parse($voucher->voucher_date)->format('d-m-Y') }} | {{ $party == 'Cr' ? ($voucher->creditLedger != null ? $voucher->creditLedger->name : $ledgerName) : ($voucher->debitLedger != null ? $voucher->debitLedger->name : $ledgerName) }} | {{ $party == 'Cr' ? $voucher->creditLedger?->address : $voucher->debitLedger?->address }} | {{ $party == 'Cr' ? $voucher->creditLedger?->pin_code : $voucher->debitLedger?->pin_code }} | {{ $party == 'Cr' ? $voucher->creditLedger?->gst : $voucher->debitLedger?->gst }} | {{ $party == 'Cr' ? $voucher->creditLedger?->ledger_code : $voucher->debitLedger?->ledger_code }} | {{ $businessType }} | {{ $voucher->supplier_invoice_no }} | {{ $voucher->supplier_invoice_date != null ? Carbon::parse($voucher->supplier_invoice_date)->format('d-m-Y') : '' }} | Cancelled |