@extends('layouts.app') @section('title', 'تقرير انحرافات التصنيع - '.config('app.name')) @section('breadcrumb') الرئيسية التصنيع تقرير انحرافات التصنيع @endsection @section('content')

تقرير انحرافات التصنيع

مقارنة الكميات والهدر والتكلفة المعيارية للمواد مع الترحيل الفعلي لكل أمر عمل.

التصفية

تنبيه الهدر: صفوف باللون الأحمر عندما يتجاوز الهالك الفعلي المتوسط للمتوقع بأكثر من خمس نقاط مئوية.

@forelse($runs as $row) @php /** @var \App\Models\ManufacturingRun $run */ $run = $row['run']; $scrapAlert = !empty($row['scrap_alert']); @endphp @empty @endforelse
المرجع التاريخ الحالة المنتج الماكينة كمية التام (مخطط) كمية التام (فعلي) صرف مواد (مخطط) صرف مواد (فعلي) هدر متوقع % هدر فعلي % تكلفة معيارية تكلفة فعلية الانحراف
{{ $run->reference }} {{ $run->production_date?->format('Y-m-d') ?? '—' }} @if($run->status === \App\Models\ManufacturingRun::STATUS_POSTED) مرحّل @else مسودة @endif {{ $run->finishedItem?->code }} — {{ $run->finishedItem?->name_ar }} {{ $run->machine?->code ? $run->machine->code.' — ' : '' }}{{ $run->machine?->name_ar ?? '—' }} {{ rtrim(rtrim(number_format($row['qty_planned_fg'], 4, '.', ''), '0'), '.') ?: '0' }} @if($row['qty_actual_fg'] !== null) {{ rtrim(rtrim(number_format($row['qty_actual_fg'], 4, '.', ''), '0'), '.') ?: '0' }} @else — @endif {{ rtrim(rtrim(number_format($row['planned_material_qty_sum'], 4, '.', ''), '0'), '.') ?: '0' }} @if($row['actual_material_qty_sum'] !== null) {{ rtrim(rtrim(number_format($row['actual_material_qty_sum'], 4, '.', ''), '0'), '.') ?: '0' }} @else — @endif {{ $row['expected_scrap_weighted_pct'] !== null ? number_format($row['expected_scrap_weighted_pct'], 2).'٪' : '—' }} {{ $row['actual_scrap_weighted_pct'] !== null ? number_format($row['actual_scrap_weighted_pct'], 2).'٪' : '—' }} @if($row['standard_cost'] !== null) {{ number_format($row['standard_cost'], 2) }} @else — @endif @if($row['actual_cost'] !== null) {{ number_format($row['actual_cost'], 2) }} @else — @endif @if($row['variance'] !== null) {{ $row['variance'] > 0 ? '+' : '' }}{{ number_format($row['variance'], 2) }} @else — @endif عرض
لا توجد أوامر مطابقة للفلاتر.
@if($runs->hasPages())
{{ $runs->links() }}
@endif
@endsection