Fix : bug when of rounding number TOTAL_VEN_TVAC when generating an invoice
This commit is contained in:
parent
a21431c8c3
commit
e5e726b310
1 changed files with 2 additions and 0 deletions
|
|
@ -1282,6 +1282,8 @@ class Document
|
|||
$sell=$p_array['e_march'.$i.'_price'];
|
||||
$qt=$p_array['e_quant'.$i];
|
||||
$tot=bcmul($sell, $qt);
|
||||
$tva_amount=round($tva_amount,2);
|
||||
$tot=round($tot,2);
|
||||
$tot=bcadd($tot, $tva_amount);
|
||||
$sum=bcadd($sum, $tot);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue