@extends('layouts.master') @section('css') @endsection @section('title') Delivery Note @endsection @section('content') @isset($accountingVoucher) @method('put') @else @endisset @csrf @isset($accountingVoucher) Edit Delivery Note @else Add Delivery Note @endisset Voucher Number @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 }} @else @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset Voucher Type Select voucher type Voucher Date Delivery Note Ledger (Cr) Select ledger Party (Dr) Select ledger Tax Type @isset($accountingVoucher) IntraState InterState (IGST) @else IntraState InterState (IGST) @endisset Price Slab Choose price slab Stock Location Choose stock location Cost Center Select Cost Center @foreach ($costCenters as $costCenter) cost_center_id == $costCenter->id ? 'selected' : '') : '' }}> {{ $costCenter->name }} @endforeach Remarks {{ isset($accountingVoucher) ? $accountingVoucher->remarks : '' }} Ship To Address {{ isset($accountingVoucher) ? $accountingVoucher->ship_to_address : '' }} @if ($companyProfile->show_date_of_supply) Date of Supply @endif @if ($companyProfile->show_vehicle_number) Vehicle Number vehicle_no_mandatory) required @endif> @endif Stock Inward/Outwards delivery_note_inward == 0 ? 'selected' : '') : '' }}> Stock Outward delivery_note_inward == 1 ? 'selected' : '') : '' }}> Stock Inward @if ($companyProfile->customer_source == 1) Customer Source Select Customer Source @foreach ($customerSources as $customerSource) customer_source == $customerSource->id ? 'selected' : '') : '' }}> {{ $customerSource->name }} @endforeach @endif Report Go Back Add Items Item Stock MRP Qty Unit Price Price(Inc GST) Gross Value Disc% Taxable Value CGST SGST IGST CESS Total @isset($accountingVoucherItems) @php $tabIndex = 0; @endphp @if (count($accountingVoucherItems) > 0) @foreach ($accountingVoucherItems as $key => $accountingVoucherItem) @php $key = $key + 1; @endphp 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 = $tabIndex + 7; @endphp @endforeach @endif @endisset {{ isset($accountingVoucherItems) ? $accountingVoucherItems->sum('total') : '0.00' }} Discount : Freight/Etc : Round Off : {{ isset($accountingVoucher) ? $accountingVoucher->round_off : '0.00' }} Grand Total : {{ isset($accountingVoucher) ? $accountingVoucher->amount : '0.00' }} Add Submit * Stock is based on the base unit of the item {{-- Print Modal --}}