From 4bbc7c3bd0a2eaa0c6fc171fb917c6ab17448e44 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 23 Jul 2010 23:03:13 +0000 Subject: [PATCH] set the jr_id after saving an operation --- include/class_acc_ledger.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/class_acc_ledger.php b/include/class_acc_ledger.php index f077d0da7..959f415c1 100644 --- a/include/class_acc_ledger.php +++ b/include/class_acc_ledger.php @@ -1732,6 +1732,7 @@ jr_comment||' ('||jr_internal||')'||case when jr_pj_number is not null and jr_pj $acc_end->jrn=$this->id; $acc_end->mt=$mt; $jr_id= $acc_end->insert_jrn(); + $this->jr_id=$jr_id; if ($jr_id == false ) throw new Exception('Balance incorrecte'); $acc_end->pj=$e_pj;