From 67078e37ffdc6dc44a907263ddc62fc56b999bfc Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 7 Sep 2003 17:24:02 +0000 Subject: [PATCH] When date change the tech periode must also change --- html/enc_jrn.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/html/enc_jrn.php b/html/enc_jrn.php index fa7596bc1..af7259fb1 100644 --- a/html/enc_jrn.php +++ b/html/enc_jrn.php @@ -426,13 +426,15 @@ if ( isset($_POST['update_record']) ) { $comment=FormatString($_POST["comment"]); $Sql=sprintf("update jrn set jr_comment='%s',jr_date=%s,jr_rapt='%s',". - "jr_montant=%f where + "jr_montant=%f j_tech_per=%d where jr_id=%d", $comment, $l_date, $p_rapt, $p_sum_deb, - $p_jr_id); + $userPref, + $p_jr_id + ); $Res=ExecSql($cn,$Sql); $current_internal=GetInternal($cn,$p_jr_id); @@ -445,9 +447,9 @@ if ( isset($_POST['update_record']) ) { } else { $comment=FormatString($_POST["comment"]); $Sql=sprintf("update jrn set jr_comment='%s', - jr_date=%s,jr_rapt=null,jr_montant=%f where jr_id=%d", + jr_date=%s,jr_rapt=null,jr_montant=%f,jr_tech_per=%d where jr_id=%d", $comment, - $l_date,$p_sum_deb, + $l_date,$p_sum_deb,$userPref, $p_jr_id); $Res=ExecSql($cn,$Sql);