Fix : Product supplier price is related to supplier's currency
This commit is contained in:
parent
b22817c237
commit
6ac08c3bee
1 changed files with 2 additions and 1 deletions
|
|
@ -1408,7 +1408,8 @@ class CommandeFournisseur extends CommonOrder
|
|||
$result=$prod->get_buyprice($fk_prod_fourn_price, $qty, $fk_product, 'none', $this->fk_soc); // Search on couple $fk_prod_fourn_price/$qty first, then on triplet $qty/$fk_product/$fourn_ref/$this->fk_soc
|
||||
if ($result > 0)
|
||||
{
|
||||
$pu = $prod->fourn_pu; // Unit price supplier price set by get_buyprice
|
||||
$pu = 0; // Unit price supplier price set by get_buyprice
|
||||
$pu_ht_devise = $prod->fourn_pu; // With multicurrency, supplier price is related to its currency, $pu will be calculated (= $pu_ht_devise if exchange rate is 1)
|
||||
$ref_supplier = $prod->ref_supplier; // Ref supplier price set by get_buyprice
|
||||
}
|
||||
if ($result == 0) // If result == 0, we failed to found the supplier reference price
|
||||
|
|
|
|||
Loading…
Reference in a new issue