Bug#2271: Banque : totaux non vérifié,arrondi

This commit is contained in:
sparkyx 2023-05-01 16:06:04 +02:00
parent 9f10730f59
commit 59b18a0398

View file

@ -217,9 +217,9 @@ class Acc_Ledger_Fin extends Acc_Ledger
if (noalyss_strlentrim($last_sold)!=0&&isNumber($last_sold)&&noalyss_strlentrim($first_sold)!=0&&isNumber($first_sold)
)
{
$diff=bcsub($last_sold,$first_sold);
$diff=round($diff, 2)-round($tot_amount, 2);
$calc=bcadd($first_sold, $tot_amount, 4);
$diff=bcsub($last_sold,$first_sold,2);
$diff=bcsub($diff,$tot_amount,2);
$calc=bcadd($first_sold, $tot_amount, 2);
if ($first_sold!=0||$last_sold!=0)
{
if ($diff!=0)