Changed logic in process order mail report page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 7m39s
Laravel Larastan / larastan (pull_request) Failing after 8m57s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 7m39s
Laravel Larastan / larastan (pull_request) Failing after 8m57s
This commit is contained in:
@@ -23,11 +23,17 @@ class ProcessOrderMail extends Mailable
|
|||||||
/**
|
/**
|
||||||
* Create a new message instance.
|
* 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->scheduleType = $scheduleType;
|
||||||
$this->tableData = $tableData ?? [];
|
$this->tableData = $tableData ?? [];
|
||||||
$this->NotOkData = $NotOkData ?? [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,7 +68,7 @@ class ProcessOrderMail extends Mailable
|
|||||||
'company' => "CRI Digital Manufacturing Solutions",
|
'company' => "CRI Digital Manufacturing Solutions",
|
||||||
'greeting' => $greeting,
|
'greeting' => $greeting,
|
||||||
'tableData' => $this->tableData,
|
'tableData' => $this->tableData,
|
||||||
'NotOkData' => $this->NotOkData,
|
// 'NotOkData' => $this->NotOkData,
|
||||||
'wishes' => "Thanks & Regards,<br>CRI Digital Manufacturing Solutions"
|
'wishes' => "Thanks & Regards,<br>CRI Digital Manufacturing Solutions"
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -37,6 +37,8 @@
|
|||||||
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Total Quantity</th>
|
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Total Quantity</th>
|
||||||
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Scrap Quantity</th>
|
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Scrap Quantity</th>
|
||||||
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">SFG Number</th>
|
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">SFG Number</th>
|
||||||
|
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Not Ok Status (%)</th>
|
||||||
|
<th style="text-align: center; border: 1px solid #444; padding: 8px; background: #f2f2f2;">Ok Status (%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -52,12 +54,14 @@
|
|||||||
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['recQuan'] }}</td>
|
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['recQuan'] }}</td>
|
||||||
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['scrapQuan'] }}</td>
|
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['scrapQuan'] }}</td>
|
||||||
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['sfgNo'] }}</td>
|
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['sfgNo'] }}</td>
|
||||||
|
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['NotOkPerc'] }}</td>
|
||||||
|
<td style="border: 1px solid #444; padding: 8px; text-align: center;">{{ $row['OkPerc'] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<p><b><u>Process Order Not Ok Report</u></b><p>
|
{{-- <p><b><u>Process Order Not Ok Report</u></b><p>
|
||||||
<table style="table-layout: auto; width: 100%; border-collapse: collapse;">
|
<table style="table-layout: auto; width: 100%; border-collapse: collapse;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -85,7 +89,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table> --}}
|
||||||
|
|
||||||
<p>{!! $wishes !!}</p>
|
<p>{!! $wishes !!}</p>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user