stock changes 05-04-2025
This commit is contained in:
parent
87fc519aa9
commit
0c61c66b36
@ -49,11 +49,20 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- start page title -->
|
<!-- start page title -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-10 mt-2">
|
||||||
<div class="page-title-box page-title-box-alt">
|
<div class="page-title-box page-title-box-alt">
|
||||||
<h4 class="page-title">Material Master Details</h4>
|
<h4 class="page-title">Material Master Details</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-2 text-right pr-3">
|
||||||
|
<a class="btn btn-success"
|
||||||
|
href="<?php echo base_url(); ?>addRawmaterial">
|
||||||
|
Add New Material
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
helper('form');
|
helper('form');
|
||||||
@ -74,7 +83,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-8">
|
<div class="col-10">
|
||||||
<form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px; margin-bottom: -11px; margin-left: 33px;">
|
<form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px; margin-bottom: -11px; margin-left: 33px;">
|
||||||
|
|
||||||
<input type="hidden" name="table" value="requisition">
|
<input type="hidden" name="table" value="requisition">
|
||||||
@ -116,12 +125,10 @@
|
|||||||
<div class="error" id="error"></div>
|
<div class="error" id="error"></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2">
|
|
||||||
<a class="btn btn-success mt-3" href="<?php echo base_url(); ?>addRawmaterial">Add New Material</a>
|
|
||||||
</div>
|
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<div style="margin-left:auto">
|
<div style="margin-left:auto">
|
||||||
<div class="form-check mt-4" style="margin-right: 25px;">
|
<div class="form-check mt-4 mr-2 text-right" >
|
||||||
<form id="archiveFormId" action="<?php echo base_url()?>/rawmaterialListing" method="post">
|
<form id="archiveFormId" action="<?php echo base_url()?>/rawmaterialListing" method="post">
|
||||||
<input class="form-check-input" type="checkbox" id="showArchiveId"
|
<input class="form-check-input" type="checkbox" id="showArchiveId"
|
||||||
name="showArchive" value="1" <?php echo $showArchive ? "checked" : " " ?>
|
name="showArchive" value="1" <?php echo $showArchive ? "checked" : " " ?>
|
||||||
|
|||||||
@ -429,7 +429,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- form -->
|
<!-- form -->
|
||||||
<form method="post"
|
<form
|
||||||
|
id="additionalEntriesForm"
|
||||||
|
method="post"
|
||||||
enctype="multipart/form-data"
|
enctype="multipart/form-data"
|
||||||
action="<?php echo base_url(); ?>addNewCoatingMachineDetails?month=<?= $month; ?>">
|
action="<?php echo base_url(); ?>addNewCoatingMachineDetails?month=<?= $month; ?>">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
@ -626,7 +628,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary">Save </button>
|
<button type="submit" class="btn btn-primary submit-btn">Save </button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -650,7 +652,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- form -->
|
<!-- form -->
|
||||||
<form method="post" id="editCoatingMachineDetailModalFormId"
|
<form method="post" id="editEntriesForm"
|
||||||
enctype="multipart/form-data"
|
enctype="multipart/form-data"
|
||||||
action="<?php echo base_url(); ?>updateCoatingMachineDetails?month=<?= $month; ?>">
|
action="<?php echo base_url(); ?>updateCoatingMachineDetails?month=<?= $month; ?>">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
@ -661,7 +663,7 @@
|
|||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="editDateId">Date</label>
|
<label for="editDateId">Date</label>
|
||||||
<span class="badge mandatory">*</span>
|
<span class="badge mandatory">*</span>
|
||||||
<input type="date" class="form-control" id="editDateId" name="date" value="" required>
|
<input type="date" class="form-control" id="editDateId" name="date" value="" required readonly>
|
||||||
<input type="hidden" name="editCoatingMachineDetailId" id="editCoatingMachineDetailId">
|
<input type="hidden" name="editCoatingMachineDetailId" id="editCoatingMachineDetailId">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -847,7 +849,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal" id="cancelBtn">Cancel</button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal" id="cancelBtn">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary">Save </button>
|
<button type="submit" class="btn btn-primary submit-btn">Save </button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -944,8 +946,8 @@
|
|||||||
<th class="celda_encabezado_general">Total Coating</th>
|
<th class="celda_encabezado_general">Total Coating</th>
|
||||||
<th class="celda_encabezado_general">Total Coating Sand(kg)</th>
|
<th class="celda_encabezado_general">Total Coating Sand(kg)</th>
|
||||||
<th class="celda_encabezado_general">Total Gas Consumption</th>
|
<th class="celda_encabezado_general">Total Gas Consumption</th>
|
||||||
<th class="celda_encabezado_general">Hour Gas</th>
|
<th class="celda_encabezado_general">Per Hour Gas</th>
|
||||||
<th class="celda_encabezado_general">Hour QTY(kg)</th>
|
<th class="celda_encabezado_general">Per Hour QTY(kg)</th>
|
||||||
<th class="celda_encabezado_general">Action</th>
|
<th class="celda_encabezado_general">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -984,7 +986,8 @@
|
|||||||
<!-- td:eq(4) -->
|
<!-- td:eq(4) -->
|
||||||
<td class="celda_normal"><?php echo $record['machineRunningInHrs'] ?? ' ' ?></td>
|
<td class="celda_normal"><?php echo $record['machineRunningInHrs'] ?? ' ' ?></td>
|
||||||
<!-- td:eq(5) -->
|
<!-- td:eq(5) -->
|
||||||
<td class="celda_normal"><?php echo $record['customerName'] ?? '' ?></td>
|
<td class="celda_normal"
|
||||||
|
style="text-align: left !important;"><?php echo $record['customerName'] ?? '' ?></td>
|
||||||
<!-- td:eq(6) -->
|
<!-- td:eq(6) -->
|
||||||
<td class="celda_normal"><?php echo $record['grade'] ?? ' ' ?></td>
|
<td class="celda_normal"><?php echo $record['grade'] ?? ' ' ?></td>
|
||||||
<!-- td:eq(7) -->
|
<!-- td:eq(7) -->
|
||||||
@ -994,9 +997,9 @@
|
|||||||
<!-- td:eq(9) -->
|
<!-- td:eq(9) -->
|
||||||
<td class="celda_normal"><?php echo $record['totalGasConsumption'] ?></td>
|
<td class="celda_normal"><?php echo $record['totalGasConsumption'] ?></td>
|
||||||
<!-- td:eq(10) -->
|
<!-- td:eq(10) -->
|
||||||
<td class="celda_normal"><?php echo $record['perHourGasConsumption'] ?? '' ?></td>
|
<td class="celda_normal"><?php echo round($record['perHourGasConsumption']) ?? '' ?></td>
|
||||||
<!-- td:eq(11) -->
|
<!-- td:eq(11) -->
|
||||||
<td class="celda_normal"><?php echo $record['perHourCoatingSandQTY'] ?? '' ?></td>
|
<td class="celda_normal"><?php echo round($record['perHourCoatingSandQTY']) ?? '' ?></td>
|
||||||
<!-- td:eq(12) -->
|
<!-- td:eq(12) -->
|
||||||
<!-- edit and download option..!! -->
|
<!-- edit and download option..!! -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal">
|
||||||
@ -1069,8 +1072,8 @@
|
|||||||
<td class="celda_normal "><?= $summary['totalCoating'] ?></td>
|
<td class="celda_normal "><?= $summary['totalCoating'] ?></td>
|
||||||
<td class="celda_normal "><?= $summary['totalCoatingSandInKg'] ?></td>
|
<td class="celda_normal "><?= $summary['totalCoatingSandInKg'] ?></td>
|
||||||
<td class="celda_normal "><?= $summary['totalGasConsumption'] ?></td>
|
<td class="celda_normal "><?= $summary['totalGasConsumption'] ?></td>
|
||||||
<td class="celda_normal "><?= number_format($summary['totalGasConsumption'] / $summary['totalMachineRunningHrs'], 2) ?> (avg)</td>
|
<td class="celda_normal "><?= round($summary['totalGasConsumption'] / $summary['totalMachineRunningHrs']) ?> (A)</td>
|
||||||
<td class="celda_normal "><?= number_format($summary['totalCoatingSandInKg'] / $summary['totalMachineRunningHrs'], 2) ?> (avg)</td>
|
<td class="celda_normal "><?= round($summary['totalCoatingSandInKg'] / $summary['totalMachineRunningHrs']) ?> (A)</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
|
||||||
@ -1085,6 +1088,8 @@
|
|||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -1093,6 +1098,12 @@
|
|||||||
<h5 align="center" style="color:grey;">
|
<h5 align="center" style="color:grey;">
|
||||||
No Coating Machine Details present in this month
|
No Coating Machine Details present in this month
|
||||||
</h5>
|
</h5>
|
||||||
|
<?php }else{?>
|
||||||
|
<br>
|
||||||
|
<p align="center">Note :- (A) -> Average</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
@ -1838,8 +1849,10 @@
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
@ -1912,3 +1925,26 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.getElementById('additionalEntriesForm').addEventListener('submit', function() {
|
||||||
|
event.preventDefault(); // Prevent default form submission
|
||||||
|
const submitButtons = document.getElementsByClassName('submit-btn');
|
||||||
|
for (let i = 0; i < submitButtons.length; i++) {
|
||||||
|
submitButtons[i].disabled = true;
|
||||||
|
submitButtons[i].innerText = 'Submitting...';
|
||||||
|
}
|
||||||
|
this.submit(); // Submit the form programmatically
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('editEntriesForm').addEventListener('submit', function() {
|
||||||
|
event.preventDefault(); // Prevent default form submission
|
||||||
|
const submitButtons = document.getElementsByClassName('submit-btn');
|
||||||
|
for (let i = 0; i < submitButtons.length; i++) {
|
||||||
|
submitButtons[i].disabled = true;
|
||||||
|
submitButtons[i].innerText = 'Submitting...';
|
||||||
|
}
|
||||||
|
this.submit(); // Submit the form programmatically
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|||||||
@ -212,7 +212,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
/* Allows text to wrap */
|
/* Allows text to wrap */
|
||||||
@ -1364,13 +1364,15 @@ foreach ($period as $day) {
|
|||||||
}).catch(err => console.log("Error enabling fullscreen:", err));
|
}).catch(err => console.log("Error enabling fullscreen:", err));
|
||||||
} else {
|
} else {
|
||||||
document.exitFullscreen().then(() => {
|
document.exitFullscreen().then(() => {
|
||||||
|
div.style.width = "100%";
|
||||||
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -213,7 +213,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1733,8 +1733,10 @@ foreach ($period as $day) {
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -462,7 +462,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<form action="<?php echo base_url("/addOrEditdrierMachineDetails") ?>" method="POST">
|
<form id="additionalEntriesForm" action="<?php echo base_url("/addOrEditdrierMachineDetails") ?>" method="POST">
|
||||||
<!--first row -->
|
<!--first row -->
|
||||||
<?php $calendarStartDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('first day of this month')->format('Y-m-d'); ?>
|
<?php $calendarStartDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('first day of this month')->format('Y-m-d'); ?>
|
||||||
<?php $calendarEndDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('last day of this month')->format('Y-m-d'); ?>
|
<?php $calendarEndDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('last day of this month')->format('Y-m-d'); ?>
|
||||||
@ -596,7 +596,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary float-right">Add</button>
|
<button type="submit" class="btn btn-primary float-right submit-btn">Add</button>
|
||||||
|
|
||||||
|
|
||||||
<!-- hidden fields -->
|
<!-- hidden fields -->
|
||||||
@ -618,7 +618,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<form action="<?php echo base_url("/addOrEditdrierMachineDetails") ?>" method="POST">
|
<form id="editEntriesForm" action="<?php echo base_url("/addOrEditdrierMachineDetails") ?>" method="POST">
|
||||||
<!--first row -->
|
<!--first row -->
|
||||||
<?php $calendarStartDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('first day of this month')->format('Y-m-d'); ?>
|
<?php $calendarStartDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('first day of this month')->format('Y-m-d'); ?>
|
||||||
<?php $calendarEndDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('last day of this month')->format('Y-m-d'); ?>
|
<?php $calendarEndDate = DateTime::createFromFormat('M-Y', $datefordropdown)->modify('last day of this month')->format('Y-m-d'); ?>
|
||||||
@ -626,7 +626,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label class="form" for="editEntryDateId">Date</label>
|
<label class="form" for="editEntryDateId">Date</label>
|
||||||
<input type="date" class="form-control" id="editEntryDateId" name="date" value=""
|
<input type="date" class="form-control" id="editEntryDateId" name="date" value=""
|
||||||
required>
|
required readonly>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label class="form" for="editEntryDrierOnTimeId">Drier On Time</label>
|
<label class="form" for="editEntryDrierOnTimeId">Drier On Time</label>
|
||||||
@ -752,7 +752,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary float-right">Update</button>
|
<button type="submit" class="btn btn-primary float-right submit-btn">Update</button>
|
||||||
|
|
||||||
|
|
||||||
<!-- hidden fields -->
|
<!-- hidden fields -->
|
||||||
@ -867,22 +867,22 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
|
|
||||||
<!-- td:eq(7) sand_dried_qty -->
|
<!-- td:eq(7) sand_dried_qty -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal">
|
||||||
<?php echo (int)$a['sand_dried_qty']; ?>
|
<?php echo round($a['sand_dried_qty']); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- td:eq(8) total_gas_consumption -->
|
<!-- td:eq(8) total_gas_consumption -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal">
|
||||||
<?php echo $a['total_gas_consumption']; ?>
|
<?php echo round($a['total_gas_consumption']); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- td:eq(9) gas_per_ton -->
|
<!-- td:eq(9) gas_per_ton -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal">
|
||||||
<?php echo $a['gas_per_ton']; ?>
|
<?php echo round($a['gas_per_ton']); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<!-- td:eq(10) qty_per_hours -->
|
<!-- td:eq(10) qty_per_hours -->
|
||||||
<td class="celda_normal">
|
<td class="celda_normal">
|
||||||
<?php echo (int)$a['qty_per_hours']; ?>
|
<?php echo round($a['qty_per_hours']); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
@ -942,7 +942,10 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
$summary['input_sand_qty'] += $a['input_sand_qty'] == "-" ? 0 : (float) $a['input_sand_qty'];
|
$summary['input_sand_qty'] += $a['input_sand_qty'] == "-" ? 0 : (float) $a['input_sand_qty'];
|
||||||
$summary['moisture_loss_qty'] += $a['moisture_loss_qty'] == "-" ? 0 : (float) $a['moisture_loss_qty'];
|
$summary['moisture_loss_qty'] += $a['moisture_loss_qty'] == "-" ? 0 : (float) $a['moisture_loss_qty'];
|
||||||
$summary['sand_dried_qty'] += $a['sand_dried_qty'] == "-" ? 0 : (float) $a['sand_dried_qty'];
|
$summary['sand_dried_qty'] += $a['sand_dried_qty'] == "-" ? 0 : (float) $a['sand_dried_qty'];
|
||||||
|
$summary['gas_per_ton'] = round(($summary['total_gas_consumption'] / $summary['sand_dried_qty']));
|
||||||
|
$summary['qty_per_hrs'] = round( ($summary['sand_dried_qty'] / $summary['drier_running_hours']) );
|
||||||
$summary['dust_qty'] += $a['dust_qty'] == "-" ? 0 : (float) $a['dust_qty'];
|
$summary['dust_qty'] += $a['dust_qty'] == "-" ? 0 : (float) $a['dust_qty'];
|
||||||
|
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
|
||||||
@ -962,8 +965,8 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
<td class="celda_normal ">-</td>
|
<td class="celda_normal ">-</td>
|
||||||
<td class="celda_normal "><?= $summary['sand_dried_qty'] ?></td>
|
<td class="celda_normal "><?= $summary['sand_dried_qty'] ?></td>
|
||||||
<td class="celda_normal "><?= $summary['total_gas_consumption'] ?></td>
|
<td class="celda_normal "><?= $summary['total_gas_consumption'] ?></td>
|
||||||
<td class="celda_normal "></td>
|
<td class="celda_normal "><?= $summary['gas_per_ton']?>(A)</td>
|
||||||
<td class="celda_normal "></td>
|
<td class="celda_normal "><?= $summary['qty_per_hrs']?>(A)</td>
|
||||||
<td class="celda_normal "><?= $summary['moisture_loss_qty'] ?></td>
|
<td class="celda_normal "><?= $summary['moisture_loss_qty'] ?></td>
|
||||||
<td class="celda_normal "><?= $summary['dust_qty'] ?></td>
|
<td class="celda_normal "><?= $summary['dust_qty'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -979,11 +982,16 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php }else{?>
|
||||||
|
<br>
|
||||||
|
<p align="center">Note :- (A) -> Average</p>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div><!-- End table-responsive -->
|
</div><!-- End table-responsive -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -1471,8 +1479,10 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
@ -1543,4 +1553,27 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.getElementById('additionalEntriesForm').addEventListener('submit', function() {
|
||||||
|
event.preventDefault(); // Prevent default form submission
|
||||||
|
const submitButtons = document.getElementsByClassName('submit-btn');
|
||||||
|
for (let i = 0; i < submitButtons.length; i++) {
|
||||||
|
submitButtons[i].disabled = true;
|
||||||
|
submitButtons[i].innerText = 'Submitting...';
|
||||||
|
}
|
||||||
|
this.submit(); // Submit the form programmatically
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('editEntriesForm').addEventListener('submit', function() {
|
||||||
|
event.preventDefault(); // Prevent default form submission
|
||||||
|
const submitButtons = document.getElementsByClassName('submit-btn');
|
||||||
|
for (let i = 0; i < submitButtons.length; i++) {
|
||||||
|
submitButtons[i].disabled = true;
|
||||||
|
submitButtons[i].innerText = 'Submitting...';
|
||||||
|
}
|
||||||
|
this.submit(); // Submit the form programmatically
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -217,7 +217,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -342,7 +342,7 @@
|
|||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-2 mt-2">
|
<div class="col-2 mt-2 ml-4">
|
||||||
|
|
||||||
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
||||||
class="form-control "
|
class="form-control "
|
||||||
@ -394,7 +394,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-2">
|
<div class="col-4">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -967,8 +967,10 @@
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -202,7 +202,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -222,7 +222,7 @@
|
|||||||
.table-responsive {
|
.table-responsive {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
max-height: 500px;
|
max-height: 450px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
@ -453,16 +453,15 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="celda_encabezado_general" rowspan="1" colspan="1">RIPL </th>
|
<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" colspan="6">Gas Stock </th>
|
||||||
<th class="celda_encabezado_general">FBD 10 Ton Dryer</th>
|
<th class="celda_encabezado_general" colspan="2">FBD 10 Ton Dryer</th>
|
||||||
<th class="celda_encabezado_general">Sand Dried</th>
|
<th class="celda_encabezado_general" colspan="2">Coating Machine</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 </th>
|
<th class="celda_encabezado_general" colspan="2">TRP </th>
|
||||||
<th class="celda_encabezado_general">Sand TRP</th>
|
<th class="celda_encabezado_general">Sand TRP</th>
|
||||||
<th class="celda_encabezado_general">Rotary Drier </th>
|
<th class="celda_encabezado_general">Rotary Drier </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
<!-- gas stock details stored -->
|
||||||
<th class="celda_encabezado_general">Date </th>
|
<th class="celda_encabezado_general">Date </th>
|
||||||
<th class="celda_encabezado_general">Opening Stock</th>
|
<th class="celda_encabezado_general">Opening Stock</th>
|
||||||
<th class="celda_encabezado_general">Purchase(Bharath)</th>
|
<th class="celda_encabezado_general">Purchase(Bharath)</th>
|
||||||
@ -470,10 +469,12 @@
|
|||||||
<th class="celda_encabezado_general">Total</th>
|
<th class="celda_encabezado_general">Total</th>
|
||||||
<th class="celda_encabezado_general">Consumption </th>
|
<th class="celda_encabezado_general">Consumption </th>
|
||||||
<th class="celda_encabezado_general">Balance Stock</th>
|
<th class="celda_encabezado_general">Balance Stock</th>
|
||||||
|
<!-- gas stock details stored -->
|
||||||
|
|
||||||
<th class="celda_encabezado_general">Consumption </th>
|
<th class="celda_encabezado_general">Consumption </th>
|
||||||
<th class="celda_encabezado_general">Ton </th>
|
<th class="celda_encabezado_general">Sand Dried Qty </th>
|
||||||
<th class="celda_encabezado_general">Consumption</th>
|
<th class="celda_encabezado_general">Consumption</th>
|
||||||
<th class="celda_encabezado_general">Ton </th>
|
<th class="celda_encabezado_general">Sand Coated Qty </th>
|
||||||
<th class="celda_encabezado_general">Panel Consumption</th>
|
<th class="celda_encabezado_general">Panel Consumption</th>
|
||||||
<th class="celda_encabezado_general">Physical Consumption</th>
|
<th class="celda_encabezado_general">Physical Consumption</th>
|
||||||
<th class="celda_encabezado_general">Ton </th>
|
<th class="celda_encabezado_general">Ton </th>
|
||||||
@ -1272,8 +1273,10 @@
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1958,8 +1958,10 @@
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -213,7 +213,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,6 +261,11 @@
|
|||||||
.card {
|
.card {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#powerStockDetailsTableId { /* Replace with your table's actual ID or selector */
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
@ -595,7 +600,7 @@ foreach ($period as $day) {
|
|||||||
$currentDate = date('d-m-Y');
|
$currentDate = date('d-m-Y');
|
||||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $powerStockDetails[0]['date'])->format('d-m-Y');
|
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $powerStockDetails[0]['date'])->format('d-m-Y');
|
||||||
if ($dateInMonthDmYFormat === $currentDate) {
|
if ($dateInMonthDmYFormat === $currentDate) {
|
||||||
echo 'style="background: rgb(232, 245, 231);"';
|
echo 'style="background: #cef0ad;"';
|
||||||
}
|
}
|
||||||
?>>
|
?>>
|
||||||
|
|
||||||
@ -830,7 +835,7 @@ foreach ($period as $day) {
|
|||||||
$currentDate = date('d-m-Y');
|
$currentDate = date('d-m-Y');
|
||||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $dateInMonth)->format('d-m-Y');
|
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $dateInMonth)->format('d-m-Y');
|
||||||
if ($dateInMonthDmYFormat === $currentDate) {
|
if ($dateInMonthDmYFormat === $currentDate) {
|
||||||
echo 'style="background: rgb(232, 245, 231);"';
|
echo 'style="background: #cef0ad;"';
|
||||||
}
|
}
|
||||||
?>>
|
?>>
|
||||||
|
|
||||||
@ -1623,8 +1628,10 @@ foreach ($period as $day) {
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -213,7 +213,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -583,7 +583,7 @@ foreach ($period as $day) {
|
|||||||
$currentDate = date('d-m-Y');
|
$currentDate = date('d-m-Y');
|
||||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $resinStockDetails[0]['date'])->format('d-m-Y');
|
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $resinStockDetails[0]['date'])->format('d-m-Y');
|
||||||
if ($dateInMonthDmYFormat === $currentDate) {
|
if ($dateInMonthDmYFormat === $currentDate) {
|
||||||
echo 'style="background: rgb(232, 245, 231);"';
|
echo 'style="background: #cef0ad;"';
|
||||||
}
|
}
|
||||||
?>>
|
?>>
|
||||||
<?php foreach ($resinStockDetails as $resinStockIndex => $resinStock) {
|
<?php foreach ($resinStockDetails as $resinStockIndex => $resinStock) {
|
||||||
@ -705,7 +705,7 @@ foreach ($period as $day) {
|
|||||||
$currentDate = date('d-m-Y');
|
$currentDate = date('d-m-Y');
|
||||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $dateInMonth)->format('d-m-Y');
|
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $dateInMonth)->format('d-m-Y');
|
||||||
if ($dateInMonthDmYFormat === $currentDate) {
|
if ($dateInMonthDmYFormat === $currentDate) {
|
||||||
echo 'style="background: rgb(232, 245, 231);"';
|
echo 'style="background: #cef0ad ;"';
|
||||||
}
|
}
|
||||||
?>>
|
?>>
|
||||||
<?php
|
<?php
|
||||||
@ -1316,8 +1316,10 @@ foreach ($period as $day) {
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -210,7 +210,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
/* Allows text to wrap */
|
/* Allows text to wrap */
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@ -305,6 +305,12 @@
|
|||||||
.card {
|
.card {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#trpProductionStockDetailsTableId { /* Replace with your table's actual ID or selector */
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
@ -2567,11 +2573,13 @@ $timeOtions[] = "12:00 AM";
|
|||||||
} else {
|
} else {
|
||||||
document.exitFullscreen().then(() => {
|
document.exitFullscreen().then(() => {
|
||||||
div.style.width = "100%";
|
div.style.width = "100%";
|
||||||
div.style.height = "100%";
|
div.style.height = "auto";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -202,7 +202,7 @@
|
|||||||
background-color: #50bbd9;
|
background-color: #50bbd9;
|
||||||
/* Green background */
|
/* Green background */
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border: 1px solid #ddd;
|
border: 2px solid ;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -328,7 +328,7 @@
|
|||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-2 mt-2">
|
<div class="col-2 mt-2 ml-4">
|
||||||
|
|
||||||
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
||||||
class="form-control "
|
class="form-control "
|
||||||
@ -380,7 +380,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-2">
|
<div class="col-4">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -998,8 +998,10 @@
|
|||||||
div.style.height = "100%";
|
div.style.height = "100%";
|
||||||
|
|
||||||
// Reset .table-responsive height when exiting fullscreen
|
// Reset .table-responsive height when exiting fullscreen
|
||||||
|
// If .table-responsive exists, set its height to 90vh
|
||||||
if (tableResponsive) {
|
if (tableResponsive) {
|
||||||
tableResponsive.style.height = "auto";
|
tableResponsive.style.maxHeight = "450px";
|
||||||
|
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||||
}
|
}
|
||||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user