Added actual quantity and plan quantity in production mail report
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 2m39s
Laravel Larastan / larastan (pull_request) Failing after 5m13s

This commit is contained in:
dhanabalan
2026-10-09 15:39:51 +05:30
parent 5f8132ab39
commit bdb3163998

View File

@@ -158,7 +158,13 @@
<tbody>
@foreach($tableData as $row)
@php
$getEfficiencyColor = function ($value) {
$getEfficiencyColor = function ($value, $planQuantity, $actualQuantity) {
if ((float) $planQuantity == 0 && (float) $actualQuantity == 0)
{
return '#4caf50';
}
$efficiency = (float) $value;
if ($efficiency < 80) {