Added actual quantity and plan quantity in production mail report #1207
@@ -158,7 +158,13 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($tableData as $row)
|
@foreach($tableData as $row)
|
||||||
@php
|
@php
|
||||||
$getEfficiencyColor = function ($value) {
|
$getEfficiencyColor = function ($value, $planQuantity, $actualQuantity) {
|
||||||
|
|
||||||
|
if ((float) $planQuantity == 0 && (float) $actualQuantity == 0)
|
||||||
|
{
|
||||||
|
return '#4caf50';
|
||||||
|
}
|
||||||
|
|
||||||
$efficiency = (float) $value;
|
$efficiency = (float) $value;
|
||||||
|
|
||||||
if ($efficiency < 80) {
|
if ($efficiency < 80) {
|
||||||
|
|||||||
Reference in New Issue
Block a user