1
0
forked from poc/pds

Added actual quantity and plan quantity in production mail report

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) {