@extends('layouts.master') @section('css') @include('admin.stock-items.create-modal-css') @endsection @section('title') Purchase @endsection @section('content')
@method('put') @csrf
Edit Purchase
@if ($nextVoucherId != null) Next @endif @if ($previousVoucherId != null) Previous @endif
@if (str_contains($accountingVoucher->voucher_number, '-')) @php $explode = explode('-', $accountingVoucher->voucher_number); $voucherNumber = end($explode); $prefix = array_pop($explode); $prefix = implode('-', $explode); @endphp {{ $prefix }} @else @endif
without_gst == 1 ? 'checked' : '' }} onchange="toggleGst()">
Report
Purchase
Price(Excl Tax)
Purchase
Price(Incl Tax)
Gst (%) Cess (%)
Add Items
@if (count($accountingVoucherItems) > 0) @php $tabIndex = 0; @endphp @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp @php $tabIndex += 8; @endphp @endforeach @endif
SN    Item Stock MRP Qty Unit Price Gross Value Disc% Disc Amt Ad.Disc% Rebate Ad.Cost LC LC Inc Gst Pre.LC Price Slab Total
{{ $key }}
---
@php $priceSlab = \App\Models\StockItemPriceSlab::where( 'business_key', Auth::user()->business_key, ) ->where( 'stock_item_id', $accountingVoucherItem->stock_item_id, ) ->where('unit_id', $accountingVoucherItem->unit_id) ->first(); if ($priceSlab) { $totalTax = ($accountingVoucherItem->stockItem->getGst( $accountingVoucher->voucher_date, ) + $accountingVoucherItem->stockItem->getCess( $accountingVoucher->voucher_date, )) / 100; $priceSlabPrice = round( $priceSlab->selling_price + $priceSlab->selling_price * $totalTax, 3, ); } else { $priceSlabPrice = 0; } @endphp
{{ $accountingVoucherItems->sum('total') }}
TCS : tcs > 0.0 ? 'checked' : '' }} id="tcs">
{{ $accountingVoucher->tcs }}
Discount :
Additional Discount : @if (Auth::user()->company_profile->show_freight)
Freight/Etc :
@endif @isset($accountingVoucher) @foreach ($accountingVoucher->accountingVoucherLedgers as $accountingVoucherLedger) @endforeach @endisset
amount }}>
Round Off :
{{ $accountingVoucher->round_off }}
Grand Total :
{{ $accountingVoucher->amount }}
* Stock is based on the base unit of the item
{{-- Modal --}} {{-- Print Modal --}} {{-- Price Slab Update Modal --}}
@include('admin.stock-items.create-modal') @endsection @section('script') @include('admin.stock-items.create-modal-script') @endsection