center master changes done
This commit is contained in:
parent
c46448f764
commit
bb48cba347
@ -40,6 +40,7 @@ class Center_Controller extends REST_Controller {
|
||||
$details['Comments'] = $this->post('Comments');
|
||||
$details['CreatedBy'] = $this->post('createdBy');
|
||||
$details['IsActive'] = $this->post('status');
|
||||
$details['BranchCode'] = $this->post('branchCode');
|
||||
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
||||
|
||||
$centerDetails = $this->center_model->addCenter($details);// Check if the users data store contains users (in case the database result returns NULL)
|
||||
@ -67,7 +68,8 @@ class Center_Controller extends REST_Controller {
|
||||
public function getCenterDetails_post()
|
||||
{
|
||||
$requestedBy = $this->post('requestedBy');
|
||||
$getCenter = $this->center_model->getCenter($requestedBy);
|
||||
$branchCode = $this->post('branchCode');
|
||||
$getCenter = $this->center_model->getCenter($requestedBy,$branchCode);
|
||||
// print_r($getCenter);
|
||||
// die;
|
||||
if ($getCenter)
|
||||
@ -103,6 +105,7 @@ class Center_Controller extends REST_Controller {
|
||||
$CenterID=$this->post('CenterID');
|
||||
$details['IsActive'] = $this->post('status');
|
||||
$details['UpdateBy'] = $this->post('updateBy');
|
||||
$details['BranchCode'] = $this->post('branchCode');
|
||||
$details['UpdateOn'] = $now->format("Y-m-d H:i:s");
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user