stock changes 07-04-2025
This commit is contained in:
parent
0289595c86
commit
cb73af8897
@ -1203,9 +1203,13 @@ class Inwardgateregister_model extends Model
|
||||
|
||||
public function findIgrDetailsForIncomingSilicaSand($materialCodes, $month, $remark)
|
||||
{
|
||||
|
||||
$month = new \DateTime($month . "-01"); // Create DateTime for the first day of the month
|
||||
|
||||
|
||||
$builder = $this->db->table('t_igr_details');
|
||||
|
||||
// 1. Select the necessary columns
|
||||
|
||||
$builder->select(
|
||||
't_igr_details.IGRNO,
|
||||
t_igr_details.MaterialCode,
|
||||
@ -1219,13 +1223,16 @@ class Inwardgateregister_model extends Model
|
||||
issd.*'
|
||||
);
|
||||
|
||||
// 2. Apply the most selective WHERE clause(s) first - in this case, the date range
|
||||
$nowIST = new \DateTime('now', new \DateTimeZone('Asia/Kolkata'));
|
||||
|
||||
$builder->where('Date(t_igr_details.CreatedDate) >=', $nowIST->format('Y-m-01 00:00:00'));
|
||||
$builder->where('Date(t_igr_details.CreatedDate) <=', $nowIST->format('Y-m-t 23:59:59'));
|
||||
$builder->join('t_igr_master igrMast', 'igrMast.IGRNO = t_igr_details.IGRNO');
|
||||
$builder->join('t_incomingsilicasanddetails issd', 'issd.igrNo_fk = t_igr_details.IGRNO AND issd.materialCode = t_igr_details.MaterialCode', 'left');
|
||||
$builder->join('t_materialmaster materialMaster', 'materialMaster.MaterialCode = t_igr_details.MaterialCode');
|
||||
$builder->join('t_configdetails cd', 'cd.key = materialMaster.Category', 'left');
|
||||
$builder->join('t_purchaseorder_master poMaster', 'poMaster.PONO = igrMast.PONO', 'left');
|
||||
$builder->join('t_supplierdetailsn supplierDetails', 'supplierDetails.SupplierID = poMaster.SupplierID', 'left');
|
||||
|
||||
// 3. Apply other WHERE clause conditions
|
||||
$builder->where('Date(t_igr_details.CreatedDate) >=', $month->format('Y-m-01 00:00:00'));
|
||||
$builder->where('Date(t_igr_details.CreatedDate) <=', $month->format('Y-m-t 23:59:59'));
|
||||
$builder->whereIn('t_igr_details.MaterialCode', $materialCodes);
|
||||
$builder->where('t_igr_details.QuantityAsPerInvoice <>', 0);
|
||||
|
||||
@ -1234,25 +1241,15 @@ class Inwardgateregister_model extends Model
|
||||
$builder->where('issd.remark', $remark);
|
||||
}
|
||||
|
||||
// 4. Apply JOIN clauses
|
||||
$builder->join('t_igr_master igrMast', 'igrMast.IGRNO = t_igr_details.IGRNO');
|
||||
$builder->join('t_incomingsilicasanddetails issd', 'issd.igrNo_fk = t_igr_details.IGRNO AND issd.materialCode = t_igr_details.MaterialCode', 'left');
|
||||
$builder->join('t_materialmaster materialMaster', 'materialMaster.MaterialCode = t_igr_details.MaterialCode');
|
||||
$builder->join('t_configdetails cd', 'cd.key = materialMaster.Category', 'left');
|
||||
$builder->join('t_purchaseorder_master poMaster', 'poMaster.PONO = igrMast.PONO', 'left');
|
||||
$builder->join('t_supplierdetailsn supplierDetails', 'supplierDetails.SupplierID = poMaster.SupplierID', 'left');
|
||||
|
||||
// 5. Apply GROUP BY clause
|
||||
$builder->groupBy('t_igr_details.IGRNO, t_igr_details.MaterialCode');
|
||||
|
||||
// 6. Apply ORDER BY clause
|
||||
$builder->orderBy('t_igr_details.CreatedDate', 'asc ');
|
||||
|
||||
// 7. Get the query results
|
||||
$query = $builder->get();
|
||||
|
||||
|
||||
return $query->getResultArray();
|
||||
|
||||
}
|
||||
|
||||
public function getHistoryDetailsforEmail($igr)
|
||||
|
||||
@ -373,13 +373,13 @@
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
<i class="fa fa-table btn-lg mt-2"
|
||||
title="Date Range Filter"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
data-toggle="modal"
|
||||
data-target="#filterModalId">
|
||||
|
||||
@ -387,13 +387,13 @@
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="coatingMachineDetailsExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
@ -402,7 +402,7 @@
|
||||
title="Add Entry"
|
||||
data-target="#coatingMachineDetailModal"
|
||||
data-toggle="modal"
|
||||
style="font-size: x-large; cursor:pointer;">
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)" >
|
||||
</i>
|
||||
|
||||
|
||||
@ -438,11 +438,19 @@
|
||||
|
||||
<div class="form-row">
|
||||
|
||||
<?php $calendarStartDate = DateTime::createFromFormat('M-Y', $month)->modify('first day of this month')->format('Y-m-d'); ?>
|
||||
<?php $calendarEndDate = DateTime::createFromFormat('M-Y', $month)->modify('last day of this month')->format('Y-m-d'); ?>
|
||||
<?php $calendarCurrentDate = DateTime::createFromFormat('M-Y', $month)->format('Y-m-d'); ?>
|
||||
|
||||
<!-- date -->
|
||||
<div class="form-group col-md-3">
|
||||
<label for="dateId">Date</label>
|
||||
<span class="badge mandatory">*</span>
|
||||
<input type="date" class="form-control" id="dateId" name="date" value="" required>
|
||||
<input type="date" class="form-control" id="dateId" name="date"
|
||||
value="<?=$calendarCurrentDate?>"
|
||||
min="<?= $calendarStartDate ?>"
|
||||
max="<?= $calendarEndDate ?>"
|
||||
required>
|
||||
</div>
|
||||
|
||||
<!-- shift -->
|
||||
|
||||
@ -349,7 +349,7 @@ foreach ($period as $day) {
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style=" padding: 8px;margin-bottom: 10px;width: 250px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
@ -358,7 +358,7 @@ foreach ($period as $day) {
|
||||
if ($month == date('M-Y')) {
|
||||
?>
|
||||
<i class="fa fa-cog btn-lg mt-2"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
title="Customize"
|
||||
data-target="#customizeModalId"
|
||||
data-toggle="modal">
|
||||
@ -373,25 +373,25 @@ foreach ($period as $day) {
|
||||
title="Navigation"
|
||||
data-toggle="modal"
|
||||
data-target="#bs-example-modal-lg"
|
||||
style="font-size: x-large; cursor:pointer;">
|
||||
style="font-size: x-large; cursor:pointer; color: #bd0906">
|
||||
</i>
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="bagStockExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fas fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
|
||||
@ -337,7 +337,7 @@ foreach ($period as $day) {
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style=" padding: 8px;margin-bottom: 10px;width: 250px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
@ -346,7 +346,7 @@ foreach ($period as $day) {
|
||||
if ($month == date('M-Y')) {
|
||||
?>
|
||||
<i class="fa fa-cog btn-lg mt-2"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
title="Customize"
|
||||
data-target="#customizeModalId"
|
||||
data-toggle="modal">
|
||||
@ -361,25 +361,26 @@ foreach ($period as $day) {
|
||||
title="Navigation"
|
||||
data-toggle="modal"
|
||||
data-target="#bs-example-modal-lg"
|
||||
style="font-size: x-large; cursor:pointer;">
|
||||
style="font-size: x-large; cursor:pointer; color: #bd0906">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
id="dieselMachineStockDetailsExport ">
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="bagStockExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fas fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
|
||||
@ -339,13 +339,13 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px; ">
|
||||
|
||||
|
||||
<i class="fa fa-table btn-lg mt-2"
|
||||
title="Date Range Filter"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
data-toggle="modal"
|
||||
data-target="#filterModalId">
|
||||
|
||||
@ -353,13 +353,13 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="drierMachineDetailsExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
@ -368,7 +368,7 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
title="Add Entry"
|
||||
data-target="#additionalEntriesModalId"
|
||||
data-toggle="modal"
|
||||
style="font-size: x-large; cursor:pointer;">
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)">
|
||||
</i>
|
||||
|
||||
|
||||
@ -466,10 +466,12 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
|
||||
<!--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'); ?>
|
||||
<?php $calendarCurrentDate = DateTime::createFromFormat('M-Y', $datefordropdown)->format('Y-m-d'); ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label class="form" for="additionalEntryDateId">Date</label>
|
||||
<input type="date" class="form-control" id="additionalEntryDateId" name="date" value="<?= $calendarStartDate ?>"
|
||||
<input type="date" class="form-control" id="additionalEntryDateId" name="date" value="<?= $calendarCurrentDate ?>"
|
||||
min="<?= $calendarStartDate ?>" max="<?= $calendarEndDate ?>" required>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
@ -359,13 +359,13 @@
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 150px;border: 1px solid #ccc;
|
||||
style="padding: 8px;margin-bottom: 10px;width: 150px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
<i class="fa fa-table btn-lg mt-2"
|
||||
title="Date Range Filter"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
data-toggle="modal"
|
||||
data-target="#filterModalId">
|
||||
|
||||
@ -373,20 +373,20 @@
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="dustAndRoughStockExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fa fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
|
||||
@ -335,13 +335,13 @@
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px; border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
<i class="fa fa-table btn-lg mt-2"
|
||||
title="Date Range Filter"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105);"
|
||||
data-toggle="modal"
|
||||
data-target="#filterModalId">
|
||||
|
||||
@ -349,20 +349,20 @@
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba;"
|
||||
id="gasStockDetailsExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fa fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
|
||||
@ -340,27 +340,27 @@
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px; border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="incomingSilicaSandDetailsExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fas fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
@ -1577,11 +1577,16 @@
|
||||
|
||||
if (i === 0 || i === 1) {
|
||||
newPlus20Loss += Number(result[i]['WEIGH OF SAND']);
|
||||
|
||||
|
||||
newSieveLossQty = (parseFloat(qty) * newPlus20Loss) / 100;
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (i === 0 || i === 1 || i === 2) {
|
||||
newPlus30Loss += Number(result[i]['WEIGH OF SAND']);
|
||||
newSieveLossQty = (parseFloat(qty) * newPlus20Loss) / 100;
|
||||
|
||||
}
|
||||
|
||||
totalWeighOfSand += Number(result[i]['WEIGH OF SAND']);
|
||||
|
||||
@ -262,10 +262,10 @@
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#powerStockDetailsTableId { /* Replace with your table's actual ID or selector */
|
||||
#powerStockDetailsTableId {
|
||||
/* Replace with your table's actual ID or selector */
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
@ -344,7 +344,7 @@ foreach ($period as $day) {
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style=" padding: 8px;margin-bottom: 10px;width: 250px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
@ -353,7 +353,7 @@ foreach ($period as $day) {
|
||||
if ($month == date('M-Y')) {
|
||||
?>
|
||||
<i class="fa fa-cog btn-lg mt-2"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
title="Customize"
|
||||
data-target="#customizeModalId"
|
||||
data-toggle="modal">
|
||||
@ -368,25 +368,25 @@ foreach ($period as $day) {
|
||||
title="Navigation"
|
||||
data-toggle="modal"
|
||||
data-target="#bs-example-modal-lg"
|
||||
style="font-size: x-large; cursor:pointer;">
|
||||
style="font-size: x-large; cursor:pointer; color: #bd0906">
|
||||
</i>
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
id="powerConsumptionExport ">
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="bagStockExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fas fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
@ -1667,12 +1667,9 @@ foreach ($period as $day) {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
//getting modal backdrop inside full screen
|
||||
|
||||
$(document).ready(function() {
|
||||
@ -1695,7 +1692,4 @@ foreach ($period as $day) {
|
||||
}, 200);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
@ -20,8 +20,10 @@
|
||||
.fht-table td:hover {
|
||||
background-color: rgb(170, 222, 167);
|
||||
color: rgb(2, 2, 2);
|
||||
transform: scale(1.25); /* Increases size by 25% */
|
||||
transition: transform 0.5s ease-in-out; /* Smooth scaling effect */
|
||||
transform: scale(1.25);
|
||||
/* Increases size by 25% */
|
||||
transition: transform 0.5s ease-in-out;
|
||||
/* Smooth scaling effect */
|
||||
}
|
||||
|
||||
.fht-table tr:hover {
|
||||
@ -30,11 +32,13 @@
|
||||
}
|
||||
|
||||
.grab {
|
||||
cursor: grab; /* Default open-hand cursor */
|
||||
cursor: grab;
|
||||
/* Default open-hand cursor */
|
||||
}
|
||||
|
||||
.grab:active {
|
||||
cursor: grabbing; /* Closed-hand cursor when dragging */
|
||||
cursor: grabbing;
|
||||
/* Closed-hand cursor when dragging */
|
||||
}
|
||||
|
||||
/*
|
||||
@ -258,8 +262,9 @@
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.card{ margin-bottom: 5px;}
|
||||
|
||||
.card {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@ -339,7 +344,7 @@ foreach ($period as $day) {
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;
|
||||
style=" padding: 8px;margin-bottom: 10px;width: 250px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
@ -348,7 +353,7 @@ foreach ($period as $day) {
|
||||
if ($month == date('M-Y')) {
|
||||
?>
|
||||
<i class="fa fa-cog btn-lg mt-2"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
title="Customize"
|
||||
data-target="#customizeModalId"
|
||||
data-toggle="modal">
|
||||
@ -363,25 +368,25 @@ foreach ($period as $day) {
|
||||
title="Navigation"
|
||||
data-toggle="modal"
|
||||
data-target="#bs-example-modal-lg"
|
||||
style="font-size: x-large; cursor:pointer;">
|
||||
style="font-size: x-large; cursor:pointer; color: #bd0906">
|
||||
</i>
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
id="resinStockExport">
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="bagStockExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fas fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
@ -747,13 +752,11 @@ foreach ($period as $day) {
|
||||
<?php } ?>>
|
||||
|
||||
<?php
|
||||
foreach($previousMonthResinStockDetails as $index => $previousMonthResinStockDetail)
|
||||
{
|
||||
foreach ($previousMonthResinStockDetails as $index => $previousMonthResinStockDetail) {
|
||||
if ($previousMonthResinStockDetail['materialCode'] == $resinMaterial['MaterialCode']) {
|
||||
echo $previousMonthResinStockDetail['balanceStock'];
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
@ -773,13 +776,11 @@ foreach ($period as $day) {
|
||||
data-id="<?= $dateInMonth ?> <?= $resinMaterial['MaterialCode'] ?>">
|
||||
|
||||
<?php
|
||||
foreach($previousMonthResinStockDetails as $index => $previousMonthResinStockDetail)
|
||||
{
|
||||
foreach ($previousMonthResinStockDetails as $index => $previousMonthResinStockDetail) {
|
||||
if ($previousMonthResinStockDetail['materialCode'] == $resinMaterial['MaterialCode']) {
|
||||
echo $previousMonthResinStockDetail['balanceStock'];
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
@ -1226,10 +1227,15 @@ foreach ($period as $day) {
|
||||
const box = child.getBoundingClientRect();
|
||||
const offset = y - box.top - box.height / 2;
|
||||
|
||||
return offset < 0 && offset > closest.offset
|
||||
? { offset, element: child }
|
||||
: closest;
|
||||
}, { offset: Number.NEGATIVE_INFINITY }).element;
|
||||
return offset < 0 && offset > closest.offset ?
|
||||
{
|
||||
offset,
|
||||
element: child
|
||||
} :
|
||||
closest;
|
||||
}, {
|
||||
offset: Number.NEGATIVE_INFINITY
|
||||
}).element;
|
||||
}
|
||||
|
||||
// Attach drag events to existing items
|
||||
@ -1268,14 +1274,12 @@ foreach ($period as $day) {
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#customizeHeader').select2();
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
@ -1332,8 +1336,6 @@ $("#searchInput").on("keyup", function () {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@ -1357,12 +1359,9 @@ $("#searchInput").on("keyup", function () {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
//getting modal backdrop inside full screen
|
||||
|
||||
$(document).ready(function() {
|
||||
@ -1385,8 +1384,4 @@ $("#searchInput").on("keyup", function () {
|
||||
}, 200);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@ -405,10 +405,7 @@ $timeOtions[] = "12:00 AM";
|
||||
<div class="col-2 mt-2">
|
||||
|
||||
<input type="text" name="month" id="month" value="<?php echo "$month" ?>"
|
||||
class="form-control "
|
||||
data-provide="datepicker"
|
||||
data-date-format="M-yyyy"
|
||||
data-date-min-view-mode="1" readonly
|
||||
class="form-control " readonly
|
||||
style="max-width: 175px;">
|
||||
|
||||
</div>
|
||||
@ -419,13 +416,13 @@ $timeOtions[] = "12:00 AM";
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 150px;border: 1px solid #ccc;
|
||||
style="padding: 8px;margin-bottom: 10px;width: 150px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
<i class="fa fa-table btn-lg mt-2"
|
||||
title="Date Range Filter"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
data-toggle="modal"
|
||||
data-target="#filterModalId">
|
||||
|
||||
@ -433,20 +430,20 @@ $timeOtions[] = "12:00 AM";
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="trpProductionDetailsExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fa fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
@ -1504,17 +1501,19 @@ $timeOtions[] = "12:00 AM";
|
||||
</div>
|
||||
|
||||
<div class="col-2">
|
||||
<a href="#">
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
style="font-size: x-large;"
|
||||
style="font-size: x-large; color: #0b7cba"
|
||||
id="trpAbstractDetailsExport">
|
||||
</i>
|
||||
</a>
|
||||
|
||||
<i class="fas fa-save btn-lg "
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="abstractSaveId">
|
||||
</i>
|
||||
|
||||
|
||||
<input type="button" class="btn btn-success px-4 mb-3" id="abstractSaveId" value="Save">
|
||||
|
||||
</div>
|
||||
<div class="col-1">
|
||||
</div>
|
||||
@ -1709,36 +1708,36 @@ $timeOtions[] = "12:00 AM";
|
||||
'absRunningHrs' => "",
|
||||
'absPerHour' => "",
|
||||
'absOpeningStock' => '',
|
||||
'absReceipt' => $totalWcsReceived,
|
||||
'absTotal' => $totalWcsReceived,
|
||||
'absConsumption' => $summary['edProduction'],
|
||||
'absClosingStock' => ($totalWcsReceived) - $summary['edProduction'],
|
||||
'absReceipt' => $totalWcsReceived == 0 ? " " : $totalWcsReceived,
|
||||
'absTotal' => $totalWcsReceived == 0 ? " " : $totalWcsReceived,
|
||||
'absConsumption' => $summary['edProduction'] == 0 ? " " : $summary['edProduction'] ,
|
||||
'absClosingStock' => ($totalWcsReceived) - $summary['edProduction'] == 0 ? " " : $totalWcsReceived - $summary['edProduction'],
|
||||
'absPhysicalStock' => '',
|
||||
'absRemarks' => '',
|
||||
],
|
||||
[
|
||||
|
||||
'absParticulars' => "ED Details",
|
||||
'absRunningHrs' => $summary['edRunningHours'],
|
||||
'absPerHour' => number_format($summary['edProduction'] / ($summary['edRunningHours'] == 0 ? 1 : $summary['edRunningHours']), 2),
|
||||
'absRunningHrs' => $summary['edRunningHours'] == 0 ? " " : $summary['edRunningHours'],
|
||||
'absPerHour' => number_format($summary['edProduction'] / ($summary['edRunningHours'] == 0 ? 1 : $summary['edRunningHours']), 2) == 0 ? " " : number_format($summary['edProduction'] / ($summary['edRunningHours'] == 0 ? 1 : $summary['edRunningHours']), 2),
|
||||
'absOpeningStock' => '',
|
||||
'absReceipt' => $summary['edProduction'],
|
||||
'absTotal' => $summary['edProduction'],
|
||||
'absConsumption' => $summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250),
|
||||
'absClosingStock' => $summary['edProduction'] - $summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250),
|
||||
'absReceipt' => $summary['edProduction'] == 0 ? " " : $summary['edProduction'],
|
||||
'absTotal' => $summary['edProduction'] == 0 ? " " : $summary['edProduction'],
|
||||
'absConsumption' => $summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250) == 0 ? " " : $summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250),
|
||||
'absClosingStock' => $summary['edProduction'] - $summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250) == 0 ? " " : $summary['edProduction'] - ($summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250)),
|
||||
'absPhysicalStock' => '',
|
||||
'absRemarks' => '',
|
||||
],
|
||||
[
|
||||
|
||||
'absParticulars' => "TRP Total Sand",
|
||||
'absRunningHrs' => $summary['sandFeedingHours'],
|
||||
'absPerHour' => $summary['trpProductionPerHour'],
|
||||
'absRunningHrs' => $summary['sandFeedingHours'] == 0 ? " " : $summary['sandFeedingHours'],
|
||||
'absPerHour' => $summary['trpProductionPerHour'] == 0 ? " " : $summary['trpProductionPerHour'],
|
||||
'absOpeningStock' => '',
|
||||
'absReceipt' => $summary['trpProduction'],
|
||||
'absTotal' => $summary['trpProduction'],
|
||||
'absConsumption' => $totalCrsReceived,
|
||||
'absClosingStock' => $summary['trpProduction'] - $totalCrsReceived,
|
||||
'absReceipt' => $summary['trpProduction'] == 0 ? " " : $summary['trpProduction'],
|
||||
'absTotal' => $summary['trpProduction'] == 0 ? " " : $summary['trpProduction'],
|
||||
'absConsumption' => $totalCrsReceived == 0 ? " " : $totalCrsReceived,
|
||||
'absClosingStock' => $summary['trpProduction'] - $totalCrsReceived == 0 ? " " : $summary['trpProduction'] - $totalCrsReceived,
|
||||
'absPhysicalStock' => '',
|
||||
'absRemarks' => '',
|
||||
],
|
||||
@ -1746,12 +1745,12 @@ $timeOtions[] = "12:00 AM";
|
||||
|
||||
'absParticulars' => "Trp Physical Gas Consumption",
|
||||
'absRunningHrs' => "",
|
||||
'absPerHour' => number_format(($summary['trpPlusDrierGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2, '.', ''),
|
||||
'absPerHour' => number_format(($summary['trpPlusDrierGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2, '.', '') == 0 ? " " : number_format(($summary['trpPlusDrierGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2, '.', ''),
|
||||
'absOpeningStock' => '',
|
||||
'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absTotal' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absConsumption' => $summary['physicalGasConsumption'],
|
||||
'absClosingStock' => ($summary['gasReceiptBg'] + $summary['gasReceiptPg']) - $summary['physicalGasConsumption'],
|
||||
'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'] == 0 ? " " : $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absTotal' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'] == 0 ? " " : $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absConsumption' => $summary['physicalGasConsumption'] == 0 ? " " : $summary['physicalGasConsumption'],
|
||||
'absClosingStock' => ($summary['gasReceiptBg'] + $summary['gasReceiptPg']) - $summary['physicalGasConsumption'] == 0 ? " " : ($summary['gasReceiptBg'] + $summary['gasReceiptPg']) - $summary['physicalGasConsumption'],
|
||||
'absPhysicalStock' => '',
|
||||
'absRemarks' => '',
|
||||
],
|
||||
@ -1759,12 +1758,12 @@ $timeOtions[] = "12:00 AM";
|
||||
|
||||
'absParticulars' => "Trp Panel Gas Consumption",
|
||||
'absRunningHrs' => "",
|
||||
'absPerHour' => number_format(($summary['panelGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2),
|
||||
'absPerHour' => number_format(($summary['panelGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2) == 0 ? " " : number_format(($summary['panelGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2),
|
||||
'absOpeningStock' => '',
|
||||
'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absTotal' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absConsumption' => $summary['panelGasConsumption'],
|
||||
'absClosingStock' => ($summary['gasReceiptBg'] + $summary['gasReceiptPg']) - $summary['panelGasConsumption'],
|
||||
'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'] == 0 ? " " : $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absTotal' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'] == 0 ? " " : $summary['gasReceiptBg'] + $summary['gasReceiptPg'],
|
||||
'absConsumption' => $summary['panelGasConsumption'] == 0 ? " " : $summary['panelGasConsumption'] ,
|
||||
'absClosingStock' => ($summary['gasReceiptBg'] + $summary['gasReceiptPg']) - $summary['panelGasConsumption'] == 0 ? " " : ($summary['gasReceiptBg'] + $summary['gasReceiptPg']) - $summary['panelGasConsumption'],
|
||||
'absPhysicalStock' => '',
|
||||
'absRemarks' => '',
|
||||
],
|
||||
@ -1774,9 +1773,9 @@ $timeOtions[] = "12:00 AM";
|
||||
'absRunningHrs' => "",
|
||||
'absPerHour' => "",
|
||||
'absOpeningStock' => '',
|
||||
'absReceipt' => $summary['waterReceipt'],
|
||||
'absTotal' => $summary['waterReceipt'],
|
||||
'absConsumption' => $summary['waterReceipt'] - $summary['waterConsumption'],
|
||||
'absReceipt' => $summary['waterReceipt'] == 0 ? " " : $summary['waterReceipt'],
|
||||
'absTotal' => $summary['waterReceipt'] == 0 ? " " : $summary['waterReceipt'],
|
||||
'absConsumption' => $summary['waterReceipt'] - $summary['waterConsumption'] == 0 ? " " : $summary['waterReceipt'] - $summary['waterConsumption'],
|
||||
'absClosingStock' => '',
|
||||
'absPhysicalStock' => '',
|
||||
'absRemarks' => '',
|
||||
@ -1784,12 +1783,12 @@ $timeOtions[] = "12:00 AM";
|
||||
[
|
||||
|
||||
'absParticulars' => "Power Consumption",
|
||||
'absRunningHrs' => $summary['ebReadingPerUnitTon'],
|
||||
'absRunningHrs' => $summary['ebReadingPerUnitTon'] == 0 ? " " : $summary['ebReadingPerUnitTon'],
|
||||
'absPerHour' => "",
|
||||
'absOpeningStock' => '',
|
||||
'absReceipt' => '',
|
||||
'absTotal' => '',
|
||||
'absConsumption' => $summary['ebReading'],
|
||||
'absConsumption' => $summary['ebReading'] == 0 ? " " : $summary['ebReading'],
|
||||
'absClosingStock' => '',
|
||||
'absPhysicalStock' => '',
|
||||
'absRemarks' => '',
|
||||
@ -2534,8 +2533,6 @@ $timeOtions[] = "12:00 AM";
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$('#month').change(function() {
|
||||
$('#changeMonthForm').submit();
|
||||
|
||||
@ -345,13 +345,13 @@
|
||||
|
||||
<input type="text" id="searchInput" placeholder="Search..."
|
||||
class="mt-2"
|
||||
style="padding: 8px;margin-bottom: 10px;width: 150px;border: 1px solid #ccc;
|
||||
style="padding: 8px;margin-bottom: 10px;width: 150px;border: 2px solid rgb(123, 11, 214);
|
||||
border-radius: 5px;margin-right:15px;">
|
||||
|
||||
|
||||
<i class="fa fa-table btn-lg mt-2"
|
||||
title="Date Range Filter"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(95, 102, 105)"
|
||||
data-toggle="modal"
|
||||
data-target="#filterModalId">
|
||||
|
||||
@ -359,20 +359,20 @@
|
||||
|
||||
<i class="fa fa-download btn-lg mt-2"
|
||||
title="Excel Download"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color: #0b7cba"
|
||||
id="trpSandUseStockExport">
|
||||
</i>
|
||||
|
||||
<i class="fe-maximize noti-icon btn-lg mt-2"
|
||||
title="Full Screen"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(230, 184, 35)"
|
||||
onclick="toggleDivFullscreen()">
|
||||
</i>
|
||||
|
||||
|
||||
<i class="fa fa-save btn-lg mt-2"
|
||||
title="Save"
|
||||
style="font-size: x-large; cursor:pointer;"
|
||||
style="font-size: x-large; cursor:pointer; color:rgb(31, 132, 3)"
|
||||
id="saveId">
|
||||
</i>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user