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 -->
|
||||
<?php } else { ?>
|
||||
|
||||
|
||||
|
||||
<?php foreach ($datesInMonth as $datesInMonthIndex => $dateInMonth) { ?>
|
||||
<tr
|
||||
@ -663,7 +664,10 @@ foreach ($period as $day) {
|
||||
|
||||
<?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"
|
||||
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"
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
><?= $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading'] ?>
|
||||
><?= !empty($previousMonthDieselMachineStockDetails)
|
||||
? $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading']
|
||||
:" " ;
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td class="celda_normal closingReading"
|
||||
data-id="<?= $dateInMonth ?> <?= $dieselMachine['id'] ?>"
|
||||
oninput="closingReadingChange(this)"
|
||||
contenteditable="true"><?= $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading'] ?>
|
||||
contenteditable="true"><?= !empty($previousMonthDieselMachineStockDetails)
|
||||
? $previousMonthDieselMachineStockDetails[$dieselMachineIndex]['closing_reading']
|
||||
:" " ;
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td class="celda_normal fillingDiesel"
|
||||
|
||||
@ -776,13 +776,28 @@ foreach ($period as $day) {
|
||||
|
||||
<?php } ?>
|
||||
|
||||
><?= $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ?>
|
||||
><?php
|
||||
if(empty( $previousMonthPowerConsumptionStockDetails)){
|
||||
echo " " ;
|
||||
}else{
|
||||
echo $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ;
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td class="celda_normal closingUnits"
|
||||
data-id="<?= $dateInMonth ?> <?= $powerMachine['id'] ?>"
|
||||
oninput="closingUnitsChange(this)"
|
||||
contenteditable="true"><?= $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ?>
|
||||
contenteditable="true">
|
||||
<?php
|
||||
if(empty( $previousMonthPowerConsumptionStockDetails)){
|
||||
echo " " ;
|
||||
}else{
|
||||
echo $previousMonthPowerConsumptionStockDetails[$powerMachineIndex]['closing_units'] ;
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td class="celda_normal totalUnits"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user