Invoice in a project

Hi,

Hi,
I try to use the project functions and was searching how to get a list of spent time on my Dolibarr test application on line.
Thanks for this excellent software .

In 3.0.0-alpha version :

If you create a project with some tasks and you click on Referent and next you clik on Create invoice (no proposition, no order registered) the following massage is displayed :

Nouvelle facture

Warning: main(/xxxx/htdocs/iPlife/TestDolibarr/htdocs/project/class/project.class.php) [function.main]: failed to open stream: No such file or directory in /xxxx/htdocs/iPlife/TestDolibarr/htdocs/compta/facture.php on line 1379

Fatal error: main() [function.require]: Failed opening required ‘/xxxx/htdocs/iPlife/TestDolibarr/htdocs/project/class/project.class.php’ (include_path=’/xxxx/htdocs/iPlife/TestDolibarr/htdocs/htdocs’) in /xxxx/htdocs/iPlife/TestDolibarr/htdocs/compta/facture.php on line 1379

Probably solved but in case of …

Alain.

Fixed in CVS.

Hi Eldy,

Thanks, I try to use the actual version on CVS but probably not yet updated, no change.
Tomorrow evening I will download it again to test.

BR
Alain.

Solved in the today version, THANKs

Just installed 2.9.0 and we get almost the same error :

require_once(/public_html/dolibarr/htdocs/project/class/project.class.php) [function.require-once]: failed to open stream: No such file or directory in /public_html/dolibarr/htdocs/compta/facture.php on line 1382

There´s no /project but /projet, it´s not correctly constructing the path in this chunk :

[code]
if ($GET[‘origin’] && $GET[‘originid’])
{
// Parse element/subelement (ex: project_task)
$element = $subelement = $GET[‘origin’];
if (preg_match(’/^([^
]+)
([^
]+)/i’,$_GET[‘origin’],$regs))
{
$element = $regs[1];
$subelement = $regs[2];
}

	// For compatibility
	if ($element == 'order')    { $element = $subelement = 'commande'; }
	if ($element == 'propal')   { $element = 'comm/propal'; $subelement = 'propal'; }
	if ($element == 'contract') { $element = $subelement = 'contrat'; }

	require_once(DOL_DOCUMENT_ROOT.'/'.$element.'/class/'.$subelement.'.class.php');[/code]

Last line is 1382.

I tried to access SVN but it seems to be down now.

Despite this it seems to be a great piece of software!

Amazing work.
Regards,

Federico

I had the same problem with 2.9 and 3.0 version.
My solution in Debian system is create a new symbolik link

…/dolibarr/htdocs# ln -s projet project

Seems to be fixed into last CVS 3.0 beta.