Bug#2271: Banque : totaux non vérifié,arrondi
This commit is contained in:
parent
9f10730f59
commit
59b18a0398
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue