@extends('layouts.master') @section('css') @endsection @section('title') Sales Return @endsection @section('content') @isset($accountingVoucher) @method('put') @else @endisset @csrf @isset($accountingVoucher) Edit Sales Return @else Add Sales Return @endisset Voucher Number @isset($accountingVoucher) @if (str_contains($accountingVoucher->voucher_number, '-')) @php $explode = explode('-', $accountingVoucher->voucher_number); $voucherNumber = end($explode); $prefix = array_pop($explode); $prefix = implode('-', $explode); @endphp {{ $prefix }} @else @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset Voucher Type Select voucher type Voucher Date Sales Return Ledger (Dr) Select ledger Party (Cr) Select ledger Tax Type @isset($accountingVoucher) IntraState InterState (IGST) @else IntraState InterState (IGST) @endisset @if ($companyProfile->show_price_slab == 1) Price Slab Choose price slab @foreach ($priceSlabs as $priceSlab) price_slab_id == $priceSlab->id ? 'selected' : '') : '' }}> {{ $priceSlab->name }} @endforeach @endif Stock Location Choose stock location Remarks {{ isset($accountingVoucher) ? $accountingVoucher->remarks : '' }} @if ($companyProfile->show_cost_center == 1) Cost Center Select Cost Center @foreach ($costCenters as $costCenter) cost_center_id == $costCenter->id ? 'selected' : '') : '' }}> {{ $costCenter->name }} @endforeach @endif @if ($companyProfile->show_customer_details) Customer Name Customer Mobile @endif @if (Auth::user()->company_profile->use_bill_wise_receipt) Against Vouchers @isset($accountingVoucher) @php $bill_wise_receipts = \App\Models\BillWiseReceipt::where( 'accounting_voucher_id', $accountingVoucher->id, ) ->whereNotNull('against_voucher_id') ->get(); $opening_receipts = \App\Models\BillWiseReceipt::where( 'accounting_voucher_id', $accountingVoucher->id, ) ->where('Type', 'Opening Balance') ->get(); if ($opening_receipts->count() > 0) { foreach ($opening_receipts as $key => $opening_receipt) { echo 'Opening Balance - ' . $opening_receipt->amount . ''; } } foreach ($bill_wise_receipts as $bill_wise_receipt) { echo '' . $bill_wise_receipt->againstVoucher->VoucherType->name . ' - ' . $bill_wise_receipt->againstVoucher->voucher_number . ' - ' . $bill_wise_receipt->amount . ''; } @endphp @endisset @endif Report Go Back Add Items SN Item Batch Stock MRP Qty Unit Price Price(Inc GST) Gross Value Disc% Taxable Value CGST SGST IGST CESS Total Dmg @isset($accountingVoucherItems) @php $tabIndex = 0; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp {{ $key }} Select item {{ $accountingVoucherItem->stockItem->name }} Select batch @if ($accountingVoucherItem->batch_id != null) {{ $accountingVoucherItem->batch->name }} @endif --- @foreach ($accountingVoucherItem->units as $unit) unit_id == $unit->id ? 'selected' : '' }}> {{ $unit->symbol }} @endforeach {{-- unit_id == $accountingVoucherItem->unit->id ? 'selected' : '') : '' }}> {{ $accountingVoucherItem->unit->symbol }} --}} is_damage == 1 ? 'checked' : '' }}> @php $tabIndex += 8; @endphp @endforeach @endif @endisset {{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('total') : '0.00' }} Discount : Freight/Etc : Round Off : {{ isset($accountingVoucher) ? $accountingVoucher->round_off : '0.00' }} Grand Total : {{ isset($accountingVoucher) ? $accountingVoucher->amount : '0.00' }} Add Submit * Stock is based on the base unit of the item {{-- Print Modal --}}