Fix scrutinizer, wrong unitprice var

This commit is contained in:
Francis Appels 2019-05-30 17:30:53 +02:00
parent f89e72e329
commit e496967235

View File

@ -1647,7 +1647,7 @@ class Contrat extends CommonObject
// if buy price not defined, define buyprice as configured in margin admin
if ($this->pa_ht == 0)
{
if (($result = $this->defineBuyPrice($pu_ht, $remise_percent)) < 0)
if (($result = $this->defineBuyPrice($pu, $remise_percent)) < 0)
{
return $result;
}