BUG rounded value

This commit is contained in:
Dany De Bontridder 2008-11-07 17:01:58 +00:00
parent b25c0f56b2
commit b6a3e48842
2 changed files with 4 additions and 2 deletions

View file

@ -56,7 +56,7 @@ $tva_rate->load();
$total=new Acc_Compute();
bcscale(4);
$amount=bcmul($p,$q);
$amount=round(bcmul($p,$q),2);
$total->set_parameter('amount',$amount);
$total->set_parameter('amount_vat_rate',$tva_rate->get_parameter('rate'));
$total->compute_vat();