Exemplo n.º 1
0
 /**
  * Update the customer status
  */
 public function UpdateCustomerStatus($request)
 {
     try {
         $userservice = new Application_Service_Client();
         $status = $userservice->UpdateCustomerStatus($request);
         if ($request->status == 'ACT' && $status == true) {
             $msg = 'Customer Activated Successfully.';
         } else {
             if ($request->status == 'INA' && $status == true) {
                 $msg = 'Customer DeActivated Successfully.';
             }
         }
         return $msg;
     } catch (Exception $ex) {
         Rdine_Logger_FileLogger::info($ex->getMessage());
         throw new Exception($ex->getMessage());
     }
 }