Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sosamv

Pages: [1]
1
Feng Office 2 / Re: Error Creating Reports 2.2.4.1
« on: May 03, 2013, 02:23:06 PM »
Dont panic people... I've got This! hahaha, just download the beta version, and replace the ApplicationDataObject.class.php with the new one, and fixed :)

2
Feng Office 2 / Re: Probem with "percentage completed" in tasks
« on: April 11, 2013, 08:54:17 PM »
Mde a mistake, it works tho, but this one works better:

Code: [Select]
function calculatePercentComplete() {
if ($this->getTimeEstimate() > 0){
$all_timeslots = $this->getTimeslots();
$total_time = 0;
foreach ($all_timeslots as $ts) {
if (!$ts->getEndTime() instanceof DateTimeValue) continue;
$total_time += ($ts->getEndTime()->getTimestamp() - ($ts->getStartTime()->getTimestamp() + $ts->getSubtract())) / 3600;
}
$total_percentComplete = round(($total_time * 100) / ($this->getTimeEstimate() / 60));
if ($total_percentComplete < 0) $total_percentComplete = 0;
                }else{
                    $total_percentComplete = $this->getPercentCompleted();
                }
$this->setPercentCompleted($total_percentComplete);
$this->save();
}


3
Feng Office 2 / Re: Probem with "percentage completed" in tasks
« on: April 11, 2013, 08:46:31 PM »
It is actually pretty simple to fix but hard to find. Look for the file called ProjectTask.class.php, locate the calculatePercentComplete function and repleace it with this one: 

Code: [Select]
function calculatePercentComplete() {
if ($this->getTimeEstimate() > 0){
$all_timeslots = $this->getTimeslots();
$total_time = 0;
foreach ($all_timeslots as $ts) {
if (!$ts->getEndTime() instanceof DateTimeValue) continue;
$total_time += ($ts->getEndTime()->getTimestamp() - ($ts->getStartTime()->getTimestamp() + $ts->getSubtract())) / 3600;
}
$total_percentComplete = round(($total_time * 100) / ($this->getTimeEstimate() / 60));
if ($total_percentComplete < 0) $total_percentComplete = 0;
}
$this->setPercentCompleted($this->getPercentCompleted());
$this->save();
}

Dont know if its the right way to solve it, at least it doesnt breaks anything and when you enter an estimate it will still work

 ;)

4
Feng Office 2 / Error Creating Reports 2.2.4.1
« on: April 11, 2013, 02:04:31 PM »
Hello, I've just installed feng office locally, the version is 2.2.4.1, everything works perfect but the reports, I cant save 'em i'm getting the same error everytime.

Query failed with message 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''object_id','59')
ON DUPLICATE KEY UPDATE content = '59'' at line 2'


The problem is located at line 186 of the ApplicationDataObject.clas.php, the function $searchable_object->getRelObjectId() is returning 'null'.

5
Installation problems / Re: can't upload or create documents
« on: July 23, 2009, 11:54:12 AM »
I'm having the same issue, anyone please?????'

6
Architecture / Re: Ajax patterns?
« on: April 07, 2009, 04:21:51 PM »
Hi Ignacio! and thanx for your quick replay! Yep im very concerned about the architecture we're going to use, i think we're going to start a lil framework of ours cuz we'll be using Extjs very much. Thanx for the insight!

Saludos desde Monterrey, Mexico =)

7
Architecture / Ajax patterns?
« on: April 07, 2009, 01:42:17 AM »
Hi guys i've just installed opengoo on our company's server, we're using it to keep track of our projects and i'm amazed!  :o (i'm a team lead of a mexican software company)  :)

I didnt know of the existence of ExtJS :S and its great how you guys used it to make opengoo. Right now we are playing with Extjs at the office cuz we'll use it on our next project (i recommended it LOL). So, can you guys tell me an easy way or the best practice to use PHP and the Extjs framework, i looked at the opengoo source code and you guys are using php objects, are you using some sort of a javascript-php framework to interprete the objects?, I'm looking for word of advise.

I'm totally new making full Ajax applications, i've done a lot of javascript ajax enabled components using jquery with php services that return JSON's, but not a whole app hehe.

thanx!


Pages: [1]