From df34227212cf3d4e65b2b61462f92e01dce54135 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 23 May 2011 18:06:18 +0000 Subject: [PATCH] 0000269: Pas de synchronisation entre date ANC et ACC --- html/ajax_ledger.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php index 9a917d083..e86ff00b0 100644 --- a/html/ajax_ledger.php +++ b/html/ajax_ledger.php @@ -365,6 +365,13 @@ case 'save': array($_POST['lib'],$_POST['npj'],$jr_id,$_POST['p_date'])); $cn->exec_sql("update jrnx set j_date=to_date($1,'DD.MM.YYYY') where j_grpt in (select jr_grpt_id from jrn where jr_id=$2)", array($_POST['p_date'],$jr_id)); + $cn->exec_sql('update operation_analytique set oa_date=j_date from jrnx + where + operation_analytique.j_id=jrnx.j_id and + operation_analytique.j_id in (select j_id + from jrnx join jrn on (j_grpt=jr_grpt_id) + where jr_id=$1) + ',array($jr_id)); $cn->exec_sql("select comptaproc.jrn_add_note($1,$2)", array($jr_id,$_POST['jrn_note'])); $rapt=$_POST['rapt'];