@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_cost_center == 1)
@endif
@if (Auth::user()->company_profile->use_bill_wise_receipt)
@endif
without_gst == 1 ? 'checked' : '' }} onchange="toggleGst()">
{{--
--}}
{{--
--}}
Report
Add Items
@if (Auth::user()->company_profile->show_item_code_in_sales) @endif @isset($accountingVoucherItems) @php $tabIndex = 0; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp @if (Auth::user()->company_profile->show_item_code_in_sales) @endif @php $tabIndex += 7; @endphp @endforeach @endif @endisset @if (Auth::user()->company_profile->show_item_code_in_sales) @endif
SNItem Code   Item Stock MRP Qty Unit Price Gross Value Disc% Taxable Value Serial Tax Total
{{ $key }}
---
{{ 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' }}
@if (Auth::user()->company_profile->save_and_print == 0) @endif @if (Auth::user()->company_profile->save_and_print == 1) @endif
Voucher Date Voucher no Qty UnitPrice Price(Inc GST) Dis %Dis AmtLanding Cost(Inc)Total Batch
* Stock is based on the base unit of the item
{{-- Print Modal --}} @endsection @section('script') @endsection