minor change -vadivel J
This commit is contained in:
parent
97ea5ecd5b
commit
a36060177b
@ -83,7 +83,10 @@ class FactoryMachineController extends BaseController
|
|||||||
|
|
||||||
$this->global['pageTitle'] = 'Factory Machine Master Details';
|
$this->global['pageTitle'] = 'Factory Machine Master Details';
|
||||||
|
|
||||||
$data['masterData'] = $this->factoryMachineMaster_model->where('is_active', 1)->findAll();
|
$data['masterData'] = $this->factoryMachineMaster_model->where('is_active', 1)
|
||||||
|
->where('is_active', 1)
|
||||||
|
->orderBy('created_at','DESC')
|
||||||
|
->findAll();
|
||||||
|
|
||||||
return $this->loadViews("factoryMachineMasterDetails", $this->global, $data, NULL);
|
return $this->loadViews("factoryMachineMasterDetails", $this->global, $data, NULL);
|
||||||
|
|
||||||
@ -95,7 +98,10 @@ class FactoryMachineController extends BaseController
|
|||||||
|
|
||||||
$id = $this->request->getPost('id');
|
$id = $this->request->getPost('id');
|
||||||
|
|
||||||
$data = $this->factoryMachineMaster_model->where('id', $id)->where('is_active', 1)->first();
|
$data = $this->factoryMachineMaster_model->where('id', $id)
|
||||||
|
->where('is_active', 1)
|
||||||
|
->orderBy('created_at','DESC')
|
||||||
|
->first();
|
||||||
|
|
||||||
return $this->loadViews("factoryMachineMasterDetails", $this->global, $data, NULL);
|
return $this->loadViews("factoryMachineMasterDetails", $this->global, $data, NULL);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user