From 8d2aacee80697f4cafe8dc292b115fcfd6c8b535 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 17 Nov 2026 15:59:36 +0530 Subject: [PATCH] Changed logic in process order mail report page --- app/Mail/ProcessOrderMail.php | 12 +++++++++--- resources/views/mail/process_order_report.blade.php | 8 ++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/Mail/ProcessOrderMail.php b/app/Mail/ProcessOrderMail.php index 4a401b9b..51181122 100644 --- a/app/Mail/ProcessOrderMail.php +++ b/app/Mail/ProcessOrderMail.php @@ -23,11 +23,17 @@ class ProcessOrderMail extends Mailable /** * Create a new message instance. */ - public function __construct($scheduleType,$tableData = [], $NotOkData) + // public function __construct($scheduleType,$tableData = [], $NotOkData) + // { + // $this->scheduleType = $scheduleType; + // $this->tableData = $tableData ?? []; + // $this->NotOkData = $NotOkData ?? []; + // } + + public function __construct($scheduleType,$tableData = []) { $this->scheduleType = $scheduleType; $this->tableData = $tableData ?? []; - $this->NotOkData = $NotOkData ?? []; } /** @@ -62,7 +68,7 @@ class ProcessOrderMail extends Mailable 'company' => "CRI Digital Manufacturing Solutions", 'greeting' => $greeting, 'tableData' => $this->tableData, - 'NotOkData' => $this->NotOkData, + // 'NotOkData' => $this->NotOkData, 'wishes' => "Thanks & Regards,
CRI Digital Manufacturing Solutions" ], ); diff --git a/resources/views/mail/process_order_report.blade.php b/resources/views/mail/process_order_report.blade.php index c93f34ae..90daadb7 100644 --- a/resources/views/mail/process_order_report.blade.php +++ b/resources/views/mail/process_order_report.blade.php @@ -37,6 +37,8 @@ Total Quantity Scrap Quantity SFG Number + Not Ok Status (%) + Ok Status (%) @@ -52,12 +54,14 @@ {{ $row['recQuan'] }} {{ $row['scrapQuan'] }} {{ $row['sfgNo'] }} + {{ $row['NotOkPerc'] }} + {{ $row['OkPerc'] }} @endforeach
-

Process Order Not Ok Report

+{{--

Process Order Not Ok Report

@@ -85,7 +89,7 @@ @endforeach -
+ --}}

{!! $wishes !!}