@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
@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 edit_voucher_number) @else readonly @endif> @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
@if ($companyProfile->show_shipping_address == 1)
@endif
@if (Auth::user()->company_profile->use_bill_wise_receipt)
@endif
Report
Add Items
@isset($accountingVoucherItems) @php $tabIndex = 0; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp @php $tabIndex += 8; @endphp @endforeach @endif @endisset
SN    Item Batch Stock MRP Qty Unit Price Gross Value Disc% Taxable Value CGST SGST IGST CESS Total
{{ $key }}
---
batch_id != null) @php $lastInward = App\Models\StockLedger::where([ 'business_key' => Auth::user()->business_key, 'stock_item_id' => $accountingVoucherItem->stock_item_id, 'batch_id' => $accountingVoucherItem->batch_id, ]) ->where(function ($query) { $query->where('batch_mrp', '!=', null); }) ->orderBy('date', 'desc') ->first(); @endphp @if ($lastInward) value="{{ $lastInward->batch_mrp }}" @else value="{{ $accountingVoucherItem->stockItem->getMrp($accountingVoucher->voucher_date) }}" @endif @else value="{{ $accountingVoucherItem->stockItem->getMrp($accountingVoucher->voucher_date) }}"@endif id="mrp_{{ $key }}" readonly class="form-control form-input-box min-width60">
{{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('total') : '0.00' }}
TCS : tcs > 0.0 ? 'checked' : '') : '' }} id="tcs">
{{ isset($accountingVoucher) ? $accountingVoucher->tcs : '' }}
Discount :
Round Off :
{{ isset($accountingVoucher) ? $accountingVoucher->round_off : '0.00' }}
Grand Total :
{{ isset($accountingVoucher) ? $accountingVoucher->amount : '0.00' }}
* Stock is based on the base unit of the item
{{-- Print Modal --}} {{-- Batch Modal --}} @endsection @section('script') @endsection