diff --git a/app/Controllers/StockController.php b/app/Controllers/StockController.php index 85265995..449ca547 100644 --- a/app/Controllers/StockController.php +++ b/app/Controllers/StockController.php @@ -895,6 +895,10 @@ private function updateGasStockConsumption($date , $consumption){ $resultExists['consumption'] = $resultExists['consumption']+($consumption); $this->gasStockDetails_model->update($resultExists['id'],$resultExists); } + else if(true){ + //previous month stock to be subtracted with consumption if stock is present . + + } else{ $startDate = DateTime::createFromFormat('Y-m-d', $date)->modify('first day of this month')->format('Y-m-d');