changes in stock module
This commit is contained in:
parent
1eb4ba2102
commit
b3cece785f
@ -895,6 +895,10 @@ private function updateGasStockConsumption($date , $consumption){
|
|||||||
$resultExists['consumption'] = $resultExists['consumption']+($consumption);
|
$resultExists['consumption'] = $resultExists['consumption']+($consumption);
|
||||||
$this->gasStockDetails_model->update($resultExists['id'],$resultExists);
|
$this->gasStockDetails_model->update($resultExists['id'],$resultExists);
|
||||||
}
|
}
|
||||||
|
else if(true){
|
||||||
|
//previous month stock to be subtracted with consumption if stock is present .
|
||||||
|
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
$startDate = DateTime::createFromFormat('Y-m-d', $date)->modify('first day of this month')->format('Y-m-d');
|
$startDate = DateTime::createFromFormat('Y-m-d', $date)->modify('first day of this month')->format('Y-m-d');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user