stock module latest today vadivel J 12-02-2025
This commit is contained in:
parent
02f7a51594
commit
6dd8a2bd5b
@ -221,6 +221,12 @@
|
||||
}
|
||||
|
||||
|
||||
/* .fht-table td[contenteditable="true"] {
|
||||
background-color: lightyellow;
|
||||
color:rgb(13, 7, 7);
|
||||
} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -353,8 +359,8 @@
|
||||
<?php foreach($bagMaterials as $bagMaterial){ ?>
|
||||
<!-- this will loop till materials present -->
|
||||
<th class="celda_encabezado_general" style="display:none">Date</th>
|
||||
<th class="celda_encabezado_general" style="display:none"> material</th>
|
||||
<th class="celda_encabezado_general" style="display:none"> customer</th>
|
||||
<th class="celda_encabezado_general" style="display:none"> Material</th>
|
||||
<th class="celda_encabezado_general" style="display:none"> Customer</th>
|
||||
<th class="celda_encabezado_general">Opening Stock</th>
|
||||
<th class="celda_encabezado_general">Receipt</th>
|
||||
<th class="celda_encabezado_general">Used</th>
|
||||
|
||||
@ -1033,10 +1033,10 @@ foreach ($period as $day) {
|
||||
let closingReading = validateInput(document.querySelector(`td.closingReading[data-id="${dataId}"]`).innerText);
|
||||
let consumption = validateInput(document.querySelector(`td.consumption[data-id="${dataId}"]`).innerText);
|
||||
let runningHours = Math.abs(Number(closingReading) - Number(openingReading));
|
||||
let mileage = consumption == 0 || runningHours == 0 ? 0 : (Number(consumption) / Number(runningHours)).toFixed(2) ;
|
||||
let mileage = consumption == 0 || runningHours == 0 ? 0 : (Number(consumption) / Number(runningHours)) ;
|
||||
|
||||
document.querySelector(`td.runningHours[data-id="${dataId}"]`).innerText = (runningHours).toFixed(2);
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = mileage;
|
||||
document.querySelector(`td.runningHours[data-id="${dataId}"]`).innerText = parseFloat(runningHours).toFixed(2);
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = parseFloat(mileage).toFixed(2);
|
||||
|
||||
|
||||
updateStockValue(date,machine_id,closingReading)
|
||||
@ -1058,10 +1058,10 @@ foreach ($period as $day) {
|
||||
let openingReading = validateInput(document.querySelector(`td.openingReading[data-id="${dataId}"]`).innerText);
|
||||
let consumption = validateInput(document.querySelector(`td.consumption[data-id="${dataId}"]`).innerText);
|
||||
let runningHours = Math.abs(Number(closingReading) - Number(openingReading));
|
||||
let mileage = consumption == 0 || runningHours == 0 ? 0 : (Number(consumption) / Number(runningHours)).toFixed(2) ;
|
||||
let mileage = consumption == 0 || runningHours == 0 ? 0 : Number(consumption) / Number(runningHours) ;
|
||||
|
||||
document.querySelector(`td.runningHours[data-id="${dataId}"]`).innerText = (runningHours).toFixed(2);
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = mileage;
|
||||
document.querySelector(`td.runningHours[data-id="${dataId}"]`).innerText = parseFloat(runningHours).toFixed(2);
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = parseFloat(mileage).toFixed(2);
|
||||
|
||||
updateStockValue(date, machine_id, closingReading)
|
||||
|
||||
@ -1083,10 +1083,10 @@ foreach ($period as $day) {
|
||||
let openingReading = validateInput(document.querySelector(`td.openingReading[data-id="${dataId}"]`).innerText);
|
||||
let consumption = validateInput(tdElement.innerText);
|
||||
let runningHours = Math.abs(Number(closingReading) - Number(openingReading));
|
||||
let mileage = consumption == 0 || runningHours == 0 ? 0 : (Number(consumption) / Number(runningHours)).toFixed(2) ;
|
||||
let mileage = consumption == 0 || runningHours == 0 ? 0 : (Number(consumption) / Number(runningHours)) ;
|
||||
|
||||
document.querySelector(`td.runningHours[data-id="${dataId}"]`).innerText = (runningHours).toFixed(2);
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = mileage;
|
||||
document.querySelector(`td.runningHours[data-id="${dataId}"]`).innerText = parseFloat(runningHours).toFixed(2);
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = parseFloat(mileage).toFixed(2);
|
||||
|
||||
updateStockValue(date, machine_id, closingReading)
|
||||
|
||||
@ -1119,7 +1119,7 @@ foreach ($period as $day) {
|
||||
)});
|
||||
|
||||
|
||||
document.querySelector(`td.fillingTD[data-id="${date}"]`).innerText = totalFillingDiesel;
|
||||
document.querySelector(`td.fillingTD[data-id="${date}"]`).innerText = parseFloat(totalFillingDiesel).toFixed(2) ;
|
||||
|
||||
let openingTD = validateInput(document.querySelector(`td.openingTD[data-id="${date}"]`).innerText);
|
||||
|
||||
@ -1127,7 +1127,7 @@ foreach ($period as $day) {
|
||||
|
||||
let balanceTD = (Number(openingTD) + Number(purchaseTD)) - Number(totalFillingDiesel) ;
|
||||
|
||||
document.querySelector(`td.balanceTD[data-id="${date}"]`).innerText = balanceTD ;
|
||||
document.querySelector(`td.balanceTD[data-id="${date}"]`).innerText = parseFloat(balanceTD).toFixed(2) ;
|
||||
|
||||
updateTotalStockValue(date, balanceTD) ;
|
||||
|
||||
@ -1157,7 +1157,7 @@ foreach ($period as $day) {
|
||||
|
||||
let balanceTD = (Number(openingTD) + Number(purchaseTD)) - Number(fillingTD) ;
|
||||
|
||||
document.querySelector(`td.balanceTD[data-id="${dataId}"]`).innerText = balanceTD ;
|
||||
document.querySelector(`td.balanceTD[data-id="${dataId}"]`).innerText = parseFloat(balanceTD).toFixed(2) ;
|
||||
|
||||
updateTotalStockValue(dataId , balanceTD)
|
||||
|
||||
@ -1181,7 +1181,7 @@ foreach ($period as $day) {
|
||||
|
||||
balanceTD = (Number(openingTD) + Number(purchaseTD)) - Number(fillingTD) ;
|
||||
|
||||
document.querySelector(`td.balanceTD[data-id="${dataId}"]`).innerText = balanceTD ;
|
||||
document.querySelector(`td.balanceTD[data-id="${dataId}"]`).innerText = parseFloat(balanceTD).toFixed(2) ;
|
||||
|
||||
updateTotalStockValue(dataId, balanceTD) ;
|
||||
|
||||
@ -1263,9 +1263,9 @@ foreach ($period as $day) {
|
||||
|
||||
document.querySelector(`td.runningHours[data-id="${dataId}"]`).innerText = runningHours == 0 ? " " : (runningHours).toFixed(2) ;
|
||||
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = mileage == 0 ? " " : mileage ;
|
||||
document.querySelector(`td.mileage[data-id="${dataId}"]`).innerText = mileage == 0 ? " " : parseFloat(mileage).toFixed(2) ;
|
||||
|
||||
document.querySelector(`td.closingReading[data-id="${dataId}"]`).innerText = closingReading == 0 ? " " : (closingReading).toFixed(2) ;
|
||||
document.querySelector(`td.closingReading[data-id="${dataId}"]`).innerText = closingReading == 0 ? " " : parseFloat(closingReading).toFixed(2) ;
|
||||
|
||||
|
||||
}
|
||||
@ -1297,7 +1297,7 @@ foreach ($period as $day) {
|
||||
let dataId = `${otherDate}`;
|
||||
|
||||
|
||||
document.querySelector(`td.openingTD[data-id="${dataId}"]`).innerText = balanceTD;
|
||||
document.querySelector(`td.openingTD[data-id="${dataId}"]`).innerText = parseFloat(balanceTD).toFixed(2) ;
|
||||
|
||||
let openingTD = document.querySelector(`td.openingTD[data-id="${dataId}"]`).innerText;
|
||||
|
||||
@ -1310,7 +1310,7 @@ foreach ($period as $day) {
|
||||
|
||||
balanceTD = (Number(openingTD) + Number(purchaseTD)) - Number(fillingTD) ;
|
||||
|
||||
document.querySelector(`td.balanceTD[data-id="${dataId}"]`).innerText = balanceTD ;
|
||||
document.querySelector(`td.balanceTD[data-id="${dataId}"]`).innerText = parseFloat(balanceTD).toFixed(2) ;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -291,21 +291,18 @@
|
||||
|
||||
<thead class="celda_encabezado_general" style="padding: 10px;">
|
||||
|
||||
<tr>
|
||||
|
||||
<th class="celda_encabezado_general" colspan="14">SEP- GAS CONSUMPTION-422 & 425 kg </th>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<th class="celda_encabezado_general" rowspan="1" colspan="1">RIPL </th>
|
||||
<th class="celda_encabezado_general" colspan="6">Gas Stock </th>
|
||||
<th class="celda_encabezado_general">10 Ton</th>
|
||||
<th class="celda_encabezado_general">FBD 10 Ton Dryer</th>
|
||||
<th class="celda_encabezado_general">Sand Dried</th>
|
||||
<th class="celda_encabezado_general">Coating Machine</th>
|
||||
<th class="celda_encabezado_general">Sand Coated</th>
|
||||
<th class="celda_encabezado_general" colspan="2">Trp Machine </th>
|
||||
<th class="celda_encabezado_general" colspan="2">TRP </th>
|
||||
<th class="celda_encabezado_general">Sand TRP</th>
|
||||
<th class="celda_encabezado_general">Rotary Drier </th>
|
||||
</tr>
|
||||
@ -319,12 +316,12 @@
|
||||
<th class="celda_encabezado_general">Consumption </th>
|
||||
<th class="celda_encabezado_general">Balance Stock</th>
|
||||
<th class="celda_encabezado_general">Consumption </th>
|
||||
<th class="celda_encabezado_general">ton </th>
|
||||
<th class="celda_encabezado_general">Ton </th>
|
||||
<th class="celda_encabezado_general">Consumption</th>
|
||||
<th class="celda_encabezado_general">ton </th>
|
||||
<th class="celda_encabezado_general">Ton </th>
|
||||
<th class="celda_encabezado_general">Panel Consumption</th>
|
||||
<th class="celda_encabezado_general">Physical Consumption</th>
|
||||
<th class="celda_encabezado_general">ton </th>
|
||||
<th class="celda_encabezado_general">Ton </th>
|
||||
<th class="celda_encabezado_general">Consumption</th>
|
||||
|
||||
</tr>
|
||||
@ -514,11 +511,11 @@
|
||||
<tr>
|
||||
<th class="celda_encabezado_total" rowspan="1" colspan="1">RIPL </th>
|
||||
<th class="celda_encabezado_total" colspan="6">Gas Stock </th>
|
||||
<th class="celda_encabezado_total">10 Ton</th>
|
||||
<th class="celda_encabezado_total">FBD 10 Ton Dryer</th>
|
||||
<th class="celda_encabezado_total">Sand Dried</th>
|
||||
<th class="celda_encabezado_total">Coating Machine</th>
|
||||
<th class="celda_encabezado_total">Sand Coated</th>
|
||||
<th class="celda_encabezado_total" colspan="2">Trp Machine </th>
|
||||
<th class="celda_encabezado_total" colspan="2">TRP </th>
|
||||
<th class="celda_encabezado_total">Sand TRP</th>
|
||||
<th class="celda_encabezado_total">Rotary Drier </th>
|
||||
</tr>
|
||||
|
||||
@ -28,6 +28,12 @@
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* .fht-table td[contenteditable="true"] {
|
||||
background-color: lightyellow;
|
||||
color:rgb(13, 7, 7);
|
||||
} */
|
||||
|
||||
|
||||
.fht-table {
|
||||
border: 0 none;
|
||||
height: auto;
|
||||
|
||||
@ -17,6 +17,11 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* .fht-table td[contenteditable="true"] {
|
||||
background-color: lightyellow;
|
||||
color:rgb(13, 7, 7);
|
||||
} */
|
||||
|
||||
.fht-table td:hover {
|
||||
background-color: #50bbd9;
|
||||
color: #ffffff;
|
||||
@ -1236,7 +1241,7 @@ foreach ($period as $day) {
|
||||
|
||||
let dataId = `${otherDate} ${machine_id}`;
|
||||
|
||||
document.querySelector(`td.openingUnits[data-id="${dataId}"]`).innerText = closingUnits == 0 ? " " : closingUnits ;
|
||||
document.querySelector(`td.openingUnits[data-id="${dataId}"]`).innerText = closingUnits == 0 ? " " : parseFloat(closingUnits).toFixed(2) ;
|
||||
|
||||
let openingUnits = validateInput(document.querySelector(`td.openingUnits[data-id="${dataId}"]`).innerText);
|
||||
|
||||
@ -1244,7 +1249,7 @@ foreach ($period as $day) {
|
||||
|
||||
closingUnits = Math.abs(Number(openingUnits) + Number(totalUnits));
|
||||
|
||||
document.querySelector(`td.closingUnits[data-id="${dataId}"]`).innerText = closingUnits == 0 ? " " : closingUnits ;
|
||||
document.querySelector(`td.closingUnits[data-id="${dataId}"]`).innerText = closingUnits == 0 ? " " : parseFloat(closingUnits).toFixed(2) ;
|
||||
|
||||
|
||||
}
|
||||
@ -1275,7 +1280,7 @@ foreach ($period as $day) {
|
||||
let dataId = `${otherDate}`;
|
||||
|
||||
|
||||
document.querySelector(`td.openingTP[data-id="${dataId}"]`).innerText = finalTP == 0 ? " " : finalTP ;
|
||||
document.querySelector(`td.openingTP[data-id="${dataId}"]`).innerText = finalTP == 0 ? " " : parseFloat(finalTP).toFixed(2) ;
|
||||
|
||||
let openingTP = validateInput(document.querySelector(`td.openingTP[data-id="${dataId}"]`).innerText) ;
|
||||
|
||||
@ -1290,9 +1295,9 @@ foreach ($period as $day) {
|
||||
|
||||
|
||||
|
||||
document.querySelector(`td.finalTP[data-id="${dataId}"]`).innerText = finalTP == 0 ? " " : finalTP;
|
||||
document.querySelector(`td.totalReadingTP[data-id="${dataId}"]`).innerText = totalReadingTP == 0 ? " " : totalReadingTP ;
|
||||
document.querySelector(`td.totalUnitsTP[data-id="${dataId}"]`).innerText = totalUnitsTP == 0 ? " " : totalUnitsTP;
|
||||
document.querySelector(`td.finalTP[data-id="${dataId}"]`).innerText = finalTP == 0 ? " " : parseFloat(finalTP).toFixed(2) ;
|
||||
document.querySelector(`td.totalReadingTP[data-id="${dataId}"]`).innerText = totalReadingTP == 0 ? " " : parseFloat(totalReadingTP).toFixed(2) ;
|
||||
document.querySelector(`td.totalUnitsTP[data-id="${dataId}"]`).innerText = totalUnitsTP == 0 ? " " : parseFloat(totalUnitsTP).toFixed(2) ;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -21,6 +21,11 @@
|
||||
background-color: #50bbd9;
|
||||
color: #ffffff;
|
||||
}
|
||||
/*
|
||||
.fht-table td[contenteditable="true"] {
|
||||
background-color: lightyellow;
|
||||
color:rgb(13, 7, 7);
|
||||
} */
|
||||
|
||||
.fht-table {
|
||||
border: 0 none;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user