@extends('layouts.master') @section('css') @endsection @section('title') Purchase Return @endsection @section('content') @isset($accountingVoucher) @method('put') @else @endisset @csrf @isset($accountingVoucher) Edit Purchase Return @else Add Purchase Return @endisset Asset Purchase Return Accounts Only Voucher Number @if (Auth::user()->company_profile->use_new_voucher_number_format == 1) @isset($accountingVoucher) @if ($accountingVoucher->voucherType->use_suffix_and_prefix == 1) @php $prefix = $accountingVoucher->vch_prefix; $suffix = $accountingVoucher->vch_suffix; $vch_no = $accountingVoucher->vch_no; @endphp {{ $prefix }} edit_voucher_number) @else readonly @endif> {{ $suffix }} @else @if (str_contains($accountingVoucher->voucher_number, '-')) @php $explode = explode( '-', $accountingVoucher->voucher_number, ); $voucherNumber = end($explode); $prefix = array_pop($explode); $prefix = implode('-', $explode); @endphp {{ $prefix }} edit_voucher_number) @else readonly @endif> @else edit_voucher_number) @else readonly @endif> @endif @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @if ($voucherType->suffix != null) {{ $voucherType->suffix }} @else @endif @endisset @else @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 }} edit_voucher_number) @else readonly @endif> @else edit_voucher_number) @else readonly @endif> @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset @endif Voucher Type Select voucher type Voucher Date Purchase Return Ledger (Cr) Select ledger Party (Dr) Select ledger @isset($accountingVoucher) {{ $accountingVoucher->debitLedger->name }} @endisset Tax Type @isset($accountingVoucher) IntraState InterState (IGST) @else IntraState InterState (IGST) @endisset Stock Location Choose stock location @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 Remarks {{ isset($accountingVoucher) ? $accountingVoucher->remarks : '' }} @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, )->get(); 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 Without GST without_gst == 1 ? 'checked' : '' }} onchange="toggleGst()"> {{-- --}} {{-- --}} Report Go Back Add Items SN Collection Item Stock MRP Qty Unit Price Gross Value Disc% Taxable Value Tax Total @isset($accountingVoucherItems) @php $tabIndex = 0; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp {{ $key }} Select collection @if ($accountingVoucherItem->item_collection_id != null) {{ $accountingVoucherItem->itemCollection->name }} @endif Select item {{ $accountingVoucherItem->stockItem->name }} --- @foreach ($accountingVoucherItem->units as $unit) unit_id == $unit->id ? 'selected' : '' }}> {{ $unit->symbol }} @endforeach {{-- unit_id == $accountingVoucherItem->unit->id ? 'selected' : '') : '' }}> {{ $accountingVoucherItem->unit->symbol }} --}} @php $tabIndex += 7; @endphp @endforeach @endif @endisset {{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('taxable_value') : '0.00' }} {{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('igst') + $accountingVoucherItems->sum('sgst') + $accountingVoucherItems->sum('cgst') + $accountingVoucherItems->sum('cess') : '0.00' }} {{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('total') : '0.00' }} TCS : tcs > 0.0 ? 'checked' : '') : '' }} id="tcs"> {{ isset($accountingVoucher) ? $accountingVoucher->tcs : '' }} 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 --}}