Changed logic in production mail report for efficiency colour
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 24s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 18s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 53s
Laravel Pint / pint (pull_request) Successful in 25m21s
Laravel Larastan / larastan (pull_request) Failing after 27m14s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 24s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 18s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 53s
Laravel Pint / pint (pull_request) Successful in 25m21s
Laravel Larastan / larastan (pull_request) Failing after 27m14s
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
|
||||
if ((float) $planQuantity == 0 && (float) $actualQuantity == 0)
|
||||
{
|
||||
return '#4caf50';
|
||||
return null;
|
||||
}
|
||||
|
||||
$efficiency = (float) $value;
|
||||
@@ -171,7 +171,8 @@
|
||||
return '#ff4d4d'; // red
|
||||
} elseif ($efficiency < 95) {
|
||||
return '#ffd633'; // yellow
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
return '#4caf50'; // green
|
||||
}
|
||||
};
|
||||
@@ -218,8 +219,15 @@
|
||||
{{-- <td style="text-align:center; border:1px solid #444; padding:8px;">
|
||||
{{ $row['dayShiftEfficiency'] }}
|
||||
</td> --}}
|
||||
<td style="text-align:center; border:1px solid #444; padding:8px; background-color: {{ $dayEfficiencyColor }}; color: #fff; font-weight: bold;">
|
||||
|
||||
{{-- <td style="text-align:center; border:1px solid #444; padding:8px; background-color: {{ $dayEfficiencyColor }}; color: #fff; font-weight: bold;">
|
||||
{{ $row['dayShiftEfficiency'] }}
|
||||
</td> --}}
|
||||
|
||||
<td style="text-align: center; vertical-align: middle; border: 1px solid #444; padding: 8px; background-color: {{ $dayEfficiencyColor }}; color: #fff; font-weight: bold;">
|
||||
<div style="text-align: center; width: 100%;">
|
||||
{{ $row['dayShiftEfficiency'] }}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td style="text-align:center; border:1px solid #444; padding:8px;">
|
||||
@@ -234,8 +242,14 @@
|
||||
{{ $row['nightShiftEfficiency'] }}
|
||||
</td> --}}
|
||||
|
||||
<td style="text-align:center; border:1px solid #444; padding:8px; background-color: {{ $nightEfficiencyColor }}; color: #fff; font-weight: bold;">
|
||||
{{-- <td style="text-align:center; border:1px solid #444; padding:8px; background-color: {{ $nightEfficiencyColor }}; color: #fff; font-weight: bold;">
|
||||
{{ $row['nightShiftEfficiency'] }}
|
||||
</td> --}}
|
||||
|
||||
<td style="text-align: center; vertical-align: middle; border: 1px solid #444; padding: 8px; background-color: {{ $nightEfficiencyColor }}; color: #fff; font-weight: bold;">
|
||||
<div style="text-align: center; width: 100%;">
|
||||
{{ $row['nightShiftEfficiency'] }}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td style="text-align:center; border:1px solid #444; padding:8px;">
|
||||
@@ -253,7 +267,9 @@
|
||||
</td> --}}
|
||||
|
||||
<td style="text-align:center; border:1px solid #444; padding:8px; background-color: {{ $efficiencyColor }}; color: #fff; font-weight: bold;">
|
||||
{{ $row['efficiency'] }}
|
||||
<div style="text-align: center;">
|
||||
{{ $row['efficiency'] }}
|
||||
</div>
|
||||
</td>
|
||||
<td style="text-align:center; border:1px solid #444; padding:8px;">
|
||||
{{ $row['nonPlannedQuantity'] }}
|
||||
|
||||
Reference in New Issue
Block a user