Fix applying of credit note on invoice
This commit is contained in:
parent
dddf322264
commit
a8f447498b
@ -425,7 +425,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