Update fournisseur.commande.class.php

This commit is contained in:
Frédéric FRANCE 2018-11-19 23:56:20 +01:00 committed by GitHub
parent e020597ba7
commit 2e4ec1ed10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;