diff --git a/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php b/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php index c798a36d538..8771fa760ef 100644 --- a/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php +++ b/htdocs/comm/askpricesupplier/class/askpricesupplier.class.php @@ -300,6 +300,7 @@ class AskPriceSupplier extends CommonObject * @param int $pa_ht Buying price without tax * @param string $label ??? * @param array $array_option extrafields array + * @param string $ref_fourn Supplier price reference * @return int >0 if OK, <0 if KO * * @see add_product @@ -476,9 +477,10 @@ class AskPriceSupplier extends CommonObject * @param string $label ??? * @param int $type 0/1=Product/service * @param array $array_option extrafields array + * @param string $ref_fourn Supplier price reference * @return int 0 if OK, <0 if KO */ - function updateline($rowid, $pu, $qty, $remise_percent, $txtva, $txlocaltax1=0, $txlocaltax2=0, $desc='', $price_base_type='HT', $info_bits=0, $special_code=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=0, $pa_ht=0, $label='', $type=0, $array_option=0, $ref_fourn) + function updateline($rowid, $pu, $qty, $remise_percent, $txtva, $txlocaltax1=0, $txlocaltax2=0, $desc='', $price_base_type='HT', $info_bits=0, $special_code=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=0, $pa_ht=0, $label='', $type=0, $array_option=0, $ref_fourn='') { global $conf,$user,$langs, $mysoc; diff --git a/htdocs/core/modules/askpricesupplier/mod_askpricesupplier_saphir.php b/htdocs/core/modules/askpricesupplier/mod_askpricesupplier_saphir.php index 2aad00d9cd9..22582308f22 100644 --- a/htdocs/core/modules/askpricesupplier/mod_askpricesupplier_saphir.php +++ b/htdocs/core/modules/askpricesupplier/mod_askpricesupplier_saphir.php @@ -102,9 +102,9 @@ class mod_askpricesupplier_saphir extends ModeleNumRefAskPriceSupplier /** * Return next value * - * @param Societe $objsoc Object third party - * @param Propal $propal Object commercial proposal - * @return string Value if OK, 0 if KO + * @param Societe $objsoc Object third party + * @param Propal $askpricesupplier Object askpricesupplier + * @return string Value if OK, 0 if KO */ function getNextValue($objsoc,$askpricesupplier) { diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 9e39769dc62..a9306846997 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1693,7 +1693,7 @@ class CommandeFournisseur extends CommonOrder if ($user->rights->fournisseur->commande->creer) { $sql = "UPDATE ".MAIN_DB_PREFIX."commande_fournisseur"; - $sql.= " SET fk_projet = ".($id_projet > 0 ? (int)$id_projet : 'null'); + $sql.= " SET fk_projet = ".($id_projet > 0 ? (int) $id_projet : 'null'); $sql.= " WHERE rowid = ".$this->id; dol_syslog(get_class($this)."::set_id_projet", LOG_DEBUG);