149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
GROUP BY compta_comptes.id;', ['id' => $old_id]);
$diff = 0;
$journal = new Compta_Journal;
while ($row = $statement->fetchArray(SQLITE3_ASSOC))
{
$solde = ($row['position'] & Compta_Comptes::ACTIF) ? abs($row['solde']) : -abs($row['solde']);
$solde = round($solde, 2);
$diff += $solde;
if (empty($solde))
{
continue;
|
|
|
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
GROUP BY compta_comptes.id;', ['id' => $old_id]);
$diff = 0;
$journal = new Compta_Journal;
while ($row = $statement->fetchArray(SQLITE3_ASSOC))
{
$solde = abs($row['solde']);
$solde = round($solde, 2);
$diff += $solde;
if (empty($solde))
{
continue;
|