@extends('print.template.checklist') @section('title', '取込エラーチェックリスト') @section('header')
≪取込エラーチェックリスト≫
作成 {{ $created_at }} {PAGENO}頁
@endsection @section('table-header')
識別ID
取込元
取引先CD
取引先名
計上日
出荷日
伝票番号
仮伝票区分
倉庫コード
倉庫名
商品コード
商品名
容量
入数
発注数
区分
行摘要
エラー項目
@endsection @section('table-details') @foreach($entities->groupBy('slip_uuid') as $entity_group) @php $header_info = $entity_group[0]; $warehouse_info = $header_info->warehouse(); @endphp
{{ $header_info->id}}
{{ \App\Enums\EExternalCollaborationPartner::from($header_info->external_collaboration_partner_type)->name()}}
{{$header_info->input_partner_code}}
{{$header_info->input_partner_name}}
{{\Carbon\Carbon::parse($header_info->order_date)->format('Y/m/d')}}
{{\Carbon\Carbon::parse($header_info->delivery_date)->format('Y/m/d')}}
{{$header_info->slip_number}}
{{$header_info->is_tentative_slip?'仮':'通常'}}
{{$header_info->warehouse?->code}}
{{$header_info->warehouse?->name}}
@foreach($entity_group as $item)
{{ $item->row_number}}
{{ $item->input_item_code}}
{{ $item->input_item_name}}
{{$item->item?->volume}}
{{ $item->item?->capacity_case}}
{{ $item->order_quantity}}
{{$item->order_quantity_type == 'PIECE'?'バラ':'ケース'}}
{{$item->input_note}}
{{-- error_zero_price--}} {{-- error_not_enough_stock--}} {{-- error_direct_delivery_not_available--}} {{-- error_item_is_out_of_trading_period--}} {{-- error_partner_is_out_of_trading_period--}} {{-- error_order_quantity_not_available--}} {{-- error_item_not_found--}} {{-- error_price_different--}} {{-- error_rare_item--}} @php $error_messages = []; //得意先関連エラー if($item->error_partner_not_found){ $error_messages[] = '得意先不明'; }else{ if($item->error_partner_is_out_of_trading_period){ $error_messages[] = '得意先取引期間外'; } if($item->error_can_register_earnings){ $error_messages[] = '売上入力不可'; } if($item->error_warehouse_not_found){ $error_messages[] = '倉庫不明'; } if($item->error_trade_type_not_found){ $error_messages[] = '取引区分不明'; } } //商品関連エラー if(!$item->error_item_not_found){ if($item->error_stock_allocation){ $error_messages[] = '在庫区分不明'; }else if($item->error_price_not_found){ $error_messages[] = '価格不明'; } else if($item->error_item_is_out_of_trading_period){ $error_messages[] = '商品取扱期間外'; }else{ //単価確認 if($item->error_zero_price){ $error_messages[] = 'ゼロ単価'; } //在庫確認 if($item->error_rare_item){ $error_messages[] = '希少商品'; }else if($item->error_order_quantity_not_available){ $error_messages[] = '受注数量区分エラー'; } //代配エラー if($item->error_direct_delivery_not_available){ $error_messages[] = '代配先商品未登録'; } } }else{ $error_messages[] = "商品不明"; } if($item->error_) @endphp {{$item->input_row_number}} @if( count($error_messages)>0) {{implode('/', $error_messages)}} @else エラーなし @endif
@endforeach
@endforeach @endsection