replace some text

This commit is contained in:
Frédéric FRANCE 2019-10-02 08:10:21 +02:00
parent f928bacfb9
commit 27cc92f6ca
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -97,11 +97,11 @@ class FichinterRec extends Fichinter
/** /**
* Create a predefined invoice * Create a predefined fichinter
* *
* @param User $user User object * @param User $user User object
* @param int $notrigger no trigger * @param int $notrigger no trigger
* @return int <0 if KO, id of invoice if OK * @return int <0 if KO, id of fichinter if OK
*/ */
public function create($user, $notrigger = 0) public function create($user, $notrigger = 0)
{ {
@ -237,8 +237,8 @@ class FichinterRec extends Fichinter
* Recupere l'objet facture et ses lignes de factures * Recupere l'objet facture et ses lignes de factures
* *
* @param int $rowid Id of object to load * @param int $rowid Id of object to load
* @param string $ref Reference of invoice * @param string $ref Reference of fichinter
* @param string $ref_ext External reference of invoice * @param string $ref_ext External reference of fichinter
* @param int $ref_int Internal reference of other object * @param int $ref_int Internal reference of other object
* @return int >0 if OK, <0 if KO, 0 if not found * @return int >0 if OK, <0 if KO, 0 if not found
*/ */
@ -254,7 +254,7 @@ class FichinterRec extends Fichinter
if ($rowid >0 ) $sql.= ' WHERE f.rowid='.$rowid; if ($rowid >0 ) $sql.= ' WHERE f.rowid='.$rowid;
elseif ($ref) $sql.= " WHERE f.titre='".$this->db->escape($ref)."'"; elseif ($ref) $sql.= " WHERE f.titre='".$this->db->escape($ref)."'";
/* This field are not used for template invoice /* This field are not used for template fichinter
if ($ref_ext) $sql.= " AND f.ref_ext='".$this->db->escape($ref_ext)."'"; if ($ref_ext) $sql.= " AND f.ref_ext='".$this->db->escape($ref_ext)."'";
if ($ref_int) $sql.= " AND f.ref_int='".$this->db->escape($ref_int)."'"; if ($ref_int) $sql.= " AND f.ref_int='".$this->db->escape($ref_int)."'";
*/ */
@ -390,9 +390,9 @@ class FichinterRec extends Fichinter
/** /**
* Delete template invoice * Delete template fichinter rec
* *
* @param int $rowid Id of invoice to delete. If empty, we delete current instance of invoice * @param int $rowid Id of fichinter rec to delete. If empty, we delete current instance of fichinter rec
* @param int $notrigger 1=Does not execute triggers, 0= execute triggers * @param int $notrigger 1=Does not execute triggers, 0= execute triggers
* @param int $idwarehouse Id warehouse to use for stock change. * @param int $idwarehouse Id warehouse to use for stock change.
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
@ -431,7 +431,7 @@ class FichinterRec extends Fichinter
/** /**
* Add a line to fichinter * Add a line to fichinter rec
* *
* @param string $desc Description de la ligne * @param string $desc Description de la ligne
* @param integer $duration Durée * @param integer $duration Durée
@ -575,9 +575,10 @@ class FichinterRec extends Fichinter
dol_print_error($this->db); dol_print_error($this->db);
return -1; return -1;
} }
} else } else {
return -2; return -2;
} }
}
/** /**
* Return clicable name (with picto eventually) * Return clicable name (with picto eventually)
@ -608,8 +609,12 @@ class FichinterRec extends Fichinter
if ($withpicto) { if ($withpicto) {
$result.= $link.img_object($label, $picto, 'class="classfortooltip"').$linkend; $result.= $link.img_object($label, $picto, 'class="classfortooltip"').$linkend;
} }
if ($withpicto && $withpicto != 2) $result.=' '; if ($withpicto && $withpicto != 2) {
if ($withpicto != 2) $result.=$link.$this->ref.$linkend; $result.=' ';
}
if ($withpicto != 2) {
$result.=$link.$this->ref.$linkend;
}
return $result; return $result;
} }
@ -619,7 +624,7 @@ class FichinterRec extends Fichinter
* Used to build previews or test instances. * Used to build previews or test instances.
* id must be 0 if object instance is a specimen. * id must be 0 if object instance is a specimen.
* *
* @param string $option ''=Create a specimen invoice with lines, 'nolines'=No lines * @param string $option ''=Create a specimen fichinter with lines, 'nolines'=No lines
* @return void * @return void
*/ */
public function initAsSpecimen($option = '') public function initAsSpecimen($option = '')
@ -747,9 +752,9 @@ class FichinterRec extends Fichinter
} }
/** /**
* Update the auto validate invoice * Update the auto validate fichinter
* *
* @param int $validate 0 to create in draft, 1 to create and validate invoice * @param int $validate 0 to create in draft, 1 to create and validate fichinter
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
*/ */
public function setAutoValidate($validate) public function setAutoValidate($validate)