Skip to content

Commit

Permalink
Fill ref_supplier in product get_buyprice
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed May 29, 2016
1 parent 4c93340 commit ade4178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/product/class/product.class.php
Expand Up @@ -1353,7 +1353,8 @@ function get_buyprice($prodfournprice,$qty,$product_id=0,$fourn_ref=0)
}
$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;
Expand Down

0 comments on commit ade4178

Please sign in to comment.