FIX : sometimes amounts are identical but php find them different.

This commit is contained in:
gauthier 2018-06-05 11:33:58 +02:00
parent 7eaa2011ba
commit 77e7932671

View File

@ -406,7 +406,7 @@ if (empty($reshook))
//var_dump($object->getRemainToPay(0));
//var_dump($discount->amount_ttc);exit;
if ($discount->amount_ttc > $object->getRemainToPay(0))
if (price2num($discount->amount_ttc) > price2num($object->getRemainToPay(0)))
{
// TODO Split the discount in 2 automatically
$error++;