changes in stock module

This commit is contained in:
vadivel J 2024-11-16 17:40:07 +05:30
parent 1eb4ba2102
commit b3cece785f

View File

@ -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');