示例#1
0
 protected function GenerateResponse()
 {
     try {
         $this->response = InventarioController::ExistenciasRecalcular(isset($_POST['productos']) ? json_decode($_POST['productos']) : null, isset($_POST['id_sucursal']) ? $_POST['id_sucursal'] : "");
     } catch (Exception $e) {
         //Logger::error($e);
         throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage()));
     }
 }