Merge pull request #8917 from atm-gauthier/6.0_fix_apply_reduc
FIX : sometimes amounts are identical but php find them different.
This commit is contained in:
commit
b5cd722eb1
@ -406,7 +406,7 @@ if (empty($reshook))
|
|||||||
|
|
||||||
//var_dump($object->getRemainToPay(0));
|
//var_dump($object->getRemainToPay(0));
|
||||||
//var_dump($discount->amount_ttc);exit;
|
//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
|
// TODO Split the discount in 2 automatically
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user