stock module latest today vadivel J 18-02-2025
This commit is contained in:
parent
4343a76f4c
commit
7429251ec5
@ -191,7 +191,7 @@
|
|||||||
background-color: #50bbd9; /* Green background */
|
background-color: #50bbd9; /* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
padding: 10px;
|
padding: 1px;
|
||||||
white-space: normal; /* Allows text to wrap */
|
white-space: normal; /* Allows text to wrap */
|
||||||
word-wrap: break-word; /* Breaks long words if needed */
|
word-wrap: break-word; /* Breaks long words if needed */
|
||||||
text-align: center; /* Centers text for better alignment */
|
text-align: center; /* Centers text for better alignment */
|
||||||
@ -221,11 +221,15 @@
|
|||||||
max-width: 100px;
|
max-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.location{
|
||||||
|
min-width:200px;
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description{
|
||||||
|
min-width:400px;
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@ -264,7 +268,7 @@ foreach ($period as $day) {
|
|||||||
$timeOptions = [];
|
$timeOptions = [];
|
||||||
|
|
||||||
foreach (["AM", "PM"] as $meridian) {
|
foreach (["AM", "PM"] as $meridian) {
|
||||||
for ($hour = 0; $hour < 12; $hour++) {
|
for ($hour = 0; $hour < 12; $hour++) {
|
||||||
for ($minute = 0; $minute < 60; $minute += 15) {
|
for ($minute = 0; $minute < 60; $minute += 15) {
|
||||||
$formattedHour = $hour === 0 ? 12 : $hour;
|
$formattedHour = $hour === 0 ? 12 : $hour;
|
||||||
$timeOptions[] = sprintf("%02d:%02d %s", $formattedHour, $minute, $meridian);
|
$timeOptions[] = sprintf("%02d:%02d %s", $formattedHour, $minute, $meridian);
|
||||||
@ -380,15 +384,25 @@ $timeOtions[] = "12:00 AM";
|
|||||||
<!-- th:eq(15) -->
|
<!-- th:eq(15) -->
|
||||||
<th class="celda_encabezado_general" rowspan="2">Panel Gas Per Ton </th>
|
<th class="celda_encabezado_general" rowspan="2">Panel Gas Per Ton </th>
|
||||||
<!-- th:eq(16) -->
|
<!-- th:eq(16) -->
|
||||||
<th class="celda_encabezado_general" colspan="<?=count($wcsSupplierList)?>">Incoming Sand/ Lump details </th>
|
|
||||||
|
<?php if(count($wcsSupplierList)>0){?>
|
||||||
|
<th class="celda_encabezado_general" colspan="<?=count($wcsSupplierList)?>">Incoming Sand/ Lump details </th>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<!-- th:eq(17) -->
|
<!-- th:eq(17) -->
|
||||||
<th class="celda_encabezado_general" colspan="3">ED details </th>
|
<th class="celda_encabezado_general" colspan="3">ED details </th>
|
||||||
<!-- th:eq(18) -->
|
<!-- th:eq(18) -->
|
||||||
<th class="celda_encabezado_general" colspan="2">TRP Sand </th>
|
<th class="celda_encabezado_general" colspan="2">TRP Sand </th>
|
||||||
|
|
||||||
<th class="celda_encabezado_general" rowspan="2">Coating </th>
|
<th class="celda_encabezado_general" rowspan="2">Coating </th>
|
||||||
|
|
||||||
<!-- th:eq(19) -->
|
<!-- th:eq(19) -->
|
||||||
<th class="celda_encabezado_general" colspan="<?=count($crsClientList)?>">Usage </th>
|
|
||||||
|
<?php if(count($crsClientList)>0){?>
|
||||||
|
<th class="celda_encabezado_general" colspan="<?=count($crsClientList)?>">Usage </th>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
<!-- th:eq(20) -->
|
<!-- th:eq(20) -->
|
||||||
<th class="celda_encabezado_general" colspan="2">Water </th>
|
<th class="celda_encabezado_general" colspan="2">Water </th>
|
||||||
<!-- th:eq(21) -->
|
<!-- th:eq(21) -->
|
||||||
@ -410,8 +424,7 @@ $timeOtions[] = "12:00 AM";
|
|||||||
<!-- th:eq(29) -->
|
<!-- th:eq(29) -->
|
||||||
<th class="celda_encabezado_general" rowspan="2">ED +20 Waste </th>
|
<th class="celda_encabezado_general" rowspan="2">ED +20 Waste </th>
|
||||||
<!-- th:eq(30) -->
|
<!-- th:eq(30) -->
|
||||||
<th class="celda_encabezado_general" rowspan="2">Cyclone Waste </th>
|
<th class="celda_encabezado_general" rowspan="2">Cyclone Waste </th>
|
||||||
<!-- th:eq(31) -->
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -552,14 +565,14 @@ $timeOtions[] = "12:00 AM";
|
|||||||
<!-- totalHours -->
|
<!-- totalHours -->
|
||||||
<!-- td:eq(3) -->
|
<!-- td:eq(3) -->
|
||||||
<td class="celda_normal trpProductionStock totalHours"
|
<td class="celda_normal trpProductionStock totalHours"
|
||||||
data-id="<?= $trpProductionDetail['date'] ?> totalHours">
|
data-id="<?=$trpProductionDetail['date']?> totalHours">
|
||||||
<?= $trpProductionDetail['totalHours'] ?>
|
<?= $trpProductionDetail['totalHours'] ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- coldStart -->
|
<!-- coldStart -->
|
||||||
<!-- td:eq(4) -->
|
<!-- td:eq(4) -->
|
||||||
<td class="celda_normal trpProductionStock coldStart"
|
<td class="celda_normal trpProductionStock coldStart"
|
||||||
data-id="<?= $trpProductionDetail['date'] ?> coldStart"
|
data-id="<?=$trpProductionDetail['date']?> coldStart"
|
||||||
oninput="trpStockChange(this)"
|
oninput="trpStockChange(this)"
|
||||||
contenteditable="true">
|
contenteditable="true">
|
||||||
<?= $trpProductionDetail['coldStart'] ?>
|
<?= $trpProductionDetail['coldStart'] ?>
|
||||||
@ -706,7 +719,7 @@ $timeOtions[] = "12:00 AM";
|
|||||||
<!-- trpProduction -->
|
<!-- trpProduction -->
|
||||||
<!-- td:eq(27) -->
|
<!-- td:eq(27) -->
|
||||||
<td class="celda_normal trpProductionStock trpProduction"
|
<td class="celda_normal trpProductionStock trpProduction"
|
||||||
data-id="<?= $trpProductionDetail['date'] ?> trpProduction"
|
data-id="<?= $trpProductionDetail['date']?> trpProduction"
|
||||||
oninput="trpStockChange(this)"
|
oninput="trpStockChange(this)"
|
||||||
contenteditable="true">
|
contenteditable="true">
|
||||||
<?= $trpProductionDetail['trpProduction'] ?>
|
<?= $trpProductionDetail['trpProduction'] ?>
|
||||||
@ -1020,14 +1033,26 @@ $timeOtions[] = "12:00 AM";
|
|||||||
<th class="celda_encabezado_total" rowspan="2">Panel Gas Consumption </th>
|
<th class="celda_encabezado_total" rowspan="2">Panel Gas Consumption </th>
|
||||||
<!-- th:eq(15) -->
|
<!-- th:eq(15) -->
|
||||||
<th class="celda_encabezado_total" rowspan="2">Panel Gas Per Ton </th>
|
<th class="celda_encabezado_total" rowspan="2">Panel Gas Per Ton </th>
|
||||||
|
|
||||||
<!-- th:eq(16) -->
|
<!-- th:eq(16) -->
|
||||||
<th class="celda_encabezado_total" colspan="7">Incoming Sand/ Lump details </th>
|
|
||||||
|
<?php if(count($wcsSupplierList)>0){?>
|
||||||
|
<th class="celda_encabezado_total" colspan="<?=count($wcsSupplierList)?>">Incoming Sand/ Lump details </th>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<!-- th:eq(17) -->
|
<!-- th:eq(17) -->
|
||||||
<th class="celda_encabezado_total" colspan="3">ED details </th>
|
<th class="celda_encabezado_total" colspan="3">ED details </th>
|
||||||
<!-- th:eq(18) -->
|
<!-- th:eq(18) -->
|
||||||
<th class="celda_encabezado_total" colspan="2">TRP Sand </th>
|
<th class="celda_encabezado_total" colspan="2">TRP Sand </th>
|
||||||
|
|
||||||
|
<th class="celda_encabezado_total" rowspan="2">Coating </th>
|
||||||
|
|
||||||
<!-- th:eq(19) -->
|
<!-- th:eq(19) -->
|
||||||
<th class="celda_encabezado_total" colspan="6">Usage </th>
|
|
||||||
|
<?php if(count($crsClientList)>0){?>
|
||||||
|
<th class="celda_encabezado_total" colspan="<?=count($crsClientList)?>">Usage </th>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<!-- th:eq(20) -->
|
<!-- th:eq(20) -->
|
||||||
<th class="celda_encabezado_total" colspan="2">Water </th>
|
<th class="celda_encabezado_total" colspan="2">Water </th>
|
||||||
<!-- th:eq(21) -->
|
<!-- th:eq(21) -->
|
||||||
@ -1050,7 +1075,7 @@ $timeOtions[] = "12:00 AM";
|
|||||||
<th class="celda_encabezado_total" rowspan="2">ED +20 Waste </th>
|
<th class="celda_encabezado_total" rowspan="2">ED +20 Waste </th>
|
||||||
<!-- th:eq(30) -->
|
<!-- th:eq(30) -->
|
||||||
<th class="celda_encabezado_total" rowspan="2">Cyclone Waste </th>
|
<th class="celda_encabezado_total" rowspan="2">Cyclone Waste </th>
|
||||||
<!-- th:eq(31) -->
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@ -1079,7 +1104,7 @@ $timeOtions[] = "12:00 AM";
|
|||||||
<!-- th:eq(14) -->
|
<!-- th:eq(14) -->
|
||||||
<th class="celda_encabezado_total">Production Per Hour </th>
|
<th class="celda_encabezado_total">Production Per Hour </th>
|
||||||
<!-- th:eq(15) -->
|
<!-- th:eq(15) -->
|
||||||
<th class="celda_encabezado_total">Coating </th>
|
|
||||||
<!-- th:eq(16) -->
|
<!-- th:eq(16) -->
|
||||||
|
|
||||||
<?php foreach($crsClientList as $client){ ?>
|
<?php foreach($crsClientList as $client){ ?>
|
||||||
@ -1340,13 +1365,13 @@ $timeOtions[] = "12:00 AM";
|
|||||||
|
|
||||||
<!-- location -->
|
<!-- location -->
|
||||||
<!-- td:eq(44) -->
|
<!-- td:eq(44) -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal location">
|
||||||
<?=" "?>
|
<?=" "?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- description -->
|
<!-- description -->
|
||||||
<!-- td:eq(45) -->
|
<!-- td:eq(45) -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal description">
|
||||||
<?=" " ?>
|
<?=" " ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -1451,7 +1476,7 @@ $timeOtions[] = "12:00 AM";
|
|||||||
</div><!-- /.modal-content -->
|
</div><!-- /.modal-content -->
|
||||||
</div><!-- /.modal-dialog -->
|
</div><!-- /.modal-dialog -->
|
||||||
</div><!-- /.modal -->
|
</div><!-- /.modal -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1533,42 +1558,42 @@ $timeOtions[] = "12:00 AM";
|
|||||||
|
|
||||||
|
|
||||||
const rowData = {
|
const rowData = {
|
||||||
Date : rowCells.eq(0).text().trim() ,
|
Date : rowCells.eq(0).text().trim() ,
|
||||||
openingTime : openingTime ,
|
openingTime : openingTime ,
|
||||||
closingTime : closingTime ,
|
closingTime : closingTime ,
|
||||||
totalHours : rowCells.eq(3).text().trim() ,
|
totalHours : $(this).find(`td[data-id='${dateInYmD} totalHours']`),
|
||||||
coldStart : rowCells.eq(4).text().trim() ,
|
coldStart : $(this).find(`td[data-id='${dateInYmD} coldStart']`) ,
|
||||||
breakdownHours : rowCells.eq(5).text().trim() ,
|
breakdownHours : $(this).find(`td[data-id='${dateInYmD} breakdownHours']`) ,
|
||||||
burnerFiringHours : rowCells.eq(6).text().trim() ,
|
burnerFiringHours : $(this).find(`td[data-id='${dateInYmD} burnerFiringHours']`) ,
|
||||||
sandFeedingHours : rowCells.eq(7).text().trim() ,
|
sandFeedingHours : $(this).find(`td[data-id='${dateInYmD} sandFeedingHours']`) ,
|
||||||
gasReceiptBg : rowCells.eq(8).text().trim() ,
|
gasReceiptBg : $(this).find(`td[data-id='${dateInYmD} gasReceiptBg']`) ,
|
||||||
gasReceiptPg : rowCells.eq(9).text().trim() ,
|
gasReceiptPg : $(this).find(`td[data-id='${dateInYmD} gasReceiptPg']`) ,
|
||||||
physicalGasConsumption : rowCells.eq(10).text().trim() ,
|
physicalGasConsumption : $(this).find(`td[data-id='${dateInYmD} physicalGasConsumption']`) ,
|
||||||
trpPlusDrierGasConsumption : rowCells.eq(13).text().trim() ,
|
trpPlusDrierGasConsumption : $(this).find(`td[data-id='${dateInYmD} trpPlusDrierGasConsumption']`) ,
|
||||||
trpPhysicalGasPerTon : rowCells.eq(14).text().trim() ,
|
trpPhysicalGasPerTon : $(this).find(`td[data-id='${dateInYmD} trpPhysicalGasPerTon']`) ,
|
||||||
panelGasConsumption : rowCells.eq(15).text().trim() ,
|
panelGasConsumption : $(this).find(`td[data-id='${dateInYmD} panelGasConsumption']`) ,
|
||||||
panelGasPerTon : rowCells.eq(16).text().trim() ,
|
panelGasPerTon : $(this).find(`td[data-id='${dateInYmD} panelGasPerTon']`) ,
|
||||||
edRunningHours : rowCells.eq(24).text().trim() ,
|
edRunningHours : $(this).find(`td[data-id='${dateInYmD} edRunningHours']`) ,
|
||||||
edProduction : rowCells.eq(25).text().trim() ,
|
edProduction : $(this).find(`td[data-id='${dateInYmD} edProduction']`) ,
|
||||||
edUsage : rowCells.eq(26).text().trim() ,
|
edUsage : $(this).find(`td[data-id='${dateInYmD} edUsage']`) ,
|
||||||
waterConsumption : rowCells.eq(26).text().trim() ,
|
waterConsumption : $(this).find(`td[data-id='${dateInYmD} waterConsumption']`) ,
|
||||||
trpProduction : rowCells.eq(27).text().trim() ,
|
trpProduction : $(this).find(`td[data-id='${dateInYmD} trpProduction']`) ,
|
||||||
trpProductionPerHour : rowCells.eq(28).text().trim() ,
|
trpProductionPerHour : $(this).find(`td[data-id='${dateInYmD} trpProductionPerHour']`) ,
|
||||||
waterReceipt : rowCells.eq(35).text().trim() ,
|
waterReceipt : $(this).find(`td[data-id='${dateInYmD} waterReceipt']`) ,
|
||||||
ebReading : rowCells.eq(37).text().trim() ,
|
ebReading : $(this).find(`td[data-id='${dateInYmD} ebReading']`) ,
|
||||||
ebReadingPerUnitTon : rowCells.eq(38).text().trim() ,
|
ebReadingPerUnitTon : $(this).find(`td[data-id='${dateInYmD} ebReadingPerUnitTon']`) ,
|
||||||
workingPersonEngineers : rowCells.eq(39).text().trim() ,
|
workingPersonEngineers : $(this).find(`td[data-id='${dateInYmD} workingPersonEngineers']`) ,
|
||||||
workingPersonSupervisiors : rowCells.eq(40).text().trim() ,
|
workingPersonSupervisiors : $(this).find(`td[data-id='${dateInYmD} workingPersonSupervisiors']`) ,
|
||||||
workingPersonOperators : rowCells.eq(41).text().trim() ,
|
workingPersonOperators : $(this).find(`td[data-id='${dateInYmD} workingPersonOperators']`) ,
|
||||||
rollerDrivers : rowCells.eq(42).text().trim() ,
|
rollerDrivers : $(this).find(`td[data-id='${dateInYmD} rollerDrivers']`) ,
|
||||||
natureOfMaintenance : rowCells.eq(43).text().trim() ,
|
natureOfMaintenance : $(this).find(`td[data-id='${dateInYmD} natureOfMaintenance']`) ,
|
||||||
location : rowCells.eq(44).text().trim() ,
|
location : $(this).find(`td[data-id='${dateInYmD} location']`) ,
|
||||||
description : rowCells.eq(45).text().trim() ,
|
description : $(this).find(`td[data-id='${dateInYmD} description']`) ,
|
||||||
msSeperation : rowCells.eq(46).text().trim() ,
|
msSeperation : $(this).find(`td[data-id='${dateInYmD} msSeperation']`) ,
|
||||||
edWaste : rowCells.eq(47).text().trim() ,
|
edWaste : $(this).find(`td[data-id='${dateInYmD} edWaste']`) ,
|
||||||
coolerBags : rowCells.eq(48).text().trim() ,
|
coolerBags : $(this).find(`td[data-id='${dateInYmD} coolerBags']`) ,
|
||||||
edPlus20Waste : rowCells.eq(49).text().trim() ,
|
edPlus20Waste : $(this).find(`td[data-id='${dateInYmD} edPlus20Waste']`) ,
|
||||||
cycloneWaste : rowCells.eq(50).text().trim()
|
cycloneWaste : $(this).find(`td[data-id='${dateInYmD} cycloneWaste']`) ,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -1657,38 +1682,57 @@ $timeOtions[] = "12:00 AM";
|
|||||||
|
|
||||||
let tr = $(tdElement).closest('tr');
|
let tr = $(tdElement).closest('tr');
|
||||||
|
|
||||||
|
let date = tr.find('td:eq(0)').text().trim() ;
|
||||||
|
|
||||||
let totalHours = validateInput(tr.find('td:eq(3)').text().trim()) ?? 0;
|
date = `${date.split('-')[2]}-${date.split('-')[1]}-${date.split('-')[0]}`;
|
||||||
let coldStart = validateInput(tr.find('td:eq(4)').text().trim()) ?? 0;
|
|
||||||
let breakdownHours = validateInput(tr.find('td:eq(5)').text().trim()) ?? 0;
|
let totalHours = validateInput(document.querySelector(`td.totalHours[data-id="${date} totalHours"]`).innerText) ?? 0;
|
||||||
let burnerFiringHours = tr.find('td:eq(6)').text().trim() ?? 0;
|
|
||||||
let sandFeedingHours = tr.find('td:eq(7)').text().trim() ?? 0;
|
let coldStart = validateInput(document.querySelector(`td.coldStart[data-id="${date} coldStart"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let breakdownHours = validateInput(document.querySelector(`td.breakdownHours[data-id="${date} breakdownHours"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let burnerFiringHours = validateInput(document.querySelector(`td.burnerFiringHours[data-id="${date} burnerFiringHours"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let sandFeedingHours = validateInput(document.querySelector(`td.sandFeedingHours[data-id="${date} sandFeedingHours"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
|
||||||
let gasReceiptBg = tr.find('td:eq(8)').text().trim() ?? 0;
|
let gasReceiptBg = validateInput(document.querySelector(`td.gasReceiptBg[data-id="${date} gasReceiptBg"]`).innerText) ?? 0;
|
||||||
let gasReceiptPg = tr.find('td:eq(9)').text().trim() ?? 0;
|
|
||||||
let physicalGasConsumption = validateInput(tr.find('td:eq(10)').text().trim()) ?? 0;
|
let gasReceiptPg = validateInput(document.querySelector(`td.gasReceiptPg[data-id="${date} gasReceiptPg"]`).innerText) ?? 0;
|
||||||
let drierGasConsumption = validateInput(tr.find('td:eq(11)').text().trim()) ?? 0;
|
|
||||||
let coatingGasConsumption = validateInput(tr.find('td:eq(12)').text().trim()) ?? 0;
|
let physicalGasConsumption = validateInput(document.querySelector(`td.physicalGasConsumption[data-id="${date} physicalGasConsumption"]`).innerText) ?? 0;
|
||||||
let trpPlusDrierGasConsumption = tr.find('td:eq(13)').text().trim() ?? 0;
|
|
||||||
let trpPhysicalGasPerTon = tr.find('td:eq(14)').text().trim() ?? 0;
|
let drierGasConsumption = validateInput(document.querySelector(`td.drierGasConsumption[data-id="${date} drierGasConsumption"]`).innerText) ?? 0;
|
||||||
let panelGasConsumption = (tr.find('td:eq(15)').text().trim()) ?? 0;
|
|
||||||
let panelGasPerTon = tr.find('td:eq(16)').text().trim() ?? 0;
|
let coatingGasConsumption = validateInput(document.querySelector(`td.coatingGasConsumption[data-id="${date} coatingGasConsumption"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let trpPlusDrierGasConsumption = validateInput(document.querySelector(`td.trpPlusDrierGasConsumption[data-id="${date} trpPlusDrierGasConsumption"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let trpPhysicalGasPerTon = validateInput(document.querySelector(`td.trpPhysicalGasPerTon[data-id="${date} trpPhysicalGasPerTon"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let panelGasConsumption = validateInput(document.querySelector(`td.panelGasConsumption[data-id="${date} panelGasConsumption"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let panelGasPerTon = validateInput(document.querySelector(`td.panelGasPerTon[data-id="${date} panelGasPerTon"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let edRunningHours = validateInput(document.querySelector(`td.edRunningHours[data-id="${date} edRunningHours"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let edProduction = validateInput(document.querySelector(`td.edProduction[data-id="${date} edProduction"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let edUsage = validateInput(document.querySelector(`td.edUsage[data-id="${date} edUsage"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let trpProduction = validateInput(document.querySelector(`td.trpProduction[data-id="${date} trpProduction"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let trpProductionPerHour = validateInput(document.querySelector(`td.trpProductionPerHour[data-id="${date} trpProductionPerHour"]`).innerText) ?? 0;
|
||||||
|
|
||||||
|
let coating = validateInput(document.querySelector(`td.coating[data-id="${date} coating"]`).innerText) ?? 0;
|
||||||
|
|
||||||
let edRunningHours = tr.find('td:eq(24)').text().trim() ?? 0;
|
let ebReading = validateInput(document.querySelector(`td.ebReading[data-id="${date} ebReading"]`).innerText) ?? 0;
|
||||||
let edProduction = tr.find('td:eq(25)').text().trim() ?? 0;
|
|
||||||
let edUsage = tr.find('td:eq(26)').text().trim() ?? 0;
|
let ebReadingPerUnitTon = validateInput(document.querySelector(`td.ebReadingPerUnitTon[data-id="${date} ebReadingPerUnitTon"]`).innerText) ?? 0;
|
||||||
let trpProduction = validateInput(tr.find('td:eq(27)').text().trim()) ?? 0;
|
|
||||||
let trpProductionPerHour = tr.find('td:eq(28)').text().trim() ?? 0;
|
|
||||||
let coating = tr.find('td:eq(29)').text().trim() ?? 0;
|
|
||||||
|
|
||||||
let ebReading = tr.find('td:eq(37)').text().trim() ?? 0;
|
|
||||||
let ebReadingPerUnitTon = tr.find('td:eq(38)').text().trim() ?? 0;
|
|
||||||
|
|
||||||
|
|
||||||
|
let result = calculateSandFeedingHours(totalHours, coldStart, breakdownHours, burnerFiringHours);
|
||||||
|
|
||||||
let result = calculateSandFeedingHours(totalHours, coldStart, breakdownHours, burnerFiringHours);
|
|
||||||
|
|
||||||
sandFeedingHours = result[0];
|
sandFeedingHours = result[0];
|
||||||
|
|
||||||
@ -1709,19 +1753,22 @@ $timeOtions[] = "12:00 AM";
|
|||||||
|
|
||||||
// Final updation of value into td
|
// Final updation of value into td
|
||||||
|
|
||||||
tr.find('td:eq(7)').text(Number.isNaN(sandFeedingHours) ? " " : sandFeedingHours);
|
document.querySelector(`td.sandFeedingHours[data-id="${date} sandFeedingHours"]`).innerText = isFinite(sandFeedingHours) ? sandFeedingHours : " ";
|
||||||
|
|
||||||
tr.find('td:eq(6)').text(Number.isNaN(burnerFiringHours) ? " " : burnerFiringHours);
|
document.querySelector(`td.burnerFiringHours[data-id="${date} burnerFiringHours"]`).innerText = isFinite(burnerFiringHours) ? burnerFiringHours : " ";
|
||||||
|
|
||||||
tr.find('td:eq(13)').text(Number.isNaN(trpPlusDrierGasConsumption) ? " " : (trpPlusDrierGasConsumption).toFixed(2));
|
document.querySelector(`td.trpPlusDrierGasConsumption[data-id="${date} trpPlusDrierGasConsumption"]`).innerText = isFinite(trpPlusDrierGasConsumption) ? trpPlusDrierGasConsumption : " ";
|
||||||
|
|
||||||
tr.find('td:eq(14)').text(Number.isNaN(trpPhysicalGasPerTon) ? " " : (trpPhysicalGasPerTon).toFixed(2));
|
document.querySelector(`td.trpPhysicalGasPerTon[data-id="${date} trpPhysicalGasPerTon"]`).innerText = isFinite(trpPhysicalGasPerTon) ? (trpPhysicalGasPerTon).toFixed(2) : " ";
|
||||||
|
|
||||||
tr.find('td:eq(16)').text(Number.isNaN(panelGasPerTon) ? " " : (panelGasPerTon.toFixed(2)));
|
document.querySelector(`td.sandFeedingHours[data-id="${date} sandFeedingHours"]`).innerText = isFinite(sandFeedingHours) ? sandFeedingHours : " ";
|
||||||
|
|
||||||
tr.find('td:eq(28)').text(Number.isNaN(trpProductionPerHour) ? " " : (trpProductionPerHour).toFixed(2));
|
document.querySelector(`td.panelGasPerTon[data-id="${date} panelGasPerTon"]`).innerText = isFinite(panelGasPerTon) ? (panelGasPerTon).toFixed(2) : " ";
|
||||||
|
|
||||||
|
document.querySelector(`td.trpProductionPerHour[data-id="${date} trpProductionPerHour"]`).innerText = isFinite(trpProductionPerHour) ? trpProductionPerHour : " ";
|
||||||
|
|
||||||
|
document.querySelector(`td.ebReadingPerUnitTon[data-id="${date} ebReadingPerUnitTon"]`).innerText = isFinite(ebReadingPerUnitTon) ? (ebReadingPerUnitTon).toFixed(2) : " ";
|
||||||
|
|
||||||
tr.find('td:eq(38)').text(Number.isNaN(ebReadingPerUnitTon) ? " " : (ebReadingPerUnitTon).toFixed(2));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1749,6 +1796,9 @@ $timeOtions[] = "12:00 AM";
|
|||||||
|
|
||||||
|
|
||||||
var tr = $(this).closest('tr');
|
var tr = $(this).closest('tr');
|
||||||
|
let date = tr.find('td:eq(0)').text().trim() ;
|
||||||
|
|
||||||
|
date = `${date.split('-')[2]}-${date.split('-')[1]}-${date.split('-')[0]}`;
|
||||||
|
|
||||||
var trpOnTime = tr.find('.trp_on_time').val();
|
var trpOnTime = tr.find('.trp_on_time').val();
|
||||||
var trpOffTime = tr.find('.trp_off_time').val();
|
var trpOffTime = tr.find('.trp_off_time').val();
|
||||||
@ -1777,7 +1827,7 @@ $timeOtions[] = "12:00 AM";
|
|||||||
|
|
||||||
const totalHours = hours + "." + minutes;
|
const totalHours = hours + "." + minutes;
|
||||||
|
|
||||||
tr.find('td:eq(3)').text(totalHours);
|
document.querySelector(`td.totalHours[data-id="${date} totalHours"]`).innerText = totalHours;
|
||||||
|
|
||||||
|
|
||||||
trpStockChange(this);
|
trpStockChange(this);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user