'.$p_msg.'
'; echo "diff --git a/include/compta_ach.inc.php b/include/compta_ach.inc.php index fd2b9a6b4..2bc3b33a8 100644 --- a/include/compta_ach.inc.php +++ b/include/compta_ach.inc.php @@ -43,7 +43,7 @@ if (isset($_REQUEST['p_jrn'])) NoAccess(); exit - 1; } - +$p_msg=""; /* if a new invoice is encoded, we display a form for confirmation */ if (isset($_POST['view_invoice'])) { @@ -55,6 +55,7 @@ if (isset($_POST['view_invoice'])) catch (Exception $e) { alert($e->getMessage()); + $p_msg=$e->getMessage(); $correct = 1; } // if correct is not set it means it is correct @@ -97,6 +98,7 @@ if (isset($_POST['record'])) catch (Exception $e) { alert($e->getMessage()); + $p_msg=$e->getMessage(); $correct = 1; } // record the invoice @@ -186,6 +188,7 @@ echo ''; echo ''; echo '
'.$p_msg.'
'; echo "