FIX : sometimes amounts are identical but php find them different.
This commit is contained in:
parent
7eaa2011ba
commit
77e7932671
@ -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++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user