Fix : bug when of rounding number TOTAL_VEN_TVAC when generating an invoice

This commit is contained in:
sparkyx 2022-10-29 10:46:17 +02:00
parent a21431c8c3
commit e5e726b310

View file

@ -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);
}