diff --git a/htdocs/fourn/class/fournisseur.product.class.php b/htdocs/fourn/class/fournisseur.product.class.php index 0d6ef6ac5fa..58794a7c3f5 100644 --- a/htdocs/fourn/class/fournisseur.product.class.php +++ b/htdocs/fourn/class/fournisseur.product.class.php @@ -256,6 +256,7 @@ class ProductFournisseur extends Product global $mysoc; $buyprice=price2num($buyprice); + $qty=price2num($qty); $error=0; $this->db->begin(); diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang index 6a6cd776568..be93154ca39 100644 --- a/htdocs/langs/fr_FR/products.lang +++ b/htdocs/langs/fr_FR/products.lang @@ -23,10 +23,10 @@ ProductsAndServicesOnSell=Produits et Services en vente ProductsAndServicesNotOnSell=Produits et Services hors vente ProductsAndServicesStatistics=Statistiques produits et services ProductsStatistics=Statistiques produits -ProductsOnSell=Produits en vente -ProductsNotOnSell=Produits hors vente -ServicesOnSell=Services en vente -ServicesNotOnSell=Services hors vente +ProductsOnSell=Produits en vente ou en achat +ProductsNotOnSell=Produits hors vente et hors achat +ServicesOnSell=Services en vente ou en achat +ServicesNotOnSell=Services hors vente et hors achat InternalRef=Référence interne LastRecorded=Derniers produits/services en vente enregistrés LastRecordedProductsAndServices=Les %s derniers produits/services enregistrés diff --git a/htdocs/product/index.php b/htdocs/product/index.php index 699bba7e198..fe5f00c4d5d 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -112,7 +112,9 @@ $sql.= " GROUP BY p.fk_product_type, p.tosell, p.tobuy"; $result = $db->query($sql); while ($objp = $db->fetch_object($result)) { - $prodser[$objp->fk_product_type][$objp->tosell]=$objp->total; + $status=1; + if (! $objp->tosell && ! $objp->tobuy) $status=0; + $prodser[$objp->fk_product_type][$status]=$objp->total; } print '