diff --git a/app/Controllers/StockController.php b/app/Controllers/StockController.php index c0d96a57..3ae75a20 100644 --- a/app/Controllers/StockController.php +++ b/app/Controllers/StockController.php @@ -1321,9 +1321,9 @@ class StockController extends BaseController $data['month'] = $formattedDate; - return $this->response->setJSON($data); + // return $this->response->setJSON($data); - // return $this->loadViews("trpProductionStockDetails", $this->global, $data, NULL); + return $this->loadViews("trpProductionStockDetails", $this->global, $data, NULL); @@ -1335,7 +1335,7 @@ class StockController extends BaseController $updateTrpProductionDetails = json_decode($postData['updateTrpProductionDetails'], true); - $updateProduction = []; + $updateProduction = []; $updateMaintanence = []; $updateWaste = []; diff --git a/app/Models/TrpProductionModel.php b/app/Models/TrpProductionModel.php index 02cf5ba8..73257be9 100644 --- a/app/Models/TrpProductionModel.php +++ b/app/Models/TrpProductionModel.php @@ -119,13 +119,9 @@ class TrpProductionModel extends Model tsu.total_kgs as coating, - invItems.item_date_added, - invItems.client_name, invItems.TotalRsQuantity, - tigrd.SupplierName, - tigrd.TotalQuantityAsPerInvoice, - tigrd.CreatedDate + tigrd.TotalQuantityAsPerInvoice FROM diff --git a/app/Views/trpProductionStockDetails.php b/app/Views/trpProductionStockDetails.php index 86e9730f..b2cb7bba 100644 --- a/app/Views/trpProductionStockDetails.php +++ b/app/Views/trpProductionStockDetails.php @@ -156,8 +156,8 @@ height: 20px; } - #resinStockDetailsTableId th:nth-child(1), - #resinStockDetailsTableId td:nth-child(1) { + #trpProductionStockDetailsTableId th:nth-child(1), + #trpProductionStockDetailsTableId td:nth-child(1) { position: sticky; left: 0; background-color: #00a65a; @@ -260,7 +260,7 @@
- +
@@ -421,214 +421,217 @@ with initial values 0 for entire month --> - - + + $dateInMonth) + { + + ?> + + format('d-m-Y'); + if ($dateInMonthDmYFormat === $currentDate) { echo 'style="background: #cef0ad;"';} + ?> + + > + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + + + + + - - - + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - @@ -636,249 +639,216 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + @@ -947,7 +917,7 @@ const selectedResin = resinDropdown.value; const selectedDate = dateDropdown.value; - const table = document.getElementById('resinStockDetailsTableId'); + const table = document.getElementById('trpProductionStockDetailsTableId'); const headerCells = table.querySelectorAll('thead tr:nth-child(1) th'); const rows = table.querySelectorAll('tbody tr'); @@ -1063,7 +1033,7 @@ - - +
- 54465656 + + 0 0 + 0 0 0 + 0 + 0 - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - + 0 - + + 0 + 0 + + + + + + 0 + 0 + + 0 + + 0 + 0 + + 0 + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + 0 + + 0 + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + 0 + 0 + 0 + 0 + + 0 + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + 0 + 0 + 0 + 0 + - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - - 0 - 0