@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
@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
@if ($companyProfile->show_cost_center == 1)
@endif
@if ($companyProfile->show_shipping_address == 1)
@endif @if ($companyProfile->show_date_of_supply)
@endif @if ($companyProfile->show_vehicle_number)
vehicle_no_mandatory) required @endif>
@endif
Report
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 $totalTax = $accountingVoucherItem->cgst + $accountingVoucherItem->sgst + $accountingVoucherItem->igst + $accountingVoucherItem->cess; @endphp @php $tabIndex = $tabIndex + 8; @endphp @endforeach @endif @endisset {{-- --}} @if (Auth::user()->company_profile->show_foc == 1) @endif
SN    Item Batch Expiry SchemeStock MRP Qty UnitFocPrice Price(Inc GST) Gross Value Disc% Taxable Value Tax Total Remarks
{{ $key }}
---
batch_id != null) @php $lastInward = App\Models\StockLedger::where([ 'business_key' => Auth::user()->business_key, 'stock_item_id' => $accountingVoucherItem->stock_item_id, 'batch_id' => $accountingVoucherItem->batch_id, ]) ->where(function ($query) { $query->where('batch_mrp', '!=', null); }) ->orderBy('date', 'desc') ->first(); @endphp @if ($lastInward) value="{{ $lastInward->batch_mrp }}" @else value="{{ $accountingVoucherItem->stockItem->mrp }}" @endif @else value="{{ $accountingVoucherItem->stockItem->mrp }}" @endif id="mrp_{{ $key }}" readonly class="form-control min-width60 form-input-box">
{{ 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 --}} {{-- Batch Modal --}} {{-- Price History Modal --}} @endsection @section('script') @endsection