Skip to content

Commit

Permalink
Fix for compatibility with lines with no prices (some external modules)
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 29, 2018
1 parent 1b542d5 commit 74b3e3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/core/lib/price.lib.php
Expand Up @@ -163,6 +163,7 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $uselocalt
return array();
}
}
if ($pu === '') $pu=0;
// pu_devise calculation from pu
if (empty($pu_devise) && !empty($multicurrency_tx)) {
if (is_numeric($pu) && is_numeric($multicurrency_tx)) $pu_devise = $pu * $multicurrency_tx;
Expand Down

0 comments on commit 74b3e3e

Please sign in to comment.