Fix: bug #30629 : Ajout de prix fournisseur avec quantité fractionné donne erreur
This commit is contained in:
parent
178479baa7
commit
a881307f01
@ -256,6 +256,7 @@ class ProductFournisseur extends Product
|
|||||||
global $mysoc;
|
global $mysoc;
|
||||||
|
|
||||||
$buyprice=price2num($buyprice);
|
$buyprice=price2num($buyprice);
|
||||||
|
$qty=price2num($qty);
|
||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|||||||
@ -23,10 +23,10 @@ ProductsAndServicesOnSell=Produits et Services en vente
|
|||||||
ProductsAndServicesNotOnSell=Produits et Services hors vente
|
ProductsAndServicesNotOnSell=Produits et Services hors vente
|
||||||
ProductsAndServicesStatistics=Statistiques produits et services
|
ProductsAndServicesStatistics=Statistiques produits et services
|
||||||
ProductsStatistics=Statistiques produits
|
ProductsStatistics=Statistiques produits
|
||||||
ProductsOnSell=Produits en vente
|
ProductsOnSell=Produits en vente ou en achat
|
||||||
ProductsNotOnSell=Produits hors vente
|
ProductsNotOnSell=Produits hors vente et hors achat
|
||||||
ServicesOnSell=Services en vente
|
ServicesOnSell=Services en vente ou en achat
|
||||||
ServicesNotOnSell=Services hors vente
|
ServicesNotOnSell=Services hors vente et hors achat
|
||||||
InternalRef=Référence interne
|
InternalRef=Référence interne
|
||||||
LastRecorded=Derniers produits/services en vente enregistrés
|
LastRecorded=Derniers produits/services en vente enregistrés
|
||||||
LastRecordedProductsAndServices=Les %s derniers produits/services enregistrés
|
LastRecordedProductsAndServices=Les %s derniers produits/services enregistrés
|
||||||
|
|||||||
@ -112,7 +112,9 @@ $sql.= " GROUP BY p.fk_product_type, p.tosell, p.tobuy";
|
|||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
while ($objp = $db->fetch_object($result))
|
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%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user