発行日:{{ Carbon::now()->format('Y').'年'.sprintf('%2d月', Carbon::now()->format('m')).sprintf('%2d日', Carbon::now()->format('d')) }}
外注作業依頼書
{{ config('const.system_parts_branch.'.Session::get('department')) }}
★納品書及び請求書には受付番号の記載をお願いいたします。 拠点名 {{ config('const.system_parts.'.(config('const.system_parts_code.'.Session::get('department')))) }}
担当者 {{ isset($purchase->order_user->name_kanji) ? $purchase->order_user->name_kanji : '' }}
@php $real_count = 0; $sub_total = 0; $total = 0; @endphp @if(is_object($purchase) && is_object($purchase->content) && $purchase->content->count() > 0) @foreach($purchase->content as $key => $content) @if(($content->work_kind == config('const.content_work_kind.out_work') || $content->work_kind == config('const.content_work_kind.out_parts')) && $content->accept_bill == config('const.accept_bill_code.yes') || $key == 0) @endif @php $real_count++; $sub_total += $content->sub_total; $total += is_numeric($content->total) ? $content->total : 0; @endphp @if($real_count == 36) @break @endif @endforeach @endif @foreach(range($real_count, 35) as $index) @endforeach
受付番号 お客様名 仕入先名
{{ is_object($params) ? $params->reception_no : '' }} {{ isset($purchase->purchase_name) ? $purchase->purchase_name : '' }} {{ config('const.honorific_type.'.config('const.honorific_type_code.mr')) }} {{ isset($purchase->request_partner->id) ? $purchase->request_partner->getFullName(1) : '' }} {{ config('const.honorific_type.'.((isset($purchase->request_partner->id) && !empty($purchase->request_partner->honorific_type)) ? $purchase->request_partner->honorific_type : config('const.honorific_type_code.you'))) }}
(住所){{ isset($params->partner->id) ? $params->partner->getFullAddress() : '' }} 納入場所{{ is_object($params) ? \App\Models\Masters\VehicleShed::findById($params->vehicle_status, 'name') : '' }}
車台番号 登録番号 エンジン型式 走行距離 初年度登録日 納入期日
{{ isset($purchase->vehicle->vehicle_info_basic->chassis_no) ? $purchase->vehicle->vehicle_info_basic->chassis_no : '' }} {{ isset($purchase->vehicle->register_no) ? $purchase->vehicle->register_no : '' }} {{ isset($purchase->vehicle->vehicle_info_basic->engine_model) ? $purchase->vehicle->vehicle_info_basic->engine_model : '' }} {{ (isset($purchase->vehicle->vehicle_info_basic->rough_travel_distance) && !is_null($purchase->vehicle->vehicle_info_basic->rough_travel_distance)) ? number_format($purchase->vehicle->vehicle_info_basic->rough_travel_distance) : '' }}km {{ isset($purchase->vehicle->vehicle_info_basic->year_type_y) ? \App\Helper\SystemHelper::convertGtJYeaMonth($purchase->vehicle->vehicle_info_basic->year_type_y, $purchase->vehicle->vehicle_info_basic->year_type_m) : '' }} {{ is_object($params) ? (empty($params->output_date) ? '' : Carbon::parse($params->output_date)->format('Y年n月j日')) : '' }}
作業CD 位置 作業名 数量 工数 単価 代金 仮単価
{{ (isset($content->work->name) && $key != 0) ? $content->work->name : '' }} {{ (isset($content->sub_category->name) && $content->work_kind == config('const.content_work_kind.main_work')) ? '【'.$content->sub_category->name.'】' : (isset($content->work_sub_category) ? Str::limit($content->work_sub_category, 60, '') : '') }} {{ empty($content->quantity) ? '' : $content->quantity }} {{ empty($content->unit_price) ? '' : number_format($content->unit_price) }} {{ empty($content->sub_total) ? '' : number_format($content->sub_total) }} {{ empty($content->original_unit_price) ? '' : number_format($content->original_unit_price) }}
合計 {{ empty($sub_total) ? '' : number_format($sub_total) }} {{ empty($total) ? '' : number_format($total) }}