Skip to content

Commit

Permalink
Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 27, 2024
2 parents 7317e16 + 90a89d3 commit c29a27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/commande/card.php
Expand Up @@ -860,8 +860,8 @@
}
}

$tmpvat = price2num(preg_replace('/\s*\(.*\)/', '', $tva_tx)) ?: 0;
$tmpprodvat = price2num(preg_replace('/\s*\(.*\)/', '', $prod->tva_tx));
$tmpvat = (float) price2num(preg_replace('/\s*\(.*\)/', '', $tva_tx));
$tmpprodvat = (float) price2num(preg_replace('/\s*\(.*\)/', '', $prod->tva_tx));

// Set unit price to use
if (!empty($price_ht) || $price_ht === '0') {
Expand Down

0 comments on commit c29a27d

Please sign in to comment.