@extends('layout.app')
@section('title', 'Edit Purchase Voucher')
@push('header_script')
@endpush
@section('content')
{!! Form::open([
'route' => ['purchase-voucher.update', $purchaseVoucher->id],
'onsubmit' => 'BtnSubmit.disabled = true',
'class' => 'needs-validation',
'id' => 'purchaseVoucherForm',
'method' => 'put',
'autocomplete' => 'off',
'files' => true,
]) !!}
{{-- VOUCHER DETAILS CARD --}}
{{-- PARTY DETAILS --}}
Party Details
Party Name{{ $partyDetails ? $partyDetails->party_name : '-' }}
GST No{{ $partyDetails ? $partyDetails->gst_no : 'Not registered' }}
Mobile{{ $partyDetails ? $partyDetails->mobile_no : '-' }}
Address{{ $partyDetails ? $partyDetails->address : '-' }}
City/State{{ $partyDetails ? ($partyDetails->city->city_name ?? '') . ' / ' . ($partyDetails->state->state_name ?? '') : '-' }}
GST Type{{ $partyDetails ? $partyDetails->register_type : '-' }}
Opening Balance—
{{-- INFORMATION PANEL --}}
Information Panel
Select Party *
{!! Form::select(
'party_account_ledger_id',
['' => '--Select--'] + $partyLedger,
$purchaseVoucher->party_account_ledger_id,
['class' => 'form-control select2', 'id' => 'party_account_ledger_id', 'required'],
) !!}
Balance:
{{ $errors->first('party_account_ledger_id') }}
@php
$is_party_cash_bank = 'no';
if (
$partyDetails?->accountLedger?->accountGroup?->a_group_name == 'Cash In Hand' ||
$partyDetails?->accountLedger?->accountGroup?->a_group_name == 'Bank Accounts'
) {
$is_party_cash_bank = 'yes';
}
@endphp
Place of Supply / Tax Type
—
Document Upload
@if ($purchaseVoucher->doc)
View Doc
@endif
{{ $errors->first('doc') }}
{{-- SELECTED ITEM DETAILS --}}
| Item Name * |
HSN |
@if($itemSettings->batch_tracking_enabled)
Batch No. |
@endif
@if($itemSettings->expiry_date_enabled)
Expiry |
@endif
Qty * |
Rate/Unit * |
Taxable |
GST% |
CGST |
SGST |
IGST |
Total * |
|
@php $i = 10; @endphp
@foreach ($purchaseVoucher->voucherDetails as $details)
|
{!! Form::select('product_id[]', ['' => '--Select--'] + $product, $details->product_id, [
'class' => 'form-control select2 item-product-select',
'id' => "product_id_$i",
'required',
]) !!}
|
{{ $details->product->hsn_code ?? '—' }} |
@if($itemSettings->batch_tracking_enabled)
|
@endif
@if($itemSettings->expiry_date_enabled)
|
@endif
|
|
|
{!! Form::select('tax_group_id[]', ['' => '--Select--'] + $taxGroup, $details->tax_group_id, [
'class' => 'form-control select2 taxGroupIds item-tax-group',
'id' => "tax_group_id_$i",
'required',
]) !!}
|
|
|
|
|
@if (!$loop->first)
@endif
|
@php $i++; @endphp
@endforeach
{{-- OTHER CHARGES & DISCOUNTS --}}
Other Charges & Discounts
Before GST adds to (or reduces) taxable value and is taxed. After GST is added directly to invoice total, untaxed. Use negative values for discounts.
{{-- CALCULATION SUMMARY & SUBMIT --}}
Remarks & Payments
{{ $errors->first('remark') }}
@php $k = 10; @endphp
@foreach ($purchaseVoucher->voucherPayment as $payment)
@php $k++; @endphp
@endforeach
Item Taxable Value₹0.00
Other Charges Taxable₹0.00
Total Taxable Value₹0.00
CGST₹0.00
SGST₹0.00
IGST₹0.00
Other Charges (after GST)₹0.00
Invoice Total₹0.00
Total Paid Amount
Remaining Balance
RCM Payable to Govt.₹0.00
Self-assessed — not part of invoice total
{!! Form::close() !!}
@include('common.modal.common_party')
@include('common.modal.product')
@include('common.modal.ledger')