stock module latest today vadivel J 22-01-2025
This commit is contained in:
parent
38bedb03f0
commit
b3311f78cb
@ -123,6 +123,15 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.celda_encabezado_total {
|
||||
background-color:#ffffff;
|
||||
border: 1px solid #ccc;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
padding: 6px 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
._Separador {
|
||||
background-color: #fff;
|
||||
height: 12px;
|
||||
@ -282,8 +291,7 @@
|
||||
<th class="celda_encabezado_general" style="padding: 10px;">Total Coating Sand(kg)</th>
|
||||
<th class="celda_encabezado_general" style="padding: 10px;">Total Gas Consumption</th>
|
||||
<th class="celda_encabezado_general" style="padding: 10px;">Hour Gas</th>
|
||||
<th class="celda_encabezado_general" style="padding: 10px;">Hour QTY(kg)
|
||||
</th>
|
||||
<th class="celda_encabezado_general" style="padding: 10px;">Hour QTY(kg)</th>
|
||||
<th class="celda_encabezado_general" style="padding: 10px;">Customer Name</th>
|
||||
<th class="celda_encabezado_general" style="padding: 10px;">Action</th>
|
||||
</tr>
|
||||
@ -293,6 +301,8 @@
|
||||
|
||||
if (!empty($coatingMachineDetails)) {
|
||||
|
||||
$summary = [] ;
|
||||
|
||||
foreach ($coatingMachineDetails as $record) {
|
||||
?>
|
||||
<tr data-id="<?php echo $record['id']; ?>"
|
||||
@ -323,28 +333,82 @@
|
||||
<a data-toggle="tooltip" class="edit-btn"
|
||||
data-target="editCoatingMachineDetailModal" data-toggle="modal"
|
||||
style="cursor:pointer;">
|
||||
<i class="fa fa-pencil-alt"
|
||||
<i class="fa fa-edit"
|
||||
title="Click here to Edit "></i>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<a data-toggle="tooltip" onclick="confirmDelete(event)" style="cursor:pointer ;"
|
||||
href="<?php echo base_url(); ?>deleteCoatingMachineDetails?id=<?php echo $record['id'] ?>">
|
||||
<i class="fa fa-trash"
|
||||
title="Click here to Delete "></i>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
//before closing inner loop
|
||||
|
||||
|
||||
|
||||
if (!isset($summary['totalCoating'])) {
|
||||
$summary['totalCoating'] = 0 ;
|
||||
$summary['totalCoatingSandInKg'] = 0 ;
|
||||
$summary['totalGasConsumption'] = 0 ;
|
||||
$summary['perHourGasConsumption'] = 0 ;
|
||||
$summary['perHourCoatingSandQTY'] = 0 ;
|
||||
}
|
||||
|
||||
|
||||
$summary['totalCoating'] += $record['totalCoating'] == "-" ? 0 : (float) $record['totalCoating'] ;
|
||||
$summary['totalCoatingSandInKg'] += $record['totalCoatingSandInKg'] == "-" ? 0 : (float) $record['totalCoatingSandInKg'] ;
|
||||
$summary['totalGasConsumption'] += $record['totalGasConsumption'] == "-" ? 0 :(float) $record['totalGasConsumption'] ;
|
||||
$summary['perHourGasConsumption'] += $record['perHourGasConsumption'] == "-" ? 0 : (float) $record['perHourGasConsumption'] ;
|
||||
$summary['perHourCoatingSandQTY'] += $record['perHourCoatingSandQTY'] == "-" ? 0 :(float) $record['perHourCoatingSandQTY'] ;
|
||||
|
||||
} ?>
|
||||
|
||||
<table id="coatingMachineStockDetailsTableSummaryId" class="fht-table table-hover table-bordered">
|
||||
|
||||
<thead >
|
||||
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Total valu</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Shift</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Machine On Time</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Machine Off Time</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Machine Running(hr)</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Total Coating</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Total Coating Sand(kg)</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Total Gas Consumption</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Hour Gas</th>
|
||||
<th class="celda_encabezado_total" style="padding: 10px;">Hour QTY(kg)</th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="background-color:rgb(189, 9, 6); color:#ffff;">
|
||||
<b> Total </b>
|
||||
</td>
|
||||
|
||||
|
||||
<td class="celda_normal "> - </td>
|
||||
<td class="celda_normal "> - </td>
|
||||
<td class="celda_normal "> - </td>
|
||||
<td class="celda_normal "> - </td>
|
||||
<td class="celda_normal "><?=$summary['totalCoating']?></td>
|
||||
<td class="celda_normal "><?=$summary['totalCoatingSandInKg']?></td>
|
||||
<td class="celda_normal "><?=$summary['totalGasConsumption']?></td>
|
||||
<td class="celda_normal "><?=$summary['perHourGasConsumption']?></td>
|
||||
<td class="celda_normal "><?=$summary['perHourCoatingSandQTY']?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
|
||||
@ -254,6 +254,9 @@
|
||||
|
||||
<?php
|
||||
if(!empty($dustAndRoughStockDetails)){
|
||||
|
||||
$summary = [] ;
|
||||
|
||||
foreach($dustAndRoughStockDetails as $dustAndRoughStockDetailsIndex => $dustAndRoughStockDetail){
|
||||
?>
|
||||
<tr
|
||||
@ -287,9 +290,53 @@
|
||||
><?= $dustAndRoughStockDetail['total'] ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="table-responsive" style="width: 700px;">
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
//before closing inner loop
|
||||
|
||||
if (!isset($summary['finalRough'])) {
|
||||
$summary['finalRough'] = 0 ;
|
||||
$summary['dust'] = 0 ;
|
||||
$summary['total'] = 0 ;
|
||||
}
|
||||
|
||||
|
||||
$summary['finalRough'] += $dustAndRoughStockDetail['finalRough'] == "-" ? 0 : (float) $dustAndRoughStockDetail['finalRough'] ;
|
||||
$summary['dust'] += $dustAndRoughStockDetail['dust'] == "-" ? 0 : (float) $dustAndRoughStockDetail['dust'] ;
|
||||
$summary['total'] += $dustAndRoughStockDetail['total'] == "-" ? 0 :(float) $dustAndRoughStockDetail['total'] ;
|
||||
|
||||
} ?>
|
||||
|
||||
<table id="dustAndRoughStockDetailsTableSummaryId" class="fht-table table-striped">
|
||||
|
||||
<thead >
|
||||
<th class="celda_encabezado_total" style="width: 100px;">Total </th>
|
||||
<th class="celda_encabezado_total" style="width: 230px;">Final Rough </th>
|
||||
<th class="celda_encabezado_total" style="width: 240px;">Dust </th>
|
||||
<th class="celda_encabezado_total" style="width: 130px;">Total </th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
|
||||
<td style="background-color:rgb(189, 9, 6); color:#ffff;">
|
||||
<b> Total </b>
|
||||
</td>
|
||||
|
||||
<td class="celda_normal "><?=$summary['finalRough']?></td>
|
||||
<td class="celda_normal "><?=$summary['dust']?></td>
|
||||
<td class="celda_normal "><?=$summary['total']?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php }else{
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user