stock module latest today vadivel J 28-01-2025
This commit is contained in:
parent
9c6db63662
commit
f8c19743ff
@ -630,6 +630,7 @@ foreach ($period as $day) {
|
|||||||
with initial values 0 for entire month -->
|
with initial values 0 for entire month -->
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php foreach ($datesInMonth as $datesInMonthIndex => $dateInMonth) { ?>
|
<?php foreach ($datesInMonth as $datesInMonthIndex => $dateInMonth) { ?>
|
||||||
<tr
|
<tr
|
||||||
@ -663,7 +664,10 @@ foreach ($period as $day) {
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
><?= $previousMonthTotalDieselMachineStockDetails[0]['balance_stock'] ?></td>
|
><?= !empty($previousMonthTotalDieselMachineStockDetails)
|
||||||
|
? $previousMonthTotalDieselMachineStockDetails[0]['balance_stock']
|
||||||
|
:" " ;
|
||||||
|
?></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -679,7 +683,11 @@ foreach ($period as $day) {
|
|||||||
<td class="celda_normal balanceTD"
|
<td class="celda_normal balanceTD"
|
||||||
data-id="<?= $dateInMonth ?>"
|
data-id="<?= $dateInMonth ?>"
|
||||||
|
|
||||||
><?= $previousMonthTotalDieselMachineStockDetails[0]['balance_stock'] ?></td>
|
><?= !empty($previousMonthTotalDieselMachineStockDetails)
|
||||||
|
? $previousMonthTotalDieselMachineStockDetails[0]['balance_stock']
|
||||||
|
:" " ;
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -708,14 +716,22 @@ foreach ($period as $day) {
|
|||||||
contenteditable="true"
|
contenteditable="true"
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
><?= $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading'] ?>
|
><?= !empty($previousMonthDieselMachineStockDetails)
|
||||||
|
? $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading']
|
||||||
|
:" " ;
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="celda_normal closingReading"
|
<td class="celda_normal closingReading"
|
||||||
data-id="<?= $dateInMonth ?> <?= $dieselMachine['id'] ?>"
|
data-id="<?= $dateInMonth ?> <?= $dieselMachine['id'] ?>"
|
||||||
oninput="closingReadingChange(this)"
|
oninput="closingReadingChange(this)"
|
||||||
contenteditable="true"><?= $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading'] ?>
|
contenteditable="true"><?= !empty($previousMonthDieselMachineStockDetails)
|
||||||
|
? $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading']
|
||||||
|
:" " ;
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="celda_normal fillingDiesel"
|
<td class="celda_normal fillingDiesel"
|
||||||
|
|||||||
@ -776,13 +776,28 @@ foreach ($period as $day) {
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
><?= $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ?>
|
><?php
|
||||||
|
if(empty( $previousMonthPowerConsumptionStockDetails)){
|
||||||
|
echo " " ;
|
||||||
|
}else{
|
||||||
|
echo $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="celda_normal closingUnits"
|
<td class="celda_normal closingUnits"
|
||||||
data-id="<?= $dateInMonth ?> <?= $powerMachine['id'] ?>"
|
data-id="<?= $dateInMonth ?> <?= $powerMachine['id'] ?>"
|
||||||
oninput="closingUnitsChange(this)"
|
oninput="closingUnitsChange(this)"
|
||||||
contenteditable="true"><?= $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ?>
|
contenteditable="true">
|
||||||
|
<?php
|
||||||
|
if(empty( $previousMonthPowerConsumptionStockDetails)){
|
||||||
|
echo " " ;
|
||||||
|
}else{
|
||||||
|
echo $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="celda_normal totalUnits"
|
<td class="celda_normal totalUnits"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user