changes in stock module-1 12/11/024 -vadivel j
This commit is contained in:
parent
b193589451
commit
b79e3b0f3d
@ -156,8 +156,9 @@
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
#bagStockDetailsTableId th:nth-child(1),
|
||||
#bagStockDetailsTableId td:nth-child(1) {
|
||||
#gasStockDetailsTableId th:nth-child(1),
|
||||
#gasStockDetailsTableId td:nth-child(1),
|
||||
{
|
||||
position: sticky;
|
||||
left: 0;
|
||||
background-color: #00a65a;
|
||||
@ -220,19 +221,16 @@
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="bagStockDetailsTableId" class="fht-table table-striped">
|
||||
<table id="gasStockDetailsTableId" class="fht-table table-striped">
|
||||
|
||||
<thead class="celda_encabezado_general" style="padding: 10px;">
|
||||
|
||||
<tr>
|
||||
|
||||
<tr>
|
||||
<th class="celda_encabezado_general" rowspan="2" colspan="2">RIPL </th>
|
||||
</tr>
|
||||
<th class="celda_encabezado_general" colspan="12">SEP- GAS CONSUMPTION-422 & 425 kg </th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<th class="celda_encabezado_general" rowspan="2" colspan="2">RIPL </th>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th class="celda_encabezado_general" colspan="5">Gas Stock </th>
|
||||
@ -243,8 +241,6 @@
|
||||
<th class="celda_encabezado_general">Trp Machine </th>
|
||||
<th class="celda_encabezado_general">Sand TRP</th>
|
||||
<th class="celda_encabezado_general">Rotary Drier </th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -269,8 +265,68 @@
|
||||
</thead>
|
||||
|
||||
<tbody style="background-color: #fff;" >
|
||||
<?php if(!empty($gasStockDetails)){
|
||||
foreach($gasStockDetails as $index => $gasStockDetail){
|
||||
?>
|
||||
<tr>
|
||||
<td class="celda_normal"><?=$gasStockDetail['date']??'-'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['opening']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['purchaseBharath']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['purchaseIndian']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['total']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['consumption']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['balanceStock']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['consumption']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['sandDried']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['consumption']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['coatedSand']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['coatedSand']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['coatedSand']??'0'?></td>
|
||||
<td class="celda_normal"><?=$gasStockDetail['coatedSand']??'0'?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
}else{
|
||||
|
||||
|
||||
$date = DateTime::createFromFormat('M-Y', $month);
|
||||
|
||||
$startDate = $date->modify('first day of this month')->format('Y-m-d');
|
||||
$endDate = $date->modify('last day of this month')->format('Y-m-d');
|
||||
|
||||
$datesInMonth = [];
|
||||
|
||||
|
||||
$period = new DatePeriod(
|
||||
new DateTime($startDate),
|
||||
new DateInterval('P1D'),
|
||||
(new DateTime($endDate))->modify('+1 day')
|
||||
);
|
||||
|
||||
foreach ($period as $day) {
|
||||
$datesInMonth[] = $day->format('Y-m-d');
|
||||
}
|
||||
|
||||
foreach ($datesInMonth as $datesInMonthIndex => $dateInMonth) {
|
||||
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="celda_normal"><?=$dateInMonth??'-'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
<td class="celda_normal"><?='0'?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
}?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user