noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 26/38: Task #2321: erreur de numérotation


From: dwm
Subject: [Noalyss-commit] [noalyss] 26/38: Task #2321: erreur de numérotation
Date: Sun, 18 Feb 2024 07:30:46 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 8ad238c09a7f353bb3d8053350811863f202e9f6
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Feb 14 18:22:52 2024 +0100

    Task #2321: erreur de numérotation
---
 include/class/acc_ledger.class.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class/acc_ledger.class.php 
b/include/class/acc_ledger.class.php
index 1ee0c9ab0..77bc1c500 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -1532,14 +1532,14 @@ class Acc_Ledger  extends jrn_def_sql
             if ($jr_id==false)
                 throw new Exception(_('Balance incorrecte'));
             $acc_end->pj=$e_pj;
-
+            $this->pj=$acc_end->set_pj();
             /* if e_suggest != e_pj then do not increment sequence */
-            if (strcmp($e_pj, $e_pj_suggest)==0&&noalyss_strlentrim($e_pj)!=0)
+            if ($this->pj == $e_pj_suggest &&noalyss_strlentrim($e_pj)!=0)
             {
                 $this->inc_seq_pj();
             }
 
-            $this->pj=$acc_end->set_pj();
+
 
             $this->db->exec_sql("update jrn set jr_internal=$1 
                         where jr_grpt_id = $2",array($internal,$seq));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]