From 98c53c25a333d9bf74c1b9cec96eebfe785d4687 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 7 Apr 2026 17:42:22 +0530 Subject: [PATCH] Added final inspection status for the not ok serial number and added Expected scanned part number for all part validations --- app/Mail/InvalidQualityMail.php | 61 ++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/app/Mail/InvalidQualityMail.php b/app/Mail/InvalidQualityMail.php index 947ff06..5a32b38 100644 --- a/app/Mail/InvalidQualityMail.php +++ b/app/Mail/InvalidQualityMail.php @@ -28,10 +28,12 @@ class InvalidQualityMail extends Mailable public $greeting; public $subjectLine; + public $mExpectedValue; + public $mLinePart; public $itemCode; - public function __construct($parNo, $mProdOrder, $mplantName, $mLinePart, $mUserName, $mailType = 'InvalidPartNumber') + public function __construct($parNo, $mProdOrder, $mplantName, $mLinePart, $mUserName, $mExpectedValue, $mailType = 'InvalidPartNumber') { $this->mPartNo = $parNo; $this->mProdOrder = $mProdOrder; @@ -39,6 +41,7 @@ class InvalidQualityMail extends Mailable $this->mLinePart = $mLinePart; $this->mUserName = $mUserName; $this->mailType = $mailType; + $this->mExpectedValue = $mExpectedValue; } public function envelope(): Envelope @@ -57,6 +60,12 @@ class InvalidQualityMail extends Mailable case 'InvalidPartNumber5': $this->subjectLine = "Quality Part Validation ({$this->mplantName})"; break; + case 'FinalInspectionNotOk': + $this->subjectLine = "Quality Part Validation Inspection Status ({$this->mplantName})"; + break; + case 'InvalidTubeStickerPump': + $this->subjectLine = "Quality Part Validation ({$this->mplantName})"; + break; case 'InvalidPartNumber': default: $this->subjectLine = "Quality Part Validation ({$this->mplantName})"; @@ -80,6 +89,7 @@ class InvalidQualityMail extends Mailable Line Name: {$this->mLinePart}
Production Order: {$this->mProdOrder}
Scanned Part Number 2: {$this->mPartNo}
+ Expected Scanned Part Number 2: {$this->mExpectedValue}
Employee Code: {$this->mUserName}
"; break; @@ -91,6 +101,7 @@ class InvalidQualityMail extends Mailable Line Name: {$this->mLinePart}
Production Order: {$this->mProdOrder}
Scanned Part Number 3: {$this->mPartNo}
+ Expected Scanned Part Number 2: {$this->mExpectedValue}
Employee Code: {$this->mUserName}
"; break; @@ -102,6 +113,7 @@ class InvalidQualityMail extends Mailable Line Name: {$this->mLinePart}
Production Order: {$this->mProdOrder}
Scanned Part Number 4: {$this->mPartNo}
+ Expected Scanned Part Number 2: {$this->mExpectedValue}
Employee Code: {$this->mUserName}
"; break; @@ -113,6 +125,52 @@ class InvalidQualityMail extends Mailable Line Name: {$this->mLinePart}
Production Order: {$this->mProdOrder}
Scanned Part Number 5: {$this->mPartNo}
+ Expected Scanned Part Number 2: {$this->mExpectedValue}
+ Employee Code: {$this->mUserName}
+ "; + break; + case 'FinalInspectionNotOk': + $this->greeting = " + Dear Sir/Madam,

+ Please note that the final inspection is not ok for scanned serial number.
+ Plant: {$this->mplantName}
+ Line Name: {$this->mLinePart}
+ Production Order: {$this->mProdOrder}
+ Serial Number: {$this->mPartNo}
+ Final Inspection :Not OK
+ Employee Code: {$this->mUserName}
+ "; + break; + case 'InvalidTubeStickerPump': + $this->greeting = " + Dear Sir/Madam,

+ Please note that the scanned tube sticker pump serial number appears to be incorrect.
+ Plant: {$this->mplantName}
+ Line Name: {$this->mLinePart}
+ Production Order: {$this->mProdOrder}
+ Scanned Tube Pump QR: {$this->mPartNo}
+ Employee Code: {$this->mUserName}
+ "; + break; + case 'InvalidTubeStickerMotor': + $this->greeting = " + Dear Sir/Madam,

+ Please note that the scanned tube sticker motor serial number appears to be incorrect.
+ Plant: {$this->mplantName}
+ Line Name: {$this->mLinePart}
+ Production Order: {$this->mProdOrder}
+ Scanned Tube Motor QR: {$this->mPartNo}
+ Employee Code: {$this->mUserName}
+ "; + break; + case 'InvalidTubeStickerPumpset': + $this->greeting = " + Dear Sir/Madam,

+ Please note that the scanned tube sticker pumpset serial number appears to be incorrect.
+ Plant: {$this->mplantName}
+ Line Name: {$this->mLinePart}
+ Production Order: {$this->mProdOrder}
+ Scanned Tube Pumpset QR: {$this->mPartNo}
Employee Code: {$this->mUserName}
"; break; @@ -125,6 +183,7 @@ class InvalidQualityMail extends Mailable Line Name: {$this->mLinePart}
Production Order: {$this->mProdOrder}
Scanned Part Number 1: {$this->mPartNo}
+ Expected Scanned Part Number 1: {$this->mExpectedValue}
Employee Code: {$this->mUserName}
"; break;