diff --git a/include/compta_fin_rec.inc.php b/include/compta_fin_rec.inc.php index 1e85c33dd..3c0278c04 100644 --- a/include/compta_fin_rec.inc.php +++ b/include/compta_fin_rec.inc.php @@ -202,7 +202,7 @@ if (isset($_POST['save'])) $cn->start(); for ($i = 0; $i < count($array); $i++) { - $cn->exec_sql('update jrn set jr_pj_number=$1 where jr_id=$2', array($_POST['ext'], $array[$i])); + $cn->exec_sql('update jrn set jr_pj_number=$1 where jr_id=$2', array($receipt_nb, $array[$i])); $tot = bcadd($tot, $cn->get_value('select qf_amount from quant_fin where jr_id=$1', array($array[$i]))); } $diff = bcsub($end_extrait, $start_extrait); @@ -210,22 +210,30 @@ if (isset($_POST['save'])) { $remain=bcsub($tot,$diff); $cn->rollback(); - alert("D'après l'extrait il y aurait du avoir un montant de $diff à rapprocher alors qu'il y a $tot rapprochés, mise à jour annulée, la différence est de $remain"); + $str_message=_("D'après l'extrait il y aurait du avoir un montant de $diff à rapprocher alors qu'il y a $tot rapprochés, mise à jour annulée, la différence est de $remain"); + alert($str_message); echo '
'.$g_failed._("D'après l'extrait il y aurait du avoir un montant de $diff à rapprocher alors qu'il y a $tot rapprochés, la différence est de $remain
mise à jour annulée").'
'.$g_failed.$str_message.'
'; /* if file : warning that file is not uploaded*/ echo ''. - _('Attention : Fichier non chargé'). + _('Attention : Fichier non chargé et rapprochement annulé'). '
'; echo '';