Fix phpcs
This commit is contained in:
parent
f993920d67
commit
afc487ef9d
@ -3229,13 +3229,13 @@ abstract class CommonObject
|
|||||||
/**
|
/**
|
||||||
* Common function for all objects extending CommonObject for generating documents
|
* Common function for all objects extending CommonObject for generating documents
|
||||||
*
|
*
|
||||||
* @param string $modelspath Relative folder where models are placed
|
* @param string $modelspath Relative folder where models are placed
|
||||||
* @param string $modele Model to use
|
* @param string $modele Model to use
|
||||||
* @param Translate $outputlangs Language to use
|
* @param Translate $outputlangs Language to use
|
||||||
* @param int $hidedetails 1 to hide details. 0 by default
|
* @param int $hidedetails 1 to hide details. 0 by default
|
||||||
* @param int $hidedesc 1 to hide product description. 0 by default
|
* @param int $hidedesc 1 to hide product description. 0 by default
|
||||||
* @param int $hideref 1 to hide product reference. 0 by default
|
* @param int $hideref 1 to hide product reference. 0 by default
|
||||||
* @return int 1 if OK -1 if not OK
|
* @return int 1 if OK -1 if KO
|
||||||
*/
|
*/
|
||||||
protected function commonGenerateDocument($modelspath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref)
|
protected function commonGenerateDocument($modelspath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -143,14 +143,17 @@ abstract class ModelNumRefExpedition
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cree un bon d'expedition sur disque
|
* Create a document onto disk according to template module.
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Objet base de donnee
|
* @param DoliDB $db Objet base de donnee
|
||||||
* @param Object $object Object expedition
|
* @param Object $object Object expedition
|
||||||
* @param string $modele Force le modele a utiliser ('' to not force)
|
* @param string $modele Force le modele a utiliser ('' to not force)
|
||||||
* @param Translate $outputlangs Objet lang a utiliser pour traduction
|
* @param Translate $outputlangs Objet lang a utiliser pour traduction
|
||||||
* @return int <=0 if KO, >0 if OK
|
* @param int $hidedetails Hide details of lines
|
||||||
* @deprecated Use the new function generateDocument of Expedition class
|
* @param int $hidedesc Hide description
|
||||||
|
* @param int $hideref Hide ref
|
||||||
|
* @return int 1 if OK -1 if KO
|
||||||
|
* @deprecated Use the new function generateDocument of Expedition class
|
||||||
*/
|
*/
|
||||||
function expedition_pdf_create(DoliDB $db, Expedition $object, $modele, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0)
|
function expedition_pdf_create(DoliDB $db, Expedition $object, $modele, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1598,14 +1598,14 @@ class Expedition extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a document onto disk accordign to template module.
|
* Create a document onto disk according to template module.
|
||||||
*
|
*
|
||||||
* @param string $modele Force the model to using ('' to not force)
|
* @param string $modele Force the model to using ('' to not force)
|
||||||
* @param Translate $outputlangs object lang to use for translations
|
* @param Translate $outputlangs object lang to use for translations
|
||||||
* @param int $hidedetails Hide details of lines
|
* @param int $hidedetails Hide details of lines
|
||||||
* @param int $hidedesc Hide description
|
* @param int $hidedesc Hide description
|
||||||
* @param int $hideref Hide ref
|
* @param int $hideref Hide ref
|
||||||
* @return int 0 if KO, 1 if OK
|
* @return int 1 if OK -1 if KO
|
||||||
*/
|
*/
|
||||||
public function generateDocument($modele, $outputlangs,$hidedetails=0, $hidedesc=0, $hideref=0)
|
public function generateDocument($modele, $outputlangs,$hidedetails=0, $hidedesc=0, $hideref=0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user