Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
90b7cd1a
Commit
90b7cd1a
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
[ task #176 ] Allow to use ODT templates for prososal like it's done for
invoices. Move pdf and odt to doc dir
parent
29a1ae17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/admin/propale.php
+3
-3
3 additions, 3 deletions
htdocs/admin/propale.php
htdocs/core/modules/propale/modules_propale.php
+7
-7
7 additions, 7 deletions
htdocs/core/modules/propale/modules_propale.php
test/phpunit/BuildDocTest.php
+2
-2
2 additions, 2 deletions
test/phpunit/BuildDocTest.php
with
12 additions
and
12 deletions
htdocs/admin/propale.php
+
3
−
3
View file @
90b7cd1a
...
...
@@ -71,12 +71,12 @@ if ($action == 'specimen')
$propal
->
initAsSpecimen
();
// Charge le modele
$dir
=
"/core/modules/propale/"
;
$file
=
"pdf_
propale_
"
.
$modele
.
".modules.php"
;
$dir
=
"/core/modules/propale/
doc/
"
;
$file
=
"pdf_"
.
$modele
.
".modules.php"
;
$file
=
dol_buildpath
(
$dir
.
$file
);
if
(
file_exists
(
$file
))
{
$classname
=
"pdf_
propale_
"
.
$modele
;
$classname
=
"pdf_"
.
$modele
;
require_once
(
$file
);
$module
=
new
$classname
(
$db
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/modules/propale/modules_propale.php
+
7
−
7
View file @
90b7cd1a
...
...
@@ -147,7 +147,7 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
$langs
->
load
(
"propale"
);
$error
=
0
;
$dir
=
"/core/modules/propale/"
;
$srctemplatepath
=
''
;
...
...
@@ -233,11 +233,11 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
dol_print_error
(
''
,
$langs
->
trans
(
"Error"
)
.
" "
.
$langs
->
trans
(
"ErrorFileDoesNotExists"
,
$dir
.
$file
));
return
-
1
;
}
/*
// Positionne modele sur le nom du modele de propale a utiliser
$file = "pdf_
propale_
".$modele.".modules.php";
$file = "pdf_".$modele.".modules.php";
// On verifie l'emplacement du modele
$file = dol_buildpath($dir.$file);
...
...
@@ -248,7 +248,7 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
if (! $modelisok)
{
if ($conf->global->PROPALE_ADDON_PDF) $modele = $conf->global->PROPALE_ADDON_PDF;
$file = "pdf_
propale_
".$modele.".modules.php";
$file = "pdf_".$modele.".modules.php";
// On verifie l'emplacement du modele
$file = dol_buildpath($dir.$file);
if (file_exists($file)) $modelisok=1;
...
...
@@ -259,7 +259,7 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
{
$liste=ModelePDFPropales::liste_modeles($db);
$modele=key($liste); // Renvoie premiere valeur de cle trouve dans le tableau
$file = "pdf_
propale_
".$modele.".modules.php";
$file = "pdf_".$modele.".modules.php";
$file = dol_buildpath($dir.$file);
if (file_exists($file)) $modelisok=1;
}
...
...
@@ -268,7 +268,7 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
// Charge le modele
if ($modelisok)
{
$classname = "pdf_
propale_
".$modele;
$classname = "pdf_".$modele;
require_once($file);
$obj = new $classname($db);
...
...
This diff is collapsed.
Click to expand it.
test/phpunit/BuildDocTest.php
+
2
−
2
View file @
90b7cd1a
...
...
@@ -37,10 +37,10 @@ require_once dirname(__FILE__).'/../../htdocs/projet/class/task.class.php';
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/lib/pdf.lib.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/facture/doc/pdf_oursin.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/propale/doc/pdf_azur.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/propale/doc/pdf_jaune.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/commande/pdf_edison.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/commande/pdf_einstein.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/propale/pdf_propale_azur.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/propale/pdf_propale_jaune.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/project/pdf/pdf_baleine.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/fichinter/pdf_soleil.modules.php'
;
require_once
dirname
(
__FILE__
)
.
'/../../htdocs/core/modules/expedition/doc/pdf_expedition_merou.modules.php'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment