From a81d0df9d90ef6c7bee07071c69f097958fd69d3 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Wed, 26 Mar 2025 18:26:26 +0530 Subject: [PATCH 1/2] stock module - 26-03-2025 --- app/Views/stock/CoatingMachineDetail.php | 22 ++++++++++++++++++- app/Views/stock/bagStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/dieselStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/drierMachineDetails.php | 22 ++++++++++++++++++- app/Views/stock/dustAndRoughStockDetails.php | 21 ++++++++++++++++-- app/Views/stock/gasStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/incomingSilicaSandDetails.php | 22 ++++++++++++++++++- app/Views/stock/resinStockDetails.php | 21 ++++++++++++++++-- app/Views/stock/trpProductionStockDetails.php | 22 +++++++++++++++++-- app/Views/stock/trpSandUseStockDetails.php | 21 ++++++++++++++++-- 10 files changed, 200 insertions(+), 17 deletions(-) diff --git a/app/Views/stock/CoatingMachineDetail.php b/app/Views/stock/CoatingMachineDetail.php index ae119fc1..0c62ed23 100644 --- a/app/Views/stock/CoatingMachineDetail.php +++ b/app/Views/stock/CoatingMachineDetail.php @@ -232,8 +232,28 @@ } .table-responsive { + overflow-x: auto; overflow-y: auto; - max-height: 700px; + max-height: 500px; + max-width: 100%; + position: relative; + } + + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } } .fht-table thead th { diff --git a/app/Views/stock/bagStockDetails.php b/app/Views/stock/bagStockDetails.php index 27687fc7..a6c6b411 100644 --- a/app/Views/stock/bagStockDetails.php +++ b/app/Views/stock/bagStockDetails.php @@ -225,11 +225,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/dieselStockDetails.php b/app/Views/stock/dieselStockDetails.php index 214a44f7..dd3bd8b4 100644 --- a/app/Views/stock/dieselStockDetails.php +++ b/app/Views/stock/dieselStockDetails.php @@ -223,11 +223,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/drierMachineDetails.php b/app/Views/stock/drierMachineDetails.php index fa7b44f8..827a9906 100644 --- a/app/Views/stock/drierMachineDetails.php +++ b/app/Views/stock/drierMachineDetails.php @@ -235,8 +235,28 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y'); } .table-responsive { + overflow-x: auto; overflow-y: auto; - max-height: 700px; + max-height: 500px; + max-width: 100%; + position: relative; + } + + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } } .fht-table thead th { diff --git a/app/Views/stock/dustAndRoughStockDetails.php b/app/Views/stock/dustAndRoughStockDetails.php index 9c3e4de6..b2170b9f 100644 --- a/app/Views/stock/dustAndRoughStockDetails.php +++ b/app/Views/stock/dustAndRoughStockDetails.php @@ -233,11 +233,28 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 700px; - /* Adjust as needed */ + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td { min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/gasStockDetails.php b/app/Views/stock/gasStockDetails.php index 61addb9e..599c756e 100644 --- a/app/Views/stock/gasStockDetails.php +++ b/app/Views/stock/gasStockDetails.php @@ -214,11 +214,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/incomingSilicaSandDetails.php b/app/Views/stock/incomingSilicaSandDetails.php index bc07f9b4..5419c301 100644 --- a/app/Views/stock/incomingSilicaSandDetails.php +++ b/app/Views/stock/incomingSilicaSandDetails.php @@ -221,8 +221,28 @@ } .table-responsive { + overflow-x: auto; overflow-y: auto; - max-height: 700px; + max-height: 500px; + max-width: 100%; + position: relative; + } + + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } } .fht-table thead th { diff --git a/app/Views/stock/resinStockDetails.php b/app/Views/stock/resinStockDetails.php index 8a3f7b37..b33b8b21 100644 --- a/app/Views/stock/resinStockDetails.php +++ b/app/Views/stock/resinStockDetails.php @@ -233,11 +233,28 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 700px; - /* Adjust as needed */ + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td { min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/trpProductionStockDetails.php b/app/Views/stock/trpProductionStockDetails.php index 0e858885..9690f617 100644 --- a/app/Views/stock/trpProductionStockDetails.php +++ b/app/Views/stock/trpProductionStockDetails.php @@ -225,11 +225,29 @@ /* Table Wrapper for Scrolling */ .table-responsive { overflow-x: auto; - overflow-y: auto; - max-height: 700px; /* Adjust as needed */ + overflow-y: auto; + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td{ min-width: 100px; max-width: 100px; diff --git a/app/Views/stock/trpSandUseStockDetails.php b/app/Views/stock/trpSandUseStockDetails.php index eae61a86..9d21aa1b 100644 --- a/app/Views/stock/trpSandUseStockDetails.php +++ b/app/Views/stock/trpSandUseStockDetails.php @@ -220,11 +220,28 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 700px; - /* Adjust as needed */ + max-height: 500px; + max-width: 100%; position: relative; } + /* Adjust heights based on screen zoom */ + @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ + .table-responsive { max-height: 425px; } + } + + @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ + .table-responsive { max-height: 500px; } + } + + @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ + .table-responsive { max-height: 600px; } + } + + @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ + .table-responsive { max-height: 650px; } + } + td { min-width: 150px; max-width: 150px; From a5fa74451378afb6e1851f855782dcc880092f60 Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Thu, 27 Mar 2025 18:48:26 +0530 Subject: [PATCH 2/2] stock module - 27-03-2025 --- app/Views/stock/CoatingMachineDetail.php | 128 +- app/Views/stock/bagStockDetails.php | 229 +- app/Views/stock/dieselStockDetails.php | 187 +- app/Views/stock/drierMachineDetails.php | 143 +- app/Views/stock/dustAndRoughStockDetails.php | 136 +- app/Views/stock/gasStockDetails.php | 132 +- app/Views/stock/incomingSilicaSandDetails.php | 113 +- app/Views/stock/powerConsumptionDetails.php | 757 +++---- app/Views/stock/resinStockDetails.php | 175 +- app/Views/stock/trpProductionStockDetails.php | 1858 +++++++++-------- app/Views/stock/trpSandUseStockDetails.php | 134 +- 11 files changed, 2296 insertions(+), 1696 deletions(-) diff --git a/app/Views/stock/CoatingMachineDetail.php b/app/Views/stock/CoatingMachineDetail.php index 0c62ed23..d1a6aee7 100644 --- a/app/Views/stock/CoatingMachineDetail.php +++ b/app/Views/stock/CoatingMachineDetail.php @@ -322,54 +322,72 @@
-
+
-
+
+ +
- - -
+ " + class="form-control " + data-provide="datepicker" + data-date-format="M-yyyy" + data-date-min-view-mode="1" readonly> -
- - + + + +
+ + + + + + + + + - - + + + + + + + + + +
- -
- -
- -
- - - Date Filter - - - - -
- -
+ -
+
@@ -1772,3 +1790,45 @@ $(document).ready(function () { + + \ No newline at end of file diff --git a/app/Views/stock/bagStockDetails.php b/app/Views/stock/bagStockDetails.php index a6c6b411..0f69b107 100644 --- a/app/Views/stock/bagStockDetails.php +++ b/app/Views/stock/bagStockDetails.php @@ -226,27 +226,11 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 500px; + max-height: 450px; max-width: 100%; position: relative; } - /* Adjust heights based on screen zoom */ - @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ - .table-responsive { max-height: 425px; } - } - - @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ - .table-responsive { max-height: 500px; } - } - - @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ - .table-responsive { max-height: 600px; } - } - - @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ - .table-responsive { max-height: 650px; } - } td{ min-width: 100px; @@ -331,68 +315,121 @@
-
+
+ +
-
+
-
- " - class="form-control mt-2" - style="z-index:30;" readonly> -
+
+ " + class="form-control mt-2" + style="z-index:30;" readonly> +
-
- - - - - -
+ +
+ - - - -
- - -
- -
- - -
- - + + + + -
-
- - Navigation - + + + + + + + + + + + -
+ + + +
- - -
+
@@ -481,7 +518,7 @@ -
+
@@ -777,8 +814,8 @@
-
@@ -948,7 +941,7 @@ foreach ($period as $day) {
- + + +
-
- -
- - - - - -
- -
- + " + class="form-control " + data-provide="datepicker" + data-date-format="M-yyyy" + data-date-min-view-mode="1" readonly> +
+ + + +
+ + + + + + + + + + + + + + + + + + + + +
-
- - Date Filter - - -
- -
-
+
@@ -1432,4 +1439,46 @@ function convertToDate(dateString) { } + + + \ No newline at end of file diff --git a/app/Views/stock/dustAndRoughStockDetails.php b/app/Views/stock/dustAndRoughStockDetails.php index b2170b9f..d3348f8d 100644 --- a/app/Views/stock/dustAndRoughStockDetails.php +++ b/app/Views/stock/dustAndRoughStockDetails.php @@ -308,54 +308,85 @@ -
+
-
-
+
+
- - -
+ -
- +
-
- -
- - - - + +
+
+ +
+ + " + class="form-control " + data-provide="datepicker" + data-date-format="M-yyyy" + data-date-min-view-mode="1" readonly + style="max-width: 175px;"> -
+
-
- -
- -
+
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
-
+
@@ -913,3 +944,44 @@ }); + \ No newline at end of file diff --git a/app/Views/stock/gasStockDetails.php b/app/Views/stock/gasStockDetails.php index 599c756e..1f2ef177 100644 --- a/app/Views/stock/gasStockDetails.php +++ b/app/Views/stock/gasStockDetails.php @@ -285,54 +285,74 @@
-
+
+ +
-
- - + +
-
- -
- - - - + " + class="form-control " + data-provide="datepicker" + data-date-format="M-yyyy" + data-date-min-view-mode="1" readonly> -
- -
- - - +
+ + + +
+ + + + + + + + + + + + + + + + + + + + +
+
-
- - - Date Filter - - - -
- - - -
-
+
@@ -1239,4 +1259,46 @@ function convertToDate(dateString) { $('#changeMonthForm').submit(); }) }) + + + \ No newline at end of file diff --git a/app/Views/stock/incomingSilicaSandDetails.php b/app/Views/stock/incomingSilicaSandDetails.php index 5419c301..5306965f 100644 --- a/app/Views/stock/incomingSilicaSandDetails.php +++ b/app/Views/stock/incomingSilicaSandDetails.php @@ -223,27 +223,12 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 500px; + max-height: 450px; max-width: 100%; position: relative; } - /* Adjust heights based on screen zoom */ - @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ - .table-responsive { max-height: 425px; } - } - @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ - .table-responsive { max-height: 500px; } - } - - @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ - .table-responsive { max-height: 600px; } - } - - @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ - .table-responsive { max-height: 650px; } - } .fht-table thead th { position: sticky; @@ -327,35 +312,56 @@
-
+
+
+
- " class="form-control " data-provide="datepicker" data-date-format="M-yyyy" data-date-min-view-mode="1" readonly> - -
- + + + +
+ + + + + + - - + + + + + + + +
-
+
-
- -
-
-
+
@@ -1922,3 +1928,46 @@ $(document).ready(function() { }) }) + + + \ No newline at end of file diff --git a/app/Views/stock/powerConsumptionDetails.php b/app/Views/stock/powerConsumptionDetails.php index 89dda7b1..f33958d8 100644 --- a/app/Views/stock/powerConsumptionDetails.php +++ b/app/Views/stock/powerConsumptionDetails.php @@ -18,23 +18,27 @@ } .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 */ } .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 */ + 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 */ } .fht-table tr:hover { - background-color: rgb(170, 222, 167); - color:rgb(2, 2, 2); + background-color: rgb(170, 222, 167); + color: rgb(2, 2, 2); } @@ -228,27 +232,11 @@ .table-responsive { overflow-x: auto; overflow-y: auto; - max-height: 500px; + max-height: 450px; max-width: 100%; position: relative; } - /* Adjust heights based on screen zoom */ - @media only screen and (min-height: 1400px) { /* Approximate Zoom < 100% */ - .table-responsive { max-height: 425px; } - } - - @media only screen and (min-height: 1200px) { /* Approximate Zoom ~ 90% */ - .table-responsive { max-height: 500px; } - } - - @media only screen and (min-height: 1000px) { /* Approximate Zoom ~ 80% */ - .table-responsive { max-height: 600px; } - } - - @media only screen and (min-height: 800px) { /* Approximate Zoom ~ 75% */ - .table-responsive { max-height: 650px; } - } @@ -258,19 +246,21 @@ } tfoot tr { - background-color:rgb(235, 236, 203); + background-color: rgb(235, 236, 203); } - body[data-layout-mode = horizontal] .container-fluid{ + body[data-layout-mode=horizontal] .container-fluid { max-width: 100%; } - .card-body{ - padding-top : 0; + + .card-body { + padding-top: 0; padding-bottom: 0; } - .card{ margin-bottom: 5px;} - + .card { + margin-bottom: 5px; + } @@ -328,62 +318,74 @@ foreach ($period as $day) {
-
+
-
+ -
-
- " - class="form-control mt-2" - style="z-index:30;" readonly> -
+
- @@ -391,91 +393,90 @@ foreach ($period as $day) { - - + -
-
+
- - " - > + + "> -
+
@@ -529,7 +530,7 @@ foreach ($period as $day) { - - - + + - + - - - - - - - - + + + + + + + + - + - - - + + + - + - - + + - - + - $dateInMonth) { ?> - $dateInMonth) { ?> + format('d-m-Y'); - if ($dateInMonthDmYFormat === $currentDate) { - echo 'style="background: rgb(232, 245, 231);"'; - } - ?>> + $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);"'; + } + ?>> - format('d-m-Y'); + format('d-m-Y'); - ?> + ?> - + - + - + - + - + - - + + - + - + - $powerMachine) { - ?> - + $powerMachine) { + ?> + - + - + - - - - - + + + data-id=" "> + + + $previousMonthPowerConsumptionStockDetail) { + if ($previousMonthPowerConsumptionStockDetail['machine_id'] == $powerMachine['id']) { + echo $previousMonthPowerConsumptionStockDetail['closing_units']; + break; + } + } + ?> + + + + + + + - + + + - +
- Total - + Total +
- - + + + - oninput="openingTPStockChange(this)" - contenteditable="true" + oninput="openingTPStockChange(this)" + contenteditable="true" - > - > + + ?> - + oninput="finalTPStockChange(this)" + contenteditable="true"> - + ?> - - oninput="openingUnitsChange(this)" - contenteditable="true" - - - data-id=" "> - - - $previousMonthPowerConsumptionStockDetail) - { - if($previousMonthPowerConsumptionStockDetail['machine_id'] == $powerMachine['id']){ - echo $previousMonthPowerConsumptionStockDetail['closing_units'] ; - break; - } - - } - ?> - - - - $previousMonthPowerConsumptionStockDetail) - { - if($previousMonthPowerConsumptionStockDetail['machine_id'] == $powerMachine['id']){ - echo $previousMonthPowerConsumptionStockDetail['closing_units'] ; - break; - } - - } - ?> - - + oninput="openingUnitsChange(this)" + contenteditable="true" -
+ + $previousMonthPowerConsumptionStockDetail) { + if ($previousMonthPowerConsumptionStockDetail['machine_id'] == $powerMachine['id']) { + echo $previousMonthPowerConsumptionStockDetail['closing_units']; + break; + } + } + ?> + +
-
+
@@ -950,7 +947,7 @@ foreach ($period as $day) {
- + " - class="form-control mt-2" - style="z-index:30;" readonly> -
-
- - - - - -
+
+ +
+ " + class="form-control mt-2" + style="z-index:30;" readonly> +
+
- + -
- + + + + + + + + + + + + + + + + + + + + +
-
- - - -
-
-
- - Navigation - - - -
+
- - -
- +
@@ -483,7 +480,7 @@ foreach ($period as $day) { -
+
@@ -774,7 +771,7 @@ foreach ($period as $day) {
- + " - class="form-control mt-2" - style="z-index:30;" readonly> -
+ +
-
- - - - - -
+ " + class="form-control " + data-provide="datepicker" + data-date-format="M-yyyy" + data-date-min-view-mode="1" readonly + style="max-width: 175px;"> -
- - - -
+
-
- - -
+ +
+ + + + + + + + + + + + + + + + + + + + +
+
- + + + + -
- +
+
@@ -443,8 +498,8 @@ $timeOtions[] = "12:00 AM"; - 0){?> - + 0) { ?> + @@ -453,14 +508,14 @@ $timeOtions[] = "12:00 AM"; - + - 0){?> - + 0) { ?> + - + @@ -482,7 +537,7 @@ $timeOtions[] = "12:00 AM"; - + @@ -496,9 +551,9 @@ $timeOtions[] = "12:00 AM"; - + - + @@ -514,13 +569,13 @@ $timeOtions[] = "12:00 AM"; - + - + - + @@ -553,12 +608,12 @@ $timeOtions[] = "12:00 AM"; $trpProductionDetail) { @@ -626,14 +681,14 @@ $timeOtions[] = "12:00 AM"; @@ -780,7 +835,7 @@ $timeOtions[] = "12:00 AM"; + + + + - + @@ -998,14 +1053,13 @@ $timeOtions[] = "12:00 AM"; ]; - foreach($crsClientList as $client){ + foreach ($crsClientList as $client) { $summary[$client] = 0; - } + } - foreach($wcsSupplierList as $supplier){ + foreach ($wcsSupplierList as $supplier) { $summary[$supplier] = 0; - } - + } } // Sum values for the material @@ -1020,17 +1074,17 @@ $timeOtions[] = "12:00 AM"; $summary['physicalGasConsumption'] += is_numeric($trpProductionDetail['physicalGasConsumption']) ? $trpProductionDetail['physicalGasConsumption'] : 0; $summary['drierGasConsumption'] += is_numeric($trpProductionDetail['drierGasConsumption']) ? $trpProductionDetail['drierGasConsumption'] : 0; $summary['coatingGasConsumption'] += is_numeric($trpProductionDetail['coatingGasConsumption']) ? $trpProductionDetail['coatingGasConsumption'] : 0; - $summary['trpPlusDrierGasConsumption'] += is_numeric($trpProductionDetail['trpPlusDrierGasConsumption'])? $trpProductionDetail['trpPlusDrierGasConsumption'] : 0; + $summary['trpPlusDrierGasConsumption'] += is_numeric($trpProductionDetail['trpPlusDrierGasConsumption']) ? $trpProductionDetail['trpPlusDrierGasConsumption'] : 0; $summary['trpPhysicalGasPerTon'] += is_numeric($trpProductionDetail['trpPhysicalGasPerTon']) ? $trpProductionDetail['trpPhysicalGasPerTon'] : 0; $summary['panelGasConsumption'] += is_numeric($trpProductionDetail['panelGasConsumption']) ? $trpProductionDetail['panelGasConsumption'] : 0; $summary['panelGasPerTon'] += is_numeric($trpProductionDetail['panelGasPerTon']) ? $trpProductionDetail['panelGasPerTon'] : 0; //total of all incoming waste core sand - - foreach($wcsSupplierList as $supplier){ - $summary[$supplier] += is_numeric($trpProductionDetail[$supplier]) ? $trpProductionDetail[$supplier] : 0; - $totalWcsReceived += is_numeric($trpProductionDetail[$supplier]) ? $trpProductionDetail[$supplier] : 0; - } + + foreach ($wcsSupplierList as $supplier) { + $summary[$supplier] += is_numeric($trpProductionDetail[$supplier]) ? $trpProductionDetail[$supplier] : 0; + $totalWcsReceived += is_numeric($trpProductionDetail[$supplier]) ? $trpProductionDetail[$supplier] : 0; + } $summary['edRunningHours'] += is_numeric($trpProductionDetail['edRunningHours']) ? $trpProductionDetail['edRunningHours'] : 0; $summary['edProduction'] += is_numeric($trpProductionDetail['edProduction']) ? $trpProductionDetail['edProduction'] : 0; @@ -1038,13 +1092,12 @@ $timeOtions[] = "12:00 AM"; $summary['trpProduction'] += is_numeric($trpProductionDetail['trpProduction']) ? $trpProductionDetail['trpProduction'] : 0; $summary['trpProductionPerHour'] += is_numeric($trpProductionDetail['trpProductionPerHour']) ? $trpProductionDetail['trpProductionPerHour'] : 0; $summary['coating'] += is_numeric($trpProductionDetail['coating']) ? $trpProductionDetail['coating'] : 0; - + // total of all core reclaimed sand - foreach($crsClientList as $client){ + foreach ($crsClientList as $client) { $summary[$client] += is_numeric($trpProductionDetail[$client]) ? $trpProductionDetail[$client] : 0; $totalCrsReceived += is_numeric($trpProductionDetail[$client]) ? $trpProductionDetail[$client] : 0; - - } + } $summary['waterReceipt'] += is_numeric($trpProductionDetail['waterReceipt']) ? $trpProductionDetail['waterReceipt'] : 0; $summary['waterConsumption'] += is_numeric($trpProductionDetail['waterConsumption']) ? $trpProductionDetail['waterConsumption'] : 0; @@ -1063,282 +1116,282 @@ $timeOtions[] = "12:00 AM"; - - + + - - - + + + - - - + + + - + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - - + + - + + + + + +
Panel Gas Per Ton Incoming Sand/ Lump details Incoming Sand/ Lump details TRP Sand Coating Usage Usage Water ED +20 Waste Cyclone Waste Cyclone Waste
Production Per Hour + data-id=" totalHours"> @@ -740,11 +795,11 @@ $timeOtions[] = "12:00 AM"; - + - + @@ -803,19 +858,19 @@ $timeOtions[] = "12:00 AM"; - - - - - - + +
- Total - + Total + - - - - - + - - - - - - - + + - - + + - - + + - - + + - - + + - - + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
@@ -1346,389 +1399,388 @@ $timeOtions[] = "12:00 AM";
-
-
- - -
-
-
-
- -
- -
-
-
- - -

Abstract for the month

-
- -
- - - - - - - - - -
-
-
+
-
- -
- - - - - - - - - - - - - - - - - - - - $trpAbstract["Incoming Raw Sand Details"]['date'] , - 'absParticulars' => "Incoming Raw Sand Details", - 'absRunningHrs' => "", - 'absPerHour' => "", - 'absOpeningStock'=> (int)$trpAbstract["Incoming Raw Sand Details"]['opening_stock'], - 'absReceipt' => $totalWcsReceived, - 'absTotal' => (int)$trpAbstract["Incoming Raw Sand Details"]['opening_stock'] + $totalWcsReceived, - 'absConsumption' => $summary['edProduction'], - 'absClosingStock' => ((int)$trpAbstract["Incoming Raw Sand Details"]['opening_stock'] + $totalWcsReceived) - $summary['edProduction'], - 'absPhysicalStock' => (int)$trpAbstract["Incoming Raw Sand Details"]['physical_stock'], - 'absRemarks' => $trpAbstract["Incoming Raw Sand Details"]['remarks'], - ], - [ - 'absDate' => $trpAbstract["ED Details"]['date'] , - 'absParticulars' => "ED Details", - 'absRunningHrs' => $summary['edRunningHours'], - 'absPerHour' => number_format( $summary['edProduction'] / ($summary['edRunningHours'] == 0 ? 1 : $summary['edRunningHours']) ,2), - 'absOpeningStock'=> (int)$trpAbstract["ED Details"]['opening_stock'], - 'absReceipt' => $summary['edProduction'], - 'absTotal' => (int)$trpAbstract["ED Details"]['opening_stock'] + $summary['edProduction'], - 'absConsumption' => $summary['edUsage'] + ($summary['coolerBags'] * 1250 ) + ($summary['cycloneWaste'] * 1250 ) + ( $summary['edWaste'] * 1250 ), - 'absClosingStock' => (int)$trpAbstract["ED Details"]['opening_stock'] + $summary['edProduction'] - ($summary['edUsage'] + ($summary['coolerBags'] * 1250 ) + ($summary['cycloneWaste'] * 1250 ) + ( $summary['edWaste'] * 1250 ) ), - 'absPhysicalStock' =>(int)$trpAbstract["ED Details"]['physical_stock'], - 'absRemarks' => $trpAbstract["ED Details"]['remarks'], - ], - [ - 'absDate' => $trpAbstract["TRP Total Sand"]['date'] , - 'absParticulars' => "TRP Total Sand", - 'absRunningHrs' => $summary['sandFeedingHours'], - 'absPerHour' => $summary['trpProductionPerHour'], - 'absOpeningStock'=> (int)$trpAbstract["TRP Total Sand"]['opening_stock'], - 'absReceipt' =>$summary['trpProduction'], - 'absTotal' =>(int)$trpAbstract["TRP Total Sand"]['opening_stock'] + $summary['trpProduction'], - 'absConsumption' =>$totalCrsReceived, - 'absClosingStock' =>(int)$trpAbstract["TRP Total Sand"]['opening_stock'] + $summary['trpProduction'] - $totalCrsReceived, - 'absPhysicalStock' =>(int)$trpAbstract["TRP Total Sand"]['physical_stock'], - 'absRemarks' => $trpAbstract["TRP Total Sand"]['remarks'], - ], - [ - 'absDate' => $trpAbstract["Trp Physical Gas Consumption"]['date'] , - 'absParticulars' => "Trp Physical Gas Consumption", - 'absRunningHrs' => "", - 'absPerHour' => number_format(($summary['trpPlusDrierGasConsumption']) / ( ( $summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction'] )/1000), 2, '.', ''), - 'absOpeningStock'=>(int)$trpAbstract["Trp Physical Gas Consumption"]['opening_stock'], - 'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'], - 'absTotal' => (int)$trpAbstract["Trp Physical Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'], - 'absConsumption' => $summary['physicalGasConsumption'], - 'absClosingStock' => (int)$trpAbstract["Trp Physical Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'] - $summary['physicalGasConsumption'], - 'absPhysicalStock' =>(int)$trpAbstract["Trp Physical Gas Consumption"]['physical_stock'], - 'absRemarks' => $trpAbstract["Trp Physical Gas Consumption"]['remarks'], - ], - [ - 'absDate' => $trpAbstract["Trp Panel Gas Consumption"]['date'] , - 'absParticulars' => "Trp Panel Gas Consumption", - 'absRunningHrs' => "", - 'absPerHour' => number_format(($summary['panelGasConsumption']) / ( ( $summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction'] )/1000) ,2), - 'absOpeningStock'=>(int)$trpAbstract["Trp Panel Gas Consumption"]['opening_stock'], - 'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'], - 'absTotal' => (int)$trpAbstract["Trp Panel Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'], - 'absConsumption' => $summary['panelGasConsumption'], - 'absClosingStock' => (int)$trpAbstract["Trp Panel Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'] - $summary['panelGasConsumption'], - 'absPhysicalStock' =>(int)$trpAbstract["Trp Panel Gas Consumption"]['physical_stock'], - 'absRemarks' => $trpAbstract["Trp Panel Gas Consumption"]['remarks'], - ], - [ - 'absDate' => $trpAbstract["Water Consumption"]['date'] , - 'absParticulars' => "Water Consumption", - 'absRunningHrs' => "", - 'absPerHour' => "", - 'absOpeningStock'=>(int)$trpAbstract["Water Consumption"]['opening_stock'], - 'absReceipt' =>$summary['waterReceipt'], - 'absTotal' =>(int)$trpAbstract["Water Consumption"]['opening_stock'] + $summary['waterReceipt'], - 'absConsumption' => $summary['waterConsumption'], - 'absClosingStock' =>(int)$trpAbstract["Water Consumption"]['opening_stock'] + $summary['waterReceipt'] - $summary['waterConsumption'], - 'absPhysicalStock' =>(int)$trpAbstract["Water Consumption"]['physical_stock'], - 'absRemarks' => $trpAbstract["Water Consumption"]['remarks'], - ], - [ - 'absDate' => $trpAbstract["Power Consumption"]['date'] , - 'absParticulars' => "Power Consumption", - 'absRunningHrs' =>$summary['ebReadingPerUnitTon'], - 'absPerHour' => "", - 'absOpeningStock'=>(int)$trpAbstract["Power Consumption"]['opening_stock'], - 'absReceipt' =>'', - 'absTotal' =>'', - 'absConsumption' => $summary['ebReading'], - 'absClosingStock' =>'', - 'absPhysicalStock' =>(int)$trpAbstract["Power Consumption"]['physical_stock'], - 'absRemarks' => $trpAbstract["Power Consumption"]['remarks'], - ] - ]; - - ?> - - format('Y-m'); - $absDate = "$absDate-01"; - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Incoming Raw Sand Details", - 'absRunningHrs' => "", - 'absPerHour' => "", - 'absOpeningStock'=>'', - 'absReceipt' => $totalWcsReceived, - 'absTotal' => $totalWcsReceived, - 'absConsumption' => $summary['edProduction'], - 'absClosingStock' =>( $totalWcsReceived ) - $summary['edProduction'], - 'absPhysicalStock' =>'', - 'absRemarks' =>'', - ], - [ - - 'absParticulars' => "ED Details", - 'absRunningHrs' => $summary['edRunningHours'], - 'absPerHour' => 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 ), - 'absPhysicalStock' =>'', - 'absRemarks' =>'', - ], - [ - - 'absParticulars' => "TRP Total Sand", - 'absRunningHrs' => $summary['sandFeedingHours'], - 'absPerHour' => $summary['trpProductionPerHour'], - 'absOpeningStock'=>'', - 'absReceipt' =>$summary['trpProduction'], - 'absTotal' =>$summary['trpProduction'], - 'absConsumption' =>$totalCrsReceived, - 'absClosingStock' =>$summary['trpProduction'] - $totalCrsReceived, - 'absPhysicalStock' =>'', - 'absRemarks' =>'', - ], - [ - - 'absParticulars' => "Trp Physical Gas Consumption", - 'absRunningHrs' => "", - 'absPerHour' => 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'], - 'absPhysicalStock' =>'', - 'absRemarks' =>'', - ], - [ - - 'absParticulars' => "Trp Panel Gas Consumption", - 'absRunningHrs' => "", - 'absPerHour' => 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'], - 'absPhysicalStock' =>'', - 'absRemarks' =>'', - ], - [ - - 'absParticulars' => "Water Consumption", - 'absRunningHrs' => "", - 'absPerHour' => "", - 'absOpeningStock'=>'', - 'absReceipt' =>$summary['waterReceipt'], - 'absTotal' =>$summary['waterReceipt'], - 'absConsumption' =>$summary['waterReceipt'] - $summary['waterConsumption'], - 'absClosingStock' =>'', - 'absPhysicalStock' =>'', - 'absRemarks' =>'', - ], - [ - - 'absParticulars' => "Power Consumption", - 'absRunningHrs' =>$summary['ebReadingPerUnitTon'], - 'absPerHour' => "", - 'absOpeningStock'=>'', - 'absReceipt' =>'', - 'absTotal' =>'', - 'absConsumption' => $summary['ebReading'], - 'absClosingStock' =>'', - 'absPhysicalStock' =>'', - 'absRemarks' =>'', - ], - ] - - - ?> - format('Y-m'); - $absDate = "$absDate-01"; - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ParticularsRunning HoursPer HourOpening StockReceiptTotalConsumptionClosing StockPhysical StockRemarks
-
- -
-
-
-
+
+ +
+
+
+ +
+ +
+
+
+ + +

Abstract for the month

+
+ +
+ + + + + + + + + +
+
+
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + $trpAbstract["Incoming Raw Sand Details"]['date'], + 'absParticulars' => "Incoming Raw Sand Details", + 'absRunningHrs' => "", + 'absPerHour' => "", + 'absOpeningStock' => (int)$trpAbstract["Incoming Raw Sand Details"]['opening_stock'], + 'absReceipt' => $totalWcsReceived, + 'absTotal' => (int)$trpAbstract["Incoming Raw Sand Details"]['opening_stock'] + $totalWcsReceived, + 'absConsumption' => $summary['edProduction'], + 'absClosingStock' => ((int)$trpAbstract["Incoming Raw Sand Details"]['opening_stock'] + $totalWcsReceived) - $summary['edProduction'], + 'absPhysicalStock' => (int)$trpAbstract["Incoming Raw Sand Details"]['physical_stock'], + 'absRemarks' => $trpAbstract["Incoming Raw Sand Details"]['remarks'], + ], + [ + 'absDate' => $trpAbstract["ED Details"]['date'], + 'absParticulars' => "ED Details", + 'absRunningHrs' => $summary['edRunningHours'], + 'absPerHour' => number_format($summary['edProduction'] / ($summary['edRunningHours'] == 0 ? 1 : $summary['edRunningHours']), 2), + 'absOpeningStock' => (int)$trpAbstract["ED Details"]['opening_stock'], + 'absReceipt' => $summary['edProduction'], + 'absTotal' => (int)$trpAbstract["ED Details"]['opening_stock'] + $summary['edProduction'], + 'absConsumption' => $summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250), + 'absClosingStock' => (int)$trpAbstract["ED Details"]['opening_stock'] + $summary['edProduction'] - ($summary['edUsage'] + ($summary['coolerBags'] * 1250) + ($summary['cycloneWaste'] * 1250) + ($summary['edWaste'] * 1250)), + 'absPhysicalStock' => (int)$trpAbstract["ED Details"]['physical_stock'], + 'absRemarks' => $trpAbstract["ED Details"]['remarks'], + ], + [ + 'absDate' => $trpAbstract["TRP Total Sand"]['date'], + 'absParticulars' => "TRP Total Sand", + 'absRunningHrs' => $summary['sandFeedingHours'], + 'absPerHour' => $summary['trpProductionPerHour'], + 'absOpeningStock' => (int)$trpAbstract["TRP Total Sand"]['opening_stock'], + 'absReceipt' => $summary['trpProduction'], + 'absTotal' => (int)$trpAbstract["TRP Total Sand"]['opening_stock'] + $summary['trpProduction'], + 'absConsumption' => $totalCrsReceived, + 'absClosingStock' => (int)$trpAbstract["TRP Total Sand"]['opening_stock'] + $summary['trpProduction'] - $totalCrsReceived, + 'absPhysicalStock' => (int)$trpAbstract["TRP Total Sand"]['physical_stock'], + 'absRemarks' => $trpAbstract["TRP Total Sand"]['remarks'], + ], + [ + 'absDate' => $trpAbstract["Trp Physical Gas Consumption"]['date'], + 'absParticulars' => "Trp Physical Gas Consumption", + 'absRunningHrs' => "", + 'absPerHour' => number_format(($summary['trpPlusDrierGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2, '.', ''), + 'absOpeningStock' => (int)$trpAbstract["Trp Physical Gas Consumption"]['opening_stock'], + 'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'], + 'absTotal' => (int)$trpAbstract["Trp Physical Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'], + 'absConsumption' => $summary['physicalGasConsumption'], + 'absClosingStock' => (int)$trpAbstract["Trp Physical Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'] - $summary['physicalGasConsumption'], + 'absPhysicalStock' => (int)$trpAbstract["Trp Physical Gas Consumption"]['physical_stock'], + 'absRemarks' => $trpAbstract["Trp Physical Gas Consumption"]['remarks'], + ], + [ + 'absDate' => $trpAbstract["Trp Panel Gas Consumption"]['date'], + 'absParticulars' => "Trp Panel Gas Consumption", + 'absRunningHrs' => "", + 'absPerHour' => number_format(($summary['panelGasConsumption']) / (($summary['trpProduction'] == 0 ? 1000 : $summary['trpProduction']) / 1000), 2), + 'absOpeningStock' => (int)$trpAbstract["Trp Panel Gas Consumption"]['opening_stock'], + 'absReceipt' => $summary['gasReceiptBg'] + $summary['gasReceiptPg'], + 'absTotal' => (int)$trpAbstract["Trp Panel Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'], + 'absConsumption' => $summary['panelGasConsumption'], + 'absClosingStock' => (int)$trpAbstract["Trp Panel Gas Consumption"]['opening_stock'] + $summary['gasReceiptBg'] + $summary['gasReceiptPg'] - $summary['panelGasConsumption'], + 'absPhysicalStock' => (int)$trpAbstract["Trp Panel Gas Consumption"]['physical_stock'], + 'absRemarks' => $trpAbstract["Trp Panel Gas Consumption"]['remarks'], + ], + [ + 'absDate' => $trpAbstract["Water Consumption"]['date'], + 'absParticulars' => "Water Consumption", + 'absRunningHrs' => "", + 'absPerHour' => "", + 'absOpeningStock' => (int)$trpAbstract["Water Consumption"]['opening_stock'], + 'absReceipt' => $summary['waterReceipt'], + 'absTotal' => (int)$trpAbstract["Water Consumption"]['opening_stock'] + $summary['waterReceipt'], + 'absConsumption' => $summary['waterConsumption'], + 'absClosingStock' => (int)$trpAbstract["Water Consumption"]['opening_stock'] + $summary['waterReceipt'] - $summary['waterConsumption'], + 'absPhysicalStock' => (int)$trpAbstract["Water Consumption"]['physical_stock'], + 'absRemarks' => $trpAbstract["Water Consumption"]['remarks'], + ], + [ + 'absDate' => $trpAbstract["Power Consumption"]['date'], + 'absParticulars' => "Power Consumption", + 'absRunningHrs' => $summary['ebReadingPerUnitTon'], + 'absPerHour' => "", + 'absOpeningStock' => (int)$trpAbstract["Power Consumption"]['opening_stock'], + 'absReceipt' => '', + 'absTotal' => '', + 'absConsumption' => $summary['ebReading'], + 'absClosingStock' => '', + 'absPhysicalStock' => (int)$trpAbstract["Power Consumption"]['physical_stock'], + 'absRemarks' => $trpAbstract["Power Consumption"]['remarks'], + ] + ]; + + ?> + + format('Y-m'); + $absDate = "$absDate-01"; + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "Incoming Raw Sand Details", + 'absRunningHrs' => "", + 'absPerHour' => "", + 'absOpeningStock' => '', + 'absReceipt' => $totalWcsReceived, + 'absTotal' => $totalWcsReceived, + 'absConsumption' => $summary['edProduction'], + 'absClosingStock' => ($totalWcsReceived) - $summary['edProduction'], + 'absPhysicalStock' => '', + 'absRemarks' => '', + ], + [ + + 'absParticulars' => "ED Details", + 'absRunningHrs' => $summary['edRunningHours'], + 'absPerHour' => 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), + 'absPhysicalStock' => '', + 'absRemarks' => '', + ], + [ + + 'absParticulars' => "TRP Total Sand", + 'absRunningHrs' => $summary['sandFeedingHours'], + 'absPerHour' => $summary['trpProductionPerHour'], + 'absOpeningStock' => '', + 'absReceipt' => $summary['trpProduction'], + 'absTotal' => $summary['trpProduction'], + 'absConsumption' => $totalCrsReceived, + 'absClosingStock' => $summary['trpProduction'] - $totalCrsReceived, + 'absPhysicalStock' => '', + 'absRemarks' => '', + ], + [ + + 'absParticulars' => "Trp Physical Gas Consumption", + 'absRunningHrs' => "", + 'absPerHour' => 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'], + 'absPhysicalStock' => '', + 'absRemarks' => '', + ], + [ + + 'absParticulars' => "Trp Panel Gas Consumption", + 'absRunningHrs' => "", + 'absPerHour' => 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'], + 'absPhysicalStock' => '', + 'absRemarks' => '', + ], + [ + + 'absParticulars' => "Water Consumption", + 'absRunningHrs' => "", + 'absPerHour' => "", + 'absOpeningStock' => '', + 'absReceipt' => $summary['waterReceipt'], + 'absTotal' => $summary['waterReceipt'], + 'absConsumption' => $summary['waterReceipt'] - $summary['waterConsumption'], + 'absClosingStock' => '', + 'absPhysicalStock' => '', + 'absRemarks' => '', + ], + [ + + 'absParticulars' => "Power Consumption", + 'absRunningHrs' => $summary['ebReadingPerUnitTon'], + 'absPerHour' => "", + 'absOpeningStock' => '', + 'absReceipt' => '', + 'absTotal' => '', + 'absConsumption' => $summary['ebReading'], + 'absClosingStock' => '', + 'absPhysicalStock' => '', + 'absRemarks' => '', + ], + ] + + + ?> + format('Y-m'); + $absDate = "$absDate-01"; + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParticularsRunning HoursPer HourOpening StockReceiptTotalConsumptionClosing StockPhysical StockRemarks
+
+ +
+
+
+
@@ -1767,7 +1819,7 @@ $timeOtions[] = "12:00 AM";
-
+
@@ -1787,7 +1839,7 @@ $timeOtions[] = "12:00 AM"; var updateTrpProductionDetails = tableToJsonTrp(); - + alert('Updation may take a while, And we appreciate your patience..!!'); @@ -1798,7 +1850,7 @@ $timeOtions[] = "12:00 AM"; updateTrpProductionDetails }, type: "POST", - url: "updateTrpProductionDetails", + url: "updateTrpProductionDetails", success: function(data) { if (data) { @@ -1840,65 +1892,65 @@ $timeOtions[] = "12:00 AM"; let dateInYmD = `${date.split("-")[2]}-${date.split("-")[1]}-${date.split("-")[0]}`; //Ymd format - let openingDataId = `${dateInYmD} openingTime`; - let closingDataId = `${dateInYmD} closingTime`; + let openingDataId = `${dateInYmD} openingTime`; + let closingDataId = `${dateInYmD} closingTime`; let openingTime = $(this).find(`td[data-id='${openingDataId}'] select.trp_on_time`).val(); - + let closingTime = $(this).find(`td[data-id='${closingDataId}'] select.trp_off_time`).val(); - const rowData = { - Date : rowCells.eq(0).text().trim() , - openingTime : openingTime , - closingTime : closingTime , - totalHours : $(this).find(`td[data-id='${dateInYmD} totalHours']`).text().trim() , - coldStart : $(this).find(`td[data-id='${dateInYmD} coldStart']`).text().trim() , - breakdownHours : $(this).find(`td[data-id='${dateInYmD} breakdownHours']`).text().trim() , - burnerFiringHours : $(this).find(`td[data-id='${dateInYmD} burnerFiringHours']`).text().trim() , - sandFeedingHours : $(this).find(`td[data-id='${dateInYmD} sandFeedingHours']`).text().trim() , - gasReceiptBg : $(this).find(`td[data-id='${dateInYmD} gasReceiptBg']`).text().trim() , - gasReceiptPg : $(this).find(`td[data-id='${dateInYmD} gasReceiptPg']`).text().trim() , - physicalGasConsumption : $(this).find(`td[data-id='${dateInYmD} physicalGasConsumption']`).text().trim() , - trpPlusDrierGasConsumption : $(this).find(`td[data-id='${dateInYmD} trpPlusDrierGasConsumption']`).text().trim() , - trpPhysicalGasPerTon : $(this).find(`td[data-id='${dateInYmD} trpPhysicalGasPerTon']`).text().trim() , - panelGasConsumption : $(this).find(`td[data-id='${dateInYmD} panelGasConsumption']`).text().trim() , - panelGasPerTon : $(this).find(`td[data-id='${dateInYmD} panelGasPerTon']`).text().trim() , - edRunningHours : $(this).find(`td[data-id='${dateInYmD} edRunningHours']`).text().trim() , - edProduction : $(this).find(`td[data-id='${dateInYmD} edProduction']`).text().trim() , - edUsage : $(this).find(`td[data-id='${dateInYmD} edUsage']`) .text().trim() , - waterConsumption : $(this).find(`td[data-id='${dateInYmD} waterConsumption']`) .text().trim() , - trpProduction : $(this).find(`td[data-id='${dateInYmD} trpProduction']`) .text().trim() , - trpProductionPerHour : $(this).find(`td[data-id='${dateInYmD} trpProductionPerHour']`).text().trim() , - waterReceipt : $(this).find(`td[data-id='${dateInYmD} waterReceipt']`) .text().trim() , - ebReading : $(this).find(`td[data-id='${dateInYmD} ebReading']`) .text().trim() , - ebReadingPerUnitTon : $(this).find(`td[data-id='${dateInYmD} ebReadingPerUnitTon']`) .text().trim() , - workingPersonEngineers : $(this).find(`td[data-id='${dateInYmD} workingPersonEngineers']`).text().trim() , - workingPersonSupervisiors : $(this).find(`td[data-id='${dateInYmD} workingPersonSupervisiors']`).text().trim() , - workingPersonOperators : $(this).find(`td[data-id='${dateInYmD} workingPersonOperators']`).text().trim() , - rollerDrivers : $(this).find(`td[data-id='${dateInYmD} rollerDrivers']`).text().trim() , - natureOfMaintenance : $(this).find(`td[data-id='${dateInYmD} natureOfMaintenance']`).text().trim() , - location : $(this).find(`td[data-id='${dateInYmD} location']`).text().trim() , - description : $(this).find(`td[data-id='${dateInYmD} description']`).text().trim() , - msSeperation : $(this).find(`td[data-id='${dateInYmD} msSeperation']`).text().trim() , - edWaste : $(this).find(`td[data-id='${dateInYmD} edWaste']`).text().trim() , - coolerBags : $(this).find(`td[data-id='${dateInYmD} coolerBags']`).text().trim() , - edPlus20Waste : $(this).find(`td[data-id='${dateInYmD} edPlus20Waste']`).text().trim() , - cycloneWaste : $(this).find(`td[data-id='${dateInYmD} cycloneWaste']`).text().trim() , - }; + const rowData = { + Date: rowCells.eq(0).text().trim(), + openingTime: openingTime, + closingTime: closingTime, + totalHours: $(this).find(`td[data-id='${dateInYmD} totalHours']`).text().trim(), + coldStart: $(this).find(`td[data-id='${dateInYmD} coldStart']`).text().trim(), + breakdownHours: $(this).find(`td[data-id='${dateInYmD} breakdownHours']`).text().trim(), + burnerFiringHours: $(this).find(`td[data-id='${dateInYmD} burnerFiringHours']`).text().trim(), + sandFeedingHours: $(this).find(`td[data-id='${dateInYmD} sandFeedingHours']`).text().trim(), + gasReceiptBg: $(this).find(`td[data-id='${dateInYmD} gasReceiptBg']`).text().trim(), + gasReceiptPg: $(this).find(`td[data-id='${dateInYmD} gasReceiptPg']`).text().trim(), + physicalGasConsumption: $(this).find(`td[data-id='${dateInYmD} physicalGasConsumption']`).text().trim(), + trpPlusDrierGasConsumption: $(this).find(`td[data-id='${dateInYmD} trpPlusDrierGasConsumption']`).text().trim(), + trpPhysicalGasPerTon: $(this).find(`td[data-id='${dateInYmD} trpPhysicalGasPerTon']`).text().trim(), + panelGasConsumption: $(this).find(`td[data-id='${dateInYmD} panelGasConsumption']`).text().trim(), + panelGasPerTon: $(this).find(`td[data-id='${dateInYmD} panelGasPerTon']`).text().trim(), + edRunningHours: $(this).find(`td[data-id='${dateInYmD} edRunningHours']`).text().trim(), + edProduction: $(this).find(`td[data-id='${dateInYmD} edProduction']`).text().trim(), + edUsage: $(this).find(`td[data-id='${dateInYmD} edUsage']`).text().trim(), + waterConsumption: $(this).find(`td[data-id='${dateInYmD} waterConsumption']`).text().trim(), + trpProduction: $(this).find(`td[data-id='${dateInYmD} trpProduction']`).text().trim(), + trpProductionPerHour: $(this).find(`td[data-id='${dateInYmD} trpProductionPerHour']`).text().trim(), + waterReceipt: $(this).find(`td[data-id='${dateInYmD} waterReceipt']`).text().trim(), + ebReading: $(this).find(`td[data-id='${dateInYmD} ebReading']`).text().trim(), + ebReadingPerUnitTon: $(this).find(`td[data-id='${dateInYmD} ebReadingPerUnitTon']`).text().trim(), + workingPersonEngineers: $(this).find(`td[data-id='${dateInYmD} workingPersonEngineers']`).text().trim(), + workingPersonSupervisiors: $(this).find(`td[data-id='${dateInYmD} workingPersonSupervisiors']`).text().trim(), + workingPersonOperators: $(this).find(`td[data-id='${dateInYmD} workingPersonOperators']`).text().trim(), + rollerDrivers: $(this).find(`td[data-id='${dateInYmD} rollerDrivers']`).text().trim(), + natureOfMaintenance: $(this).find(`td[data-id='${dateInYmD} natureOfMaintenance']`).text().trim(), + location: $(this).find(`td[data-id='${dateInYmD} location']`).text().trim(), + description: $(this).find(`td[data-id='${dateInYmD} description']`).text().trim(), + msSeperation: $(this).find(`td[data-id='${dateInYmD} msSeperation']`).text().trim(), + edWaste: $(this).find(`td[data-id='${dateInYmD} edWaste']`).text().trim(), + coolerBags: $(this).find(`td[data-id='${dateInYmD} coolerBags']`).text().trim(), + edPlus20Waste: $(this).find(`td[data-id='${dateInYmD} edPlus20Waste']`).text().trim(), + cycloneWaste: $(this).find(`td[data-id='${dateInYmD} cycloneWaste']`).text().trim(), + }; - rows.push(rowData); + rows.push(rowData); + - }); return JSON.stringify(rows, null, 2); } - + @@ -2218,7 +2269,7 @@ $timeOtions[] = "12:00 AM"; //table to json function var updateAbstractDetails = tableToJsonAbstract(); - + alert('Updation may take a while, And we appreciate your patience..!!'); @@ -2228,7 +2279,7 @@ $timeOtions[] = "12:00 AM"; updateAbstractDetails }, type: "POST", - url: "updateAbstractDetails", + url: "updateAbstractDetails", success: function(data) { if (data) { @@ -2258,7 +2309,7 @@ $timeOtions[] = "12:00 AM"; \ No newline at end of file diff --git a/app/Views/stock/trpSandUseStockDetails.php b/app/Views/stock/trpSandUseStockDetails.php index 9d21aa1b..f929a785 100644 --- a/app/Views/stock/trpSandUseStockDetails.php +++ b/app/Views/stock/trpSandUseStockDetails.php @@ -297,54 +297,84 @@ -
+
-
-
+
+
+
-
+ +
+
-
- +
-
- -
- - - - + " + class="form-control " + data-provide="datepicker" + data-date-format="M-yyyy" + data-date-min-view-mode="1" readonly + style="max-width: 175px;"> -
+
-
- -
- -
+
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
-
+
@@ -948,3 +978,47 @@ }); }); + + + + \ No newline at end of file