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
2fdad0f1
Commit
2fdad0f1
authored
7 years ago
by
reeperbahnause
Committed by
Laurent Destailleur
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix #7361 missing generateDocument function
fix #7361 Function generateDocument was missing for Class Fichinter
parent
6da5a6b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/fichinter/class/fichinter.class.php
+32
-0
32 additions, 0 deletions
htdocs/fichinter/class/fichinter.class.php
with
32 additions
and
0 deletions
htdocs/fichinter/class/fichinter.class.php
+
32
−
0
View file @
2fdad0f1
...
...
@@ -561,6 +561,38 @@ class Fichinter extends CommonObject
return
price2num
(
$amount
,
'MT'
);
}
/**
* Create a document onto disk according to template module.
*
* @param string $modele Force model to use ('' to not force)
* @param Translate $outputlangs Object langs to use for output
* @param int $hidedetails Hide details of lines
* @param int $hidedesc Hide description
* @param int $hideref Hide ref
* @return int 0 if KO, 1 if OK
*/
public
function
generateDocument
(
$modele
,
$outputlangs
,
$hidedetails
=
0
,
$hidedesc
=
0
,
$hideref
=
0
)
{
global
$conf
,
$langs
;
$langs
->
load
(
"interventions"
);
if
(
!
dol_strlen
(
$modele
))
{
$modele
=
'azur'
;
if
(
$this
->
modelpdf
)
{
$modele
=
$this
->
modelpdf
;
}
elseif
(
!
empty
(
$conf
->
global
->
PROPALE_ADDON_PDF
))
{
$modele
=
$conf
->
global
->
PROPALE_ADDON_PDF
;
}
}
$modelpath
=
"core/modules/fichinter/doc/"
;
return
$this
->
commonGenerateDocument
(
$modelpath
,
$modele
,
$outputlangs
,
$hidedetails
,
$hidedesc
,
$hideref
);
}
/**
* Returns the label status
...
...
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