@extends('layouts.master') @section('css') @endsection @section('title') Purchase @endsection @section('content') @method('put') @csrf Edit Purchase Voucher Number @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 Voucher Type Select voucher type Voucher Date Purchase Ledger (Dr) Select ledger Party (Cr) Select ledger {{ $accountingVoucher->creditLedger->name }} Tax Type IntraState InterState (IGST) Stock Location Choose stock location Supplier Invoice No Supplier Invoice Date Cost Center Select Cost Center @foreach ($costCenters as $costCenter) cost_center_id == $costCenter->id ? 'selected' : '') : '' }}> {{ $costCenter->name }} @endforeach Remarks {{ $accountingVoucher->remarks }} Report Go Back Purchase Price(Excl Tax) Purchase Price(Incl Tax) Gst (%) Cess (%) Add Items SN @if (Auth::user()->company_profile->show_item_code_in_sales) Item Code @endif Item Stock MRP Qty Unit Price Gross Value Disc% Disc Amt Total @if (count($accountingVoucherItems) > 0) @php $tabIndex = 0; @endphp @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp {{ $key }} @if (Auth::user()->company_profile->show_item_code_in_sales) @endif Select item {{ $accountingVoucherItem->stockItem->name }} --- @foreach ($accountingVoucherItem->units as $unit) unit_id == $unit->id ? 'selected' : '' }}> {{ $unit->symbol }} @endforeach {{-- unit_id == $accountingVoucherItem->unit->id ? 'selected' : '' }}> {{ $accountingVoucherItem->unit->symbol }} --}} @php $tabIndex += 6; @endphp @endforeach @endif @if (Auth::user()->company_profile->show_item_code_in_sales) @endif {{ $accountingVoucherItems->sum('total') }} TCS : tcs > 0.0 ? 'checked' : '' }} id="tcs"> {{ $accountingVoucher->tcs }} Discount : Additional Discount : Freight/Etc : Round Off : {{ $accountingVoucher->round_off }} Grand Total : {{ $accountingVoucher->amount }} Add Submit * Stock is based on the base unit of the item {{-- Modal --}}