BUG rounded value
This commit is contained in:
parent
b25c0f56b2
commit
b6a3e48842
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue