@php require_frontend_packages(['datatables', 'summernote', 'animatecss', 'bwipjs']); @endphp @extends('layout.default') @section('title', $__t('Shopping list')) @push('pageScripts') @endpush @section('content')
{{ $__t('Product') }} / {{ $__t('Note') }} | {{ $__t('Amount') }} | {{ $__t('Product group') }} | Hidden status | {{ $__t('Last price (Unit)') }} | {{ $__t('Last price (Total)') }} | {{ $__t('Default store') }} | {{ $__t('Barcodes') }} | @include('components.userfields_thead', array( 'userfields' => $userfields )) @include('components.userfields_thead', array( 'userfields' => $productUserfields ))|
---|---|---|---|---|---|---|---|---|
product_id)) data-toggle="tooltip" title="{{ $__t('Add this item to stock') }}" @endif> |
@if(!empty($listItem->product_id)) {{ $listItem->product_name }} @endif{!! nl2br($listItem->note ?? '') !!} |
@if(!empty($listItem->product_id))
@php
$listItem->amount_origin_qu = $listItem->amount;
$product = FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id);
$productQuConversions = FindAllObjectsInArrayByPropertyValue($quantityUnitConversionsResolved, 'product_id', $product->id);
$productQuConversions = FindAllObjectsInArrayByPropertyValue($productQuConversions, 'from_qu_id', $product->qu_id_stock);
$productQuConversion = FindObjectInArrayByPropertyValue($productQuConversions, 'to_qu_id', $listItem->qu_id);
if ($productQuConversion)
{
$listItem->amount = $listItem->amount * $productQuConversion->factor;
}
@endphp
@endif
{{$listItem->amount}} {{ $listItem->amount }} @if(!empty($listItem->product_id)){{ $__n($listItem->amount, $listItem->qu_name, $listItem->qu_name_plural, true) }}@endif | @if(!empty($listItem->product_group_name)) {{ $listItem->product_group_name }} @else {{ $__t('Ungrouped') }} @endif | @if(FindObjectInArrayByPropertyValue($missingProducts, 'id', $listItem->product_id) !== null) belowminstockamount @endif @if($listItem->done == 1) xxDONExx @else xxUNDONExx @endif | {{ $listItem->last_price_unit }} | {{ $listItem->last_price_total }} | {{ $listItem->default_shopping_location_name }} | @if($listItem->product_barcodes != null) @foreach(explode(',', $listItem->product_barcodes) as $barcode) @if(!empty($barcode)) @endif @endforeach @endif | @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $listItem->id) )) @include('components.userfields_tbody', array( 'userfields' => $productUserfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($productUserfieldValues, 'object_id', $listItem->product_id) ))
{{ $__t('Product') }} / {{ $__t('Note') }} | {{ $__t('Amount') }} | {{ $__t('Product group') }} | @include('components.userfields_thead', array( 'userfields' => $userfields )) @include('components.userfields_thead', array( 'userfields' => $productUserfields )) @include('components.userfields_thead', array( 'userfields' => $productGroupUserfields ))
---|---|---|
@if(!empty($listItem->product_id)) {{ $listItem->product_name }} @endif{!! nl2br($listItem->note ?? '') !!} |
{{ $listItem->amount }} @if(!empty($listItem->product_id)){{ $__n($listItem->amount, $listItem->qu_name, $listItem->qu_name_plural, true) }}@endif | @if(!empty($listItem->product_group_name)) {{ $listItem->product_group_name }} @else {{ $__t('Ungrouped') }} @endif | @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $listItem->id) )) @include('components.userfields_tbody', array( 'userfields' => $productUserfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($productUserfieldValues, 'object_id', $listItem->product_id) )) @include('components.userfields_tbody', array( 'userfields' => $productGroupUserfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($productGroupUserfieldValues, 'object_id', $listItem->product_group_id) ))