Merge pull request #5248 from IonAgorria/patch-2

Fix: Fill ref_supplier in product get_buyprice
This commit is contained in:
Laurent Destailleur 2016-06-02 10:06:17 +02:00
commit b8ee75ce23

View File

@ -1353,7 +1353,8 @@ class Product extends CommonObject
}
$this->buyprice = $obj->price; // deprecated
$this->fourn_pu = $obj->price / $obj->quantity; // Prix unitaire du produit pour le fournisseur $fourn_id
$this->ref_fourn = $obj->ref_fourn; // Ref supplier
$this->ref_fourn = $obj->ref_fourn; // deprecated
$this->ref_supplier = $obj->ref_fourn; // Ref supplier
$this->vatrate_supplier = $obj->tva_tx; // Vat ref supplier
$result=$obj->fk_product;
return $result;