@extends('layouts.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
@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 edit_voucher_number) @else readonly @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_price_slab == 1)
@endif
@if ($companyProfile->show_cost_center == 1)
@endif
@if ($companyProfile->show_shipping_address == 1)
@endif @if ($companyProfile->show_date_of_supply)
@endif @if ($companyProfile->customer_source == 1)
@endif @if ($companyProfile->show_vehicle_number)
vehicle_no_mandatory) required @endif>
@endif @if ($companyProfile->show_mode_of_transport)
@endif @if ($companyProfile->show_customer_details)
company_profile->customer_details_required == 1) required @endif>
company_profile->customer_details_required == 1) required @endif>
@endif @if (Auth::user()->company_profile->use_bill_wise_receipt)
{{--
--}}
@endif
Report
Add Items
{{-- @foreach ($categoryGroups as $categoryGroup)
@endforeach --}}
{{--
--}}
Mrp:
Available Stock:
{{--
Add Items
--}}
@if (Auth::user()->company_profile->show_foc == 1) @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_foc == 1) @php $focqty = \App\models\AccountingVoucherItem::where( 'foc_id', $accountingVoucherItem->id, ) ->where( 'stock_item_id', $accountingVoucherItem->stock_item_id, ) ->where( 'unit_id', $accountingVoucherItem->unit_id, ) ->first(); $focqty = $focqty ? $focqty->quantity : ''; @endphp @endif @php $tabIndex = $tabIndex + 9; @endphp @endforeach @endif @endisset @if (Auth::user()->company_profile->show_foc == 1) @endif
SN    Item MRP Qty UnitFocPrice Price(Inc GST) Gross Value Disc% DiscAmt Taxable Value 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' }}
@isset($accountingVoucher) @foreach ($accountingVoucher->accountingVoucherLedgers as $accountingVoucherLedger) @endforeach @endisset
Discount :
Freight/Etc :
amount }}>
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 --}} {{-- Ledger Create Modal --}} {{-- Quick Receipt Modal --}} {{-- RewardModal --}} @include('admin.stock-items.multiple-create-modal') @endsection @section('script') @include('admin.stock-items.multiple-create-modal-script') @endsection