@extends('layouts.master') @section('css') @endsection @section('title') Stock Journal @endsection @section('content') @isset($inventoryVoucher) @method('put') @else @endisset @csrf @isset($inventoryVoucher) Edit Stock Journal @else Add Stock Journal @endisset @isset($inventoryVoucher) Go Back @endisset Voucher Number @isset($inventoryVoucher) @if (str_contains($inventoryVoucher->voucher_number, '-')) {{ explode('-', $inventoryVoucher->voucher_number)[0] }} @else @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset Voucher Type Select voucher type Voucher Date Remarks {{ isset($inventoryVoucher) ? $inventoryVoucher->remarks : '' }} Note* : Extra consumptions/Buy products are added to be last and Extra consumptions only added after destination items. Source/Input Location Item Qty Unit Price Total @isset($sourceInventoryVoucherItems) @if (count($sourceInventoryVoucherItems) > 0) @foreach ($sourceInventoryVoucherItems as $key => $inventoryVoucherItem) @php $key = $key + 1; @endphp Select location @foreach ($stockLocations as $stockLocation) stock_location_id == $stockLocation->id ? 'selected' : '') : '' }}> {{ $stockLocation->name }} @endforeach Select item {{ $inventoryVoucherItem->stockItem->name }} unit_id == $inventoryVoucherItem->unit->id ? 'selected' : '') : '' }}> {{ $inventoryVoucherItem->unit->symbol }} @endforeach @endif @endisset {{ isset($sourceInventoryVoucherItems) ? number_format($sourceInventoryVoucherItems->sum('total'), 2) : '0.00' }} Add Destination/Output Location Item Qty Unit Cost Total @isset($destinationInventoryVoucherItems) @if (count($destinationInventoryVoucherItems) > 0) @foreach ($destinationInventoryVoucherItems as $key => $inventoryVoucherItem) @php $key = $key + 1; @endphp Select location @foreach ($stockLocations as $stockLocation) stock_location_id == $stockLocation->id ? 'selected' : '') : '' }}> {{ $stockLocation->name }} @endforeach Select item {{ $inventoryVoucherItem->stockItem->name }} unit_id == $inventoryVoucherItem->unit->id ? 'selected' : '') : '' }}> {{ $inventoryVoucherItem->unit->symbol }} @endforeach @endif @endisset {{ isset($destinationInventoryVoucherItems) ? number_format($destinationInventoryVoucherItems->sum('total'), 2) : '0.00' }} Add Submit @endsection @section('script')
Note* : Extra consumptions/Buy products are added to be last and Extra consumptions only added after destination items.