format('d-m-Y');
if ($dateInMonthDmYFormat === $currentDate) {
echo 'style="background: rgb(232, 245, 231);"';
}
?>>
format('d-m-Y');
?>
|
= $startDate ?>
|
oninput="openingTPStockChange(this)"
contenteditable="true"
>= $totalPower[$groupedIndex]['opening_reading'] ?? ' ' ?> |
= $totalPower[$groupedIndex]['final_reading'] ?? ' ' ?>
|
= $totalPower[$groupedIndex]['total_reading'] ?? ' ' ?>
|
= $totalPower[$groupedIndex]['total_units'] ?? ' ' ?>
|
= $totalPower[$groupedIndex]['average_pf'] ?? ' ' ?>
|
= $totalPower[$groupedIndex]['present_pf'] ?? ' ' ?>
|
= $totalPower[$groupedIndex]['md'] ?? ' ' ?>
|
= $totalPower[$groupedIndex]['mf'] ?? ' ' ?>
|
$powerStock) { ?>
= $powerStock['date'] ?>
|
= $powerStock['machine_id'] ?>
|
oninput="openingUnitsChange(this)"
contenteditable="true"
>
= $powerStock['opening_units'] ?? " " ?>
|
= $powerStock['closing_units'] ?? " " ?>
|
= $powerStock['total_units'] ?? " " ?>
|
"-",
'closing_units' => 0,
'total_units' => 0,
];
}
// Sum values for the material
$summary["machineId_$machineId"]['opening_units'] = " ";
$summary["machineId_$machineId"]['closing_units'] = " ";
$summary["machineId_$machineId"]['total_units'] += is_numeric($powerStock['total_units']) ? $powerStock['total_units'] : 0;
} ?>