From 42ae441b89bcfcdd9a3fcedbd519f521969cdb5c Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 7 Dec 2011 19:03:53 +0000 Subject: [PATCH] cosmetic rec. --- include/compta_fin_rec.inc.php | 8 +++++++- include/constant.php | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/include/compta_fin_rec.inc.php b/include/compta_fin_rec.inc.php index 8b4e440a1..6ac427f97 100644 --- a/include/compta_fin_rec.inc.php +++ b/include/compta_fin_rec.inc.php @@ -27,6 +27,7 @@ * \brief reconcile operation * */ +global $g_failed,$g_succeed; require_once 'class_acc_ledger_fin.php'; bcscale(2); echo '
'; @@ -66,9 +67,14 @@ if (isset($_POST['save'])) $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"); echo '
'; - echo '

'._("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").'

'; + 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").'

'; echo '
'; } + else + { + echo '
'.$g_succeed.' Mise à jour extrait '.$_POST['ext'].'
'; + } + $cn->commit(); } } diff --git a/include/constant.php b/include/constant.php index 04c87b963..f66a11454 100644 --- a/include/constant.php +++ b/include/constant.php @@ -29,9 +29,10 @@ require_once('constant.security.php'); global $version_phpcompta; -global $g_captcha; +global $g_captcha,$g_failed,$g_succeed; $g_captcha=false; - +$g_failed=""; +$g_succeed=""; /*set to none for production */ /* uncomment for production */