stock changes 05-04-2025
This commit is contained in:
parent
87fc519aa9
commit
0c61c66b36
@ -49,11 +49,20 @@
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="col-10 mt-2">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Material Master Details</h4>
|
||||
</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>
|
||||
<?php
|
||||
helper('form');
|
||||
@ -74,7 +83,7 @@
|
||||
<div class="card">
|
||||
|
||||
<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;">
|
||||
|
||||
<input type="hidden" name="table" value="requisition">
|
||||
@ -116,12 +125,10 @@
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
</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 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">
|
||||
<input class="form-check-input" type="checkbox" id="showArchiveId"
|
||||
name="showArchive" value="1" <?php echo $showArchive ? "checked" : " " ?>
|
||||
|
||||
@ -429,7 +429,9 @@
|
||||
</div>
|
||||
|
||||
<!-- form -->
|
||||
<form method="post"
|
||||
<form
|
||||
id="additionalEntriesForm"
|
||||
method="post"
|
||||
enctype="multipart/form-data"
|
||||
action="<?php echo base_url(); ?>addNewCoatingMachineDetails?month=<?= $month; ?>">
|
||||
<div class="modal-body">
|
||||
@ -626,7 +628,7 @@
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<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>
|
||||
</form>
|
||||
</div>
|
||||
@ -650,7 +652,7 @@
|
||||
</div>
|
||||
|
||||
<!-- form -->
|
||||
<form method="post" id="editCoatingMachineDetailModalFormId"
|
||||
<form method="post" id="editEntriesForm"
|
||||
enctype="multipart/form-data"
|
||||
action="<?php echo base_url(); ?>updateCoatingMachineDetails?month=<?= $month; ?>">
|
||||
<div class="modal-body">
|
||||
@ -661,7 +663,7 @@
|
||||
<div class="form-group col-md-3">
|
||||
<label for="editDateId">Date</label>
|
||||
<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">
|
||||
</div>
|
||||
|
||||
@ -847,7 +849,7 @@
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<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>
|
||||
</form>
|
||||
</div>
|
||||
@ -944,8 +946,8 @@
|
||||
<th class="celda_encabezado_general">Total Coating</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">Hour Gas</th>
|
||||
<th class="celda_encabezado_general">Hour QTY(kg)</th>
|
||||
<th class="celda_encabezado_general">Per Hour Gas</th>
|
||||
<th class="celda_encabezado_general">Per Hour QTY(kg)</th>
|
||||
<th class="celda_encabezado_general">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -984,7 +986,8 @@
|
||||
<!-- td:eq(4) -->
|
||||
<td class="celda_normal"><?php echo $record['machineRunningInHrs'] ?? ' ' ?></td>
|
||||
<!-- 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 class="celda_normal"><?php echo $record['grade'] ?? ' ' ?></td>
|
||||
<!-- td:eq(7) -->
|
||||
@ -994,9 +997,9 @@
|
||||
<!-- td:eq(9) -->
|
||||
<td class="celda_normal"><?php echo $record['totalGasConsumption'] ?></td>
|
||||
<!-- 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 class="celda_normal"><?php echo $record['perHourCoatingSandQTY'] ?? '' ?></td>
|
||||
<td class="celda_normal"><?php echo round($record['perHourCoatingSandQTY']) ?? '' ?></td>
|
||||
<!-- td:eq(12) -->
|
||||
<!-- edit and download option..!! -->
|
||||
<td class="celda_normal">
|
||||
@ -1069,8 +1072,8 @@
|
||||
<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 "><?= number_format($summary['totalGasConsumption'] / $summary['totalMachineRunningHrs'], 2) ?> (avg)</td>
|
||||
<td class="celda_normal "><?= number_format($summary['totalCoatingSandInKg'] / $summary['totalMachineRunningHrs'], 2) ?> (avg)</td>
|
||||
<td class="celda_normal "><?= round($summary['totalGasConsumption'] / $summary['totalMachineRunningHrs']) ?> (A)</td>
|
||||
<td class="celda_normal "><?= round($summary['totalCoatingSandInKg'] / $summary['totalMachineRunningHrs']) ?> (A)</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
@ -1085,14 +1088,22 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
<?php if (empty($coatingMachineDetails)) { ?>
|
||||
<h5 align="center" style="color:grey;">
|
||||
No Coating Machine Details present in this month
|
||||
</h5>
|
||||
<?php }else{?>
|
||||
<br>
|
||||
<p align="center">Note :- (A) -> Average</p>
|
||||
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@ -1838,8 +1849,10 @@
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
@ -1912,3 +1925,26 @@
|
||||
|
||||
</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;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
padding: 10px;
|
||||
white-space: normal;
|
||||
/* Allows text to wrap */
|
||||
@ -1364,13 +1364,15 @@ foreach ($period as $day) {
|
||||
}).catch(err => console.log("Error enabling fullscreen:", err));
|
||||
} else {
|
||||
document.exitFullscreen().then(() => {
|
||||
div.style.width = "100%";
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
|
||||
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
|
||||
@ -213,7 +213,7 @@
|
||||
background-color: #50bbd9;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@ -1733,8 +1733,10 @@ foreach ($period as $day) {
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
@ -462,7 +462,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
</div>
|
||||
<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 -->
|
||||
<?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'); ?>
|
||||
@ -596,7 +596,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
</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 -->
|
||||
@ -618,7 +618,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
</div>
|
||||
<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 -->
|
||||
<?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'); ?>
|
||||
@ -626,7 +626,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
<div class="col-md-3">
|
||||
<label class="form" for="editEntryDateId">Date</label>
|
||||
<input type="date" class="form-control" id="editEntryDateId" name="date" value=""
|
||||
required>
|
||||
required readonly>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="form" for="editEntryDrierOnTimeId">Drier On Time</label>
|
||||
@ -673,7 +673,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
<option value="<?= $value->SupplierID; ?>"> <?= $value->SupplierName; ?> </option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- input sand qty -->
|
||||
<div class="col-md-3">
|
||||
@ -752,7 +752,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
</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 -->
|
||||
@ -867,22 +867,22 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
|
||||
<!-- td:eq(7) sand_dried_qty -->
|
||||
<td class="celda_normal">
|
||||
<?php echo (int)$a['sand_dried_qty']; ?>
|
||||
<?php echo round($a['sand_dried_qty']); ?>
|
||||
</td>
|
||||
|
||||
<!-- td:eq(8) total_gas_consumption -->
|
||||
<td class="celda_normal">
|
||||
<?php echo $a['total_gas_consumption']; ?>
|
||||
<?php echo round($a['total_gas_consumption']); ?>
|
||||
</td>
|
||||
|
||||
<!-- td:eq(9) gas_per_ton -->
|
||||
<td class="celda_normal">
|
||||
<?php echo $a['gas_per_ton']; ?>
|
||||
<?php echo round($a['gas_per_ton']); ?>
|
||||
</td>
|
||||
|
||||
<!-- td:eq(10) qty_per_hours -->
|
||||
<td class="celda_normal">
|
||||
<?php echo (int)$a['qty_per_hours']; ?>
|
||||
<?php echo round($a['qty_per_hours']); ?>
|
||||
</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['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['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'];
|
||||
|
||||
} ?>
|
||||
|
||||
|
||||
@ -962,8 +965,8 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
<td class="celda_normal ">-</td>
|
||||
<td class="celda_normal "><?= $summary['sand_dried_qty'] ?></td>
|
||||
<td class="celda_normal "><?= $summary['total_gas_consumption'] ?></td>
|
||||
<td class="celda_normal "></td>
|
||||
<td class="celda_normal "></td>
|
||||
<td class="celda_normal "><?= $summary['gas_per_ton']?>(A)</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['dust_qty'] ?></td>
|
||||
</tr>
|
||||
@ -979,7 +982,12 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<?php }else{?>
|
||||
<br>
|
||||
<p align="center">Note :- (A) -> Average</p>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1471,8 +1479,10 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).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>
|
||||
@ -217,7 +217,7 @@
|
||||
background-color: #50bbd9;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@ -342,7 +342,7 @@
|
||||
<div class="col-3">
|
||||
</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" ?>"
|
||||
class="form-control "
|
||||
@ -394,7 +394,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-2">
|
||||
<div class="col-4">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -967,8 +967,10 @@
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
@ -202,7 +202,7 @@
|
||||
background-color: #50bbd9;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@ -222,7 +222,7 @@
|
||||
.table-responsive {
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
max-height: 500px;
|
||||
max-height: 450px;
|
||||
max-width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
@ -453,16 +453,15 @@
|
||||
<tr>
|
||||
<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">FBD 10 Ton Dryer</th>
|
||||
<th class="celda_encabezado_general">Sand Dried</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">FBD 10 Ton Dryer</th>
|
||||
<th class="celda_encabezado_general" colspan="2">Coating Machine</th>
|
||||
<th class="celda_encabezado_general" colspan="2">TRP </th>
|
||||
<th class="celda_encabezado_general">Sand TRP</th>
|
||||
<th class="celda_encabezado_general">Rotary Drier </th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<!-- gas stock details stored -->
|
||||
<th class="celda_encabezado_general">Date </th>
|
||||
<th class="celda_encabezado_general">Opening Stock</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">Consumption </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">Ton </th>
|
||||
<th class="celda_encabezado_general">Sand Dried Qty </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">Physical Consumption</th>
|
||||
<th class="celda_encabezado_general">Ton </th>
|
||||
@ -1272,8 +1273,10 @@
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
@ -1958,8 +1958,10 @@
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
@ -213,7 +213,7 @@
|
||||
background-color: #50bbd9;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@ -261,6 +261,11 @@
|
||||
.card {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#powerStockDetailsTableId { /* Replace with your table's actual ID or selector */
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
@ -595,7 +600,7 @@ foreach ($period as $day) {
|
||||
$currentDate = date('d-m-Y');
|
||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $powerStockDetails[0]['date'])->format('d-m-Y');
|
||||
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');
|
||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $dateInMonth)->format('d-m-Y');
|
||||
if ($dateInMonthDmYFormat === $currentDate) {
|
||||
echo 'style="background: rgb(232, 245, 231);"';
|
||||
echo 'style="background: #cef0ad;"';
|
||||
}
|
||||
?>>
|
||||
|
||||
@ -1617,14 +1622,16 @@ foreach ($period as $day) {
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error enabling fullscreen:", err));
|
||||
} else {
|
||||
} else {
|
||||
document.exitFullscreen().then(() => {
|
||||
div.style.width = "100%";
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
@ -213,7 +213,7 @@
|
||||
background-color: #50bbd9;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@ -583,7 +583,7 @@ foreach ($period as $day) {
|
||||
$currentDate = date('d-m-Y');
|
||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $resinStockDetails[0]['date'])->format('d-m-Y');
|
||||
if ($dateInMonthDmYFormat === $currentDate) {
|
||||
echo 'style="background: rgb(232, 245, 231);"';
|
||||
echo 'style="background: #cef0ad;"';
|
||||
}
|
||||
?>>
|
||||
<?php foreach ($resinStockDetails as $resinStockIndex => $resinStock) {
|
||||
@ -705,7 +705,7 @@ foreach ($period as $day) {
|
||||
$currentDate = date('d-m-Y');
|
||||
$dateInMonthDmYFormat = DateTime::createFromFormat('Y-m-d', $dateInMonth)->format('d-m-Y');
|
||||
if ($dateInMonthDmYFormat === $currentDate) {
|
||||
echo 'style="background: rgb(232, 245, 231);"';
|
||||
echo 'style="background: #cef0ad ;"';
|
||||
}
|
||||
?>>
|
||||
<?php
|
||||
@ -1311,16 +1311,18 @@ foreach ($period as $day) {
|
||||
}
|
||||
}).catch(err => console.log("Error enabling fullscreen:", err));
|
||||
} else {
|
||||
document.exitFullscreen().then(() => {
|
||||
div.style.width = "100%";
|
||||
div.style.height = "100%";
|
||||
document.exitFullscreen().then(() => {
|
||||
div.style.width = "100%";
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
}
|
||||
|
||||
$("#searchInput").on("keyup", function () {
|
||||
|
||||
@ -210,7 +210,7 @@
|
||||
background-color: #50bbd9;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
white-space: normal;
|
||||
/* Allows text to wrap */
|
||||
word-wrap: break-word;
|
||||
@ -305,6 +305,12 @@
|
||||
.card {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#trpProductionStockDetailsTableId { /* Replace with your table's actual ID or selector */
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
@ -2566,12 +2572,14 @@ $timeOtions[] = "12:00 AM";
|
||||
}).catch(err => console.log("Error enabling fullscreen:", err));
|
||||
} else {
|
||||
document.exitFullscreen().then(() => {
|
||||
div.style.width = "100%";
|
||||
div.style.height = "100%";
|
||||
div.style.width = "100%";
|
||||
div.style.height = "auto";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
@ -202,7 +202,7 @@
|
||||
background-color: #50bbd9;
|
||||
/* Green background */
|
||||
color: #ffffff;
|
||||
border: 1px solid #ddd;
|
||||
border: 2px solid ;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@ -328,7 +328,7 @@
|
||||
<div class="col-3">
|
||||
</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" ?>"
|
||||
class="form-control "
|
||||
@ -380,7 +380,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-2">
|
||||
<div class="col-4">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@ -998,8 +998,10 @@
|
||||
div.style.height = "100%";
|
||||
|
||||
// Reset .table-responsive height when exiting fullscreen
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.height = "auto";
|
||||
// If .table-responsive exists, set its height to 90vh
|
||||
if (tableResponsive) {
|
||||
tableResponsive.style.maxHeight = "450px";
|
||||
tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed
|
||||
}
|
||||
}).catch(err => console.log("Error exiting fullscreen:", err));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user