Merge pull request 'Added actual quantity and plan quantity in production mail report' (#1207) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Reviewed-on: #1207
This commit was merged in pull request #1207.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user