From 2e4ec1ed10dee16131eb0f5cb2e2ad0014238370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 19 Nov 2018 23:56:20 +0100 Subject: [PATCH] Update fournisseur.commande.class.php --- htdocs/fourn/class/fournisseur.commande.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index c2e9243a331..77ad3d20048 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2005,7 +2005,7 @@ class CommandeFournisseur extends CommonOrder /** * Get list of order methods * - * @return 0 if Ok, <0 if Ko + * @return int 0 if OK, <0 if KO */ function get_methodes_commande() { @@ -2037,7 +2037,7 @@ class CommandeFournisseur extends CommonOrder } /** - * Return array of dispathed lines waiting to be approved for this order + * Return array of dispatched lines waiting to be approved for this order * * @since 8.0 Return dispatched quantity (qty). * @@ -2358,6 +2358,8 @@ class CommandeFournisseur extends CommonOrder for ($i = 0; $i < $num; $i++) { $prod = new Product($this->db); + $libelle = ''; + $ref = ''; if ($prod->fetch($comclient->lines[$i]->fk_product) > 0) { $libelle = $prod->libelle;