diff --git a/api_test.http b/api_test.http index eb69d7ec..00cf2d13 100644 --- a/api_test.http +++ b/api_test.http @@ -2,7 +2,7 @@ // $routes->match(['GET', 'POST'], 'trpProductionDetails', 'StockController::trpProductionDetails'); - GET http://localhost/ci4/ria/trpProductionDetails + GET http://localhost/ci4/ria/trpProductionDetails // $routes->post('updateTrpProductionDetails', 'StockController::updateTrpProductionDetails'); @@ -12,7 +12,1033 @@ # { # "updateTrpProductionDetails": [ # { -# "Date": "01-11-2024", +# "Date": "01-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "02-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "03-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "04-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "05-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "06-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "07-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "08-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "09-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "10-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "11-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "12-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "13-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "14-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "15-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "16-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "17-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "18-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "19-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "20-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "21-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "22-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "23-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "24-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "25-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "26-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "27-02-2025", +# "openingTime": "08:00", +# "closingTime": "17:00", +# "totalHours": 9, +# "coldStart": 0, +# "breakdownHours": 1, +# "burnerFiringHours": 8, +# "sandFeedingHours": 7, +# "workingPersonEngineers": 3, +# "workingPersonSupervisiors": 2, +# "workingPersonOperators": 4, +# "rollerDrivers": 1, +# "natureOfMaintenance": "Routine Check", +# "location": "Plant A", +# "description": "Routine operational maintenance", +# "gasReceiptBg": 500, +# "gasReceiptPg": 300, +# "physicalGasConsumption": 700, +# "trpPlusDrierGasConsumption": 600, +# "trpPhysicalGasPerTon": 5, +# "panelGasConsumption": 200, +# "panelGasPerTon": 2, +# "edRunningHours": 9, +# "edProduction": 100, +# "edUsage": 90, +# "trpProduction": 80, +# "trpProductionPerHour": 10, +# "waterReceipt": 1000, +# "waterConsumption": 800, +# "ebReading": 1200, +# "ebReadingPerUnitTon": 15, +# "msSeperation": 10, +# "edWaste": 5, +# "coolerBags": 3, +# "edPlus20Waste": 2, +# "cycloneWaste": 1 +# }, +# { +# "Date": "28-02-2025", # "openingTime": "08:00", # "closingTime": "17:00", # "totalHours": 9, @@ -49,6 +1075,7 @@ # "edPlus20Waste": 2, # "cycloneWaste": 1 # } + # ] # } diff --git a/app/Controllers/StockController.php b/app/Controllers/StockController.php index 002556c5..9adf1195 100644 --- a/app/Controllers/StockController.php +++ b/app/Controllers/StockController.php @@ -1294,10 +1294,12 @@ class StockController extends BaseController $month = $formattedDate; } else { - $month = new DateTime('2024-11-01'); - $month = $month->format('Y-m'); + + // $month = new DateTime('2024-10-01'); + // $month = $month->format('Y-m'); - // $month = date('Y-m'); + $month = date('Y-m'); + } $data = []; @@ -1309,13 +1311,25 @@ class StockController extends BaseController $startDate = "$month-01"; $endDate = date("Y-m-t", strtotime($startDate)); + $trpProductionMaintenanceData = $this->TrpProductionMaintenance_model + ->where('date >=', $startDate) + ->where('date <=', $endDate) + ->find(); + + if(empty($trpProductionMaintenanceData)){ + + $inserts = []; + + $inserts = $this->generateDummyData($startDate, $endDate); + + $data['trpProductionMaintenanceData'] = $this->updateTrpProductionDetails($inserts); + + } + $data['trpProductionDetails'] = $this->TrpProduction_model->trpProductionDetails($startDate,$endDate); - if(!empty($data['trpProductionDetails'])){ - // $data['trpProductionDetails'] = $this->supplierArrangement($data['trpProductionDetails']); - } // dd($data['trpProductionDetails']); @@ -1328,68 +1342,33 @@ class StockController extends BaseController $data['month'] = $formattedDate; - return $this->response->setJSON($data); - // return $this->loadViews("trpProductionStockDetails", $this->global, $data, NULL); + return $this->loadViews("trpProductionStockDetails", $this->global, $data, NULL); } - private function supplierArrangement($dataArray) - { - - foreach ($dataArray as $key => $data) { - - - - $reclamationSuppliers = explode(',', $data['reclamationSuppliers']); - $TotalRsQuantities = explode(',', $data['TotalRsQuantities']); - - $wasteCoreSuppliers = explode(',', $data['wasteCoreSuppliers']); - $TotalQuantities = explode(',', $data['TotalQuantities']); - - $result = []; - - - $data['reclamationSuppliers'] = $this->mapSuppliersToQuantities($reclamationSuppliers, $TotalRsQuantities); - - $data['wasteCoreSuppliers'] = $this->mapSuppliersToQuantities($wasteCoreSuppliers, $TotalQuantities); - - unset($data['TotalRsQuantities'], $data['TotalQuantities']); - - - } - - - return $data; - - - } - - - private function mapSuppliersToQuantities($suppliers, $quantities) - { - $result = []; - - foreach ($suppliers as $index => $supplier) { - $result[$supplier] = $quantities[$index]; - } - - return $result; - } - - - - public function updateTrpProductionDetails() { + public function updateTrpProductionDetails($inserts) { $postData = $this->request->getPost(); + + $postData = $this->request->getJSON(true); // Converts JSON to an associative array + + if(empty($postData)){ + if(empty($inserts)){ + return $this->response->setJSON(['error' => 'No data found to update']); + }else{ + $postData['updateTrpProductionDetails'] = $inserts; + } + } + - $updateTrpProductionDetails = json_decode($postData['updateTrpProductionDetails'], true); + $updateTrpProductionDetails = $postData['updateTrpProductionDetails']; $updateProduction = []; $updateMaintanence = []; @@ -1520,6 +1499,66 @@ class StockController extends BaseController + public function generateDummyData($startDate, $endDate) + { + $datesInMonth = []; + $inserts = []; + + $period = new DatePeriod( + new DateTime($startDate), + new DateInterval('P1D'), + (new DateTime($endDate))->modify('+1 day') + ); + + foreach ($period as $day) { + $datesInMonth[] = $day->format('Y-m-d'); + } + + foreach ($datesInMonth as $datesInMonthIndex => $dateInMonth) { + + $inserts[] = [ + 'Date' => $dateInMonth, + 'openingTime' => '00:00', + 'closingTime' => '00:00', + 'totalHours' => '00:00', + 'coldStart' => '00:00', + 'breakdownHours' => '00:00', + 'burnerFiringHours' => '00:00', + 'sandFeedingHours' => '00:00', + 'workingPersonEngineers' => 0, + 'workingPersonSupervisiors' => 0, + 'workingPersonOperators' => 0, + 'rollerDrivers' => 0, + 'natureOfMaintenance' => '', + 'location' => '', + 'description' => '', + 'gasReceiptBg' => 0, + 'gasReceiptPg' => 0, + 'physicalGasConsumption' => 0, + 'trpPlusDrierGasConsumption' => 0, + 'trpPhysicalGasPerTon' => 0, + 'panelGasConsumption' => 0, + 'panelGasPerTon' => 0, + 'edRunningHours' => 0, + 'edProduction' => 0, + 'edUsage' => 0, + 'trpProduction' => 0, + 'trpProductionPerHour' => 0, + 'waterReceipt' => 0, + 'waterConsumption' => 0, + 'ebReading' => 0, + 'ebReadingPerUnitTon' => 0, + 'msSeperation' => 0, + 'edWaste' => 0, + 'coolerBags' => 0, + 'edPlus20Waste' => 0, + 'cycloneWaste' => 0 + ]; + } + + return $inserts; + } + diff --git a/app/Models/TrpProductionModel.php b/app/Models/TrpProductionModel.php index f19abcea..e0ead6c2 100644 --- a/app/Models/TrpProductionModel.php +++ b/app/Models/TrpProductionModel.php @@ -54,6 +54,9 @@ class TrpProductionModel extends Model + + + // Subquery definition $subquery = $this->db->table('t_materialmaster') ->select('materialCode') @@ -119,12 +122,10 @@ class TrpProductionModel extends Model tsu.total_kgs as coating, - invItems.client_name as coreReclamationSupplier, - invItems.TotalRsQuantity, + invItems.*, - tigrd.SupplierName as wasteCoreSupplier, - tigrd.TotalQuantityAsPerInvoice + tigrdot.* FROM @@ -144,37 +145,65 @@ class TrpProductionModel extends Model LEFT JOIN ( - Select - clients.client_name, - invItems.item_date_added, - SUM(invItems.item_quantity) AS TotalRsQuantity - - from ip_invoice_items invItems + SELECT + invItems.item_date_added, + SUM(CASE WHEN clients.client_name = 'ASHOK LEYLAND LIMITED (FOUNDRY DIVISION-SRIPERUMBUDUR)' THEN invItems.item_quantity ELSE 0 END) AS + `ALs_crs`, + SUM(CASE WHEN clients.client_name = 'NEMAK ALUMINIUM CASTING INDIA PVT LTD' THEN invItems.item_quantity ELSE 0 END) AS + `Nemak_crs`, + SUM(CASE WHEN clients.client_name = 'MADRAS ENGINEERING INDUSTRIES PRIVATE LIMITED' THEN invItems.item_quantity ELSE 0 END) AS + `ME_crs`, + SUM(CASE WHEN clients.client_name = 'BRAKES INDIA PRIVATE LIMITED' THEN invItems.item_quantity ELSE 0 END) AS + `BI_crs`, + SUM(CASE WHEN clients.client_name = 'KARMEN INTERNATIONAL PVT LTD' THEN invItems.item_quantity ELSE 0 END) AS + `Karmen_crs` - -- All joins to get client name thats it - LEFT JOIN - ip_invoices inv - ON inv.invoice_id = invItems.invoice_id - - LEFT JOIN - ip_clients clients - ON clients.client_id = inv.client_id - -- getting core reclamation sand - Where invItems.item_name = 'Core Sand Reclaimed' + FROM + ip_invoice_items invItems + LEFT JOIN + ip_invoices inv ON inv.invoice_id = invItems.invoice_id + LEFT JOIN + ip_clients clients ON clients.client_id = inv.client_id + WHERE + invItems.item_name = 'Core Sand Reclaimed' + + AND + invItems.item_date_added >= '$startDate' + + AND + invItems.item_date_added <= '$endDate' + + GROUP BY + invItems.item_date_added - -- grouping Client who provides reclamation sand on a particular date with 1 or more invoices - Group By invItems.item_date_added , clients.client_name ) invItems ON invItems.item_date_added = tpmd.date - LEFT JOIN + LEFT JOIN ( - Select tigrd.CreatedDate ,tigrd.MaterialCode , tigrd.IGRNo , ts.SupplierName, - SUM(QuantityAsPerInvoice) AS TotalQuantityAsPerInvoice + + Select + + tigrd.CreatedDate , + + SUM(CASE WHEN ts.SupplierName = 'ASHOK LEYLAND LIMITED FOUNDRY DIVN - SPU' THEN tigrd.QuantityAsPerInvoice ELSE 0 END) AS + `ALs_wcs`, + SUM(CASE WHEN ts.SupplierName = 'ASHOK LEYLAND LIMITED FOUNDRY DIVN - ENU' THEN tigrd.QuantityAsPerInvoice ELSE 0 END) AS + `ALe_wcs`, + SUM(CASE WHEN ts.SupplierName = 'MADRAS ENGINEERING INDUSTRIES PRIVATE LIMITED' THEN tigrd.QuantityAsPerInvoice ELSE 0 END) AS + `ME_wcs`, + SUM(CASE WHEN ts.SupplierName = 'SIDDHARTH INDUSTRIES' THEN tigrd.QuantityAsPerInvoice ELSE 0 END) AS + `SI_wcs`, + SUM(CASE WHEN ts.SupplierName = 'Caparo Engineering India Limited' THEN tigrd.QuantityAsPerInvoice ELSE 0 END) AS + `caparo_wcs`, + SUM(CASE WHEN ts.SupplierName = 'NEMAK ALUMINIUM CASTING INDIA PVT LTD' THEN tigrd.QuantityAsPerInvoice ELSE 0 END) AS + `Nemak_wcs`, + SUM(CASE WHEN ts.SupplierName = 'DR AXION INDIA PRIVATE LIMITED' THEN tigrd.QuantityAsPerInvoice ELSE 0 END) AS + `DR_wcs` from t_igr_details tigrd @@ -192,13 +221,21 @@ class TrpProductionModel extends Model ON tpom.SupplierID = ts.SupplierID -- getting waste core sands using three distinct material codes - Where tigrd.MaterialCode IN ($materialCodesString) + Where + tigrd.MaterialCode IN ($materialCodesString) + + AND + tigrd.CreatedDate >= '$startDate' + + AND + tigrd.CreatedDate <= '$endDate' -- grouping supplier who provides waste core on a particular date with 1 or more IGRS - Group By Date(tigrd.CreatedDate) , ts.SupplierName + Group By Date(tigrd.CreatedDate) - ) tigrd - ON DATE(tigrd.CreatedDate) = tpmd.date + ) tigrdot + + ON DATE(tigrdot.CreatedDate) = tpmd.date @@ -214,89 +251,6 @@ class TrpProductionModel extends Model -// "SELECT -// tpmd.date, -// tpmd.openingTime, -// tpmd.closingTime, -// tpmd.totalHours, -// tpmd.coldStart, -// tpmd.breakdownHours, -// tpmd.burnerFiringHours, -// tpmd.sandFeedingHours, -// tpmd.workingPersonEngineers, -// tpmd.workingPersonSupervisiors, -// tpmd.workingPersonOperators, -// tpmd.rollerDrivers, -// tpmd.natureOfMaintenance, -// tpmd.location, -// tpmd.description, - -// tpd.gasReceiptBg, -// tpd.gasReceiptPg, -// tpd.physicalGasConsumption, -// tpd.trpPlusDrierGasConsumption, -// tpd.trpPhysicalGasPerTon, -// tpd.panelGasConsumption, -// tpd.panelGasPerTon, -// tpd.edRunningHours, -// tpd.edProduction, -// tpd.edUsage, -// tpd.trpProduction, -// tpd.trpProductionPerHour, -// tpd.waterReceipt, -// tpd.waterConsumption, -// tpd.ebReading, -// tpd.ebReadingPerUnitTon, - -// tpwd.msSeperation, -// tpwd.edWaste, -// tpwd.coolerBags, -// tpwd.edPlus20Waste, -// tpwd.cycloneWaste, - -// tcmd.totalGasConsumption AS coatingGasConsumption, -// tdmd.total_gas_consumption AS drierGasConsumption, -// tsu.total_kgs AS coating, - -// -- Aggregated values for Reclaimed Sand -// (SELECT GROUP_CONCAT(CONCAT(clients.client_name, ':', invItems.item_quantity) SEPARATOR '; ') -// FROM ip_invoice_items invItems -// LEFT JOIN ip_invoices inv ON inv.invoice_id = invItems.invoice_id -// LEFT JOIN ip_clients clients ON clients.client_id = inv.client_id -// WHERE invItems.item_name = 'Core Sand Reclaimed' AND invItems.item_date_added = tpmd.date -// ) AS reclaimedSandDetails, - -// -- Aggregated values for Waste Core -// (SELECT GROUP_CONCAT(CONCAT(ts.SupplierName, ':', tigrd.QuantityAsPerInvoice) SEPARATOR '; ') -// FROM t_igr_details tigrd -// LEFT JOIN t_igr_master tigm ON tigm.IGRNo = tigrd.IGRNo -// LEFT JOIN t_purchaseorder_master tpom ON tpom.PONO = tigm.PONO -// LEFT JOIN t_supplierdetailsn ts ON tpom.SupplierID = ts.SupplierID -// WHERE tigrd.MaterialCode IN ($materialCodesString) AND DATE(tigrd.CreatedDate) = tpmd.date -// ) AS wasteCoreDetails - -// FROM -// t_trpProductionMaintenanceDetails tpmd -// JOIN -// t_trpProductionDetails tpd ON tpd.date = tpmd.date -// JOIN -// t_trpProductionWasteDetails tpwd ON tpwd.date = tpmd.date -// LEFT JOIN -// t_coatingMachineDetails tcmd ON tcmd.date = tpmd.date -// LEFT JOIN -// t_drierMachineDetails tdmd ON tdmd.date = tpmd.date -// LEFT JOIN -// t_trp_sand_use tsu ON tsu.date = tpmd.date - -// WHERE -// tpmd.date >= ? -// AND -// tpmd.date <= ? - -// ORDER BY -// tpmd.date ASC; -// " - diff --git a/app/Views/trpProductionStockDetails.php b/app/Views/trpProductionStockDetails.php index bc8b8f9b..3da1ad30 100644 --- a/app/Views/trpProductionStockDetails.php +++ b/app/Views/trpProductionStockDetails.php @@ -254,7 +254,7 @@
-
+
@@ -424,39 +424,22 @@ - - + - - - - - - - - - - - - - - - - - $dateInMonth) + $trpProductionDetail) { ?> - format('d-m-Y'); + $dateInMonthDmYFormat= DateTime::createFromFormat('Y-m-d', $trpProductionDetail['date'])->format('d-m-Y'); if ($dateInMonthDmYFormat === $currentDate) { echo 'style="background: #cef0ad;"';} ?> @@ -465,14 +448,14 @@ + data-id=" date"> + data-id=" openingTime" > @@ -501,7 +486,9 @@ foreach($timeOptions as $timeOption) { ?> - @@ -514,8 +501,8 @@ - 0 + data-id=" totalHours"> + @@ -524,7 +511,7 @@ data-id="" oninput="trpStockChange(this)" contenteditable="true"> - 0 + @@ -533,21 +520,21 @@ data-id="" oninput="trpStockChange(this)" contenteditable="true"> - 0 + - 0 + - 0 + @@ -555,7 +542,7 @@ - 0 + @@ -563,7 +550,7 @@ - 0 + @@ -574,7 +561,7 @@ data-id="" oninput="trpStockChange(this)" contenteditable="true"> - 0 + @@ -583,14 +570,14 @@ - 0 + - 0 + @@ -598,14 +585,14 @@ - 0 + - 0 + @@ -615,28 +602,28 @@ data-id="" oninput="trpStockChange(this)" contenteditable="true"> - 0 + - 0 + - 0 + - 0 + @@ -644,21 +631,21 @@ - 0 + - 0 + - 0 + @@ -666,14 +653,14 @@ - 0 + - 0 + @@ -681,7 +668,7 @@ - 0 + @@ -691,7 +678,7 @@ - 0 + @@ -699,7 +686,7 @@ - 0 + @@ -708,56 +695,56 @@ data-id="" oninput="trpStockChange(this)" contenteditable="true"> - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + @@ -765,7 +752,7 @@ - 0 + @@ -773,7 +760,7 @@ - 0 + @@ -781,14 +768,14 @@ - 0 + - 0 + @@ -797,7 +784,7 @@ - 0 + @@ -805,7 +792,7 @@ - 0 + @@ -813,7 +800,7 @@ - 0 + @@ -821,7 +808,7 @@ - 0 + @@ -829,7 +816,7 @@ - 0 + @@ -837,7 +824,7 @@ - 0 + @@ -845,7 +832,7 @@ - 0 + @@ -854,7 +841,7 @@ - 0 + @@ -862,7 +849,7 @@ - 0 + @@ -870,7 +857,7 @@ - 0 + @@ -878,7 +865,7 @@ - 0 + @@ -886,7 +873,7 @@ - 0 + @@ -957,6 +944,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + -