@extends('layouts.room-booking-master') @section('css') @include('admin.stock-items.create-modal-css') @endsection @section('title') Sales @endsection @section('content')
@isset($accountingVoucher)
@method('put') @else @endisset @csrf
@isset($accountingVoucher) Edit Sales @else Add Sales @endisset
company_profile->price_or_price_including == 1 ? 'checked' : '' }} onchange="togglePriceIncluding()">
@if (Auth::user()->company_profile->use_new_voucher_number_format == 1) @isset($accountingVoucher) @php $prefix = $accountingVoucher->vch_prefix; $suffix = $accountingVoucher->vch_suffix; $vch_no = $accountingVoucher->vch_no; @endphp @if ($vch_no != null) 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
{{--
--}}
{{--
--}}
@php $paymentIds = $PaymentLedgers->pluck('id')->toArray(); @endphp
@if ($companyProfile->show_price_slab == 1)
@endif
@if ($companyProfile->show_vehicle_number)
vehicle_no_mandatory) required @endif>
@endif @if (isset($accountingVoucher) && $accountingVoucher->otp != null && $accountingVoucher->approval_status != 'Approved')
@endif
Report
Price Slab Unit Price (Inc Tax)
Purchase
Price(Excl Tax)
Purchase
Price(Incl Tax)
Gst (%) Cess (%)
Edit Sales
@if (Auth::user()->company_profile->show_item_code_in_sales) @endif @if (Auth::user()->company_profile->show_mrp_in_simple_mode == 1) @endif @if (Auth::user()->company_profile->qty_or_price_first == 0) @else @endif @if (Auth::user()->company_profile->discount_percentage_in_sales) @endif @if (Auth::user()->company_profile->show_item_description) @endif @isset($accountingVoucherItems) @php $tabIndex = 1; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp @php $i = 0; $j = 0; @endphp @if (Auth::user()->company_profile->show_item_code_in_sales) @php $i = 1; @endphp @endif @if (Auth::user()->company_profile->show_mrp_in_simple_mode == 1) @endif @if (Auth::user()->company_profile->qty_or_price_first == 0) @else @endif @if (Auth::user()->company_profile->discount_percentage_in_sales) @php $j = 1; @endphp @endif @if (Auth::user()->company_profile->show_item_description) @endif @php $tabIndex = $tabIndex + $j + $i + 4; @endphp @endforeach @endif @endisset @if (Auth::user()->company_profile->show_item_code_in_sales) @endif {{-- --}} @if (Auth::user()->company_profile->show_mrp_in_simple_mode == 1) @endif @if (Auth::user()->company_profile->discount_percentage_in_sales == 1) @endif @if (Auth::user()->company_profile->show_item_description) @endif
SNItem Code   Item StockMRPUnitQty PricePrice Qty Disc%TotalDescriptionRemarks
{{ $key }}
---
company_profile->price_or_price_including == 1) style="display: none" @endif> sale_executive_price_change == 0 ? 'readonly' : '' }}> company_profile->price_or_price_including == 0) style="display: none" @endif>
company_profile->price_or_price_including == 1) style="display: none" @endif> sale_executive_price_change == 0 ? 'readonly' : '' }}> company_profile->price_or_price_including == 0) style="display: none" @endif>
company_profile->discount_percentage_in_sales) @else type="hidden" @endif name="discount_per[]" value="{{ $accountingVoucherItem->disc_percentage }}" id="dis_per_{{ $key }}" class="mousetrap form-control min-width50 discPer form-input-box" onfocus="handleRow({{ $key }})">
0 {{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('total') : '0.00' }}
Discount :
Additional 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->show_previous_price_history == 1)
Voucher Date Voucher no Qty Unit Price Price(Inc GST) Dis % Dis Amt Total Batch
@endif
{{-- --}}
* Stock is based on the base unit of the item
{{-- Customer Details Modal --}}
{{-- Modal --}} {{-- Modal --}} {{-- Modal --}}
@include('admin.stock-items.create-modal') @endsection @section('script') @include('admin.stock-items.create-modal-script') @endsection