Fix: bug #30629 : Ajout de prix fournisseur avec quantité fractionné donne erreur

This commit is contained in:
Laurent Destailleur 2010-08-28 23:54:46 +00:00
parent 178479baa7
commit a881307f01
3 changed files with 8 additions and 5 deletions

View File

@ -256,6 +256,7 @@ class ProductFournisseur extends Product
global $mysoc;
$buyprice=price2num($buyprice);
$qty=price2num($qty);
$error=0;
$this->db->begin();

View File

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

View File

@ -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 '<table class="noborder" width="100%">';