noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 20/30: Message when no financial ledger are f


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 20/30: Message when no financial ledger are found
Date: Tue, 02 Jun 2015 22:29:12 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 214fe90b26a8ef58d91abad2b1c6defc3ba94ca3
Author: Dany De Bontridder <address@hidden>
Date:   Tue Jun 2 08:17:24 2015 +0200

    Message when no financial ledger are found
---
 include/compta_fin.inc.php |   26 ++++++++++++++++----------
 1 files changed, 16 insertions(+), 10 deletions(-)

diff --git a/include/compta_fin.inc.php b/include/compta_fin.inc.php
index dd6e7b6..12d8677 100644
--- a/include/compta_fin.inc.php
+++ b/include/compta_fin.inc.php
@@ -143,16 +143,22 @@ echo HtmlInput::hidden('ac',$_REQUEST['ac']);
 $array=( isset($correct))?$_POST:null;
 
 // show select ledger
-echo $Ledger->input($array);
-echo HtmlInput::button('add_item',_('Ajout article'),   ' 
onClick="ledger_fin_add_row()"');
-echo HtmlInput::submit('save',_('Sauve'));
-echo HtmlInput::reset(_('Effacer'));
-
-if ( ! isset ($_POST['e_date'])&& $g_parameter->MY_DATE_SUGGEST=='Y')
+try 
 {
-       echo create_script(" get_last_date();ajax_saldo('first_sold');");
-}else {
-       echo create_script(" ajax_saldo('first_sold');");
+    echo $Ledger->input($array);
+
+    echo HtmlInput::button('add_item',_('Ajout article'),   ' 
onClick="ledger_fin_add_row()"');
+    echo HtmlInput::submit('save',_('Sauve'));
+    echo HtmlInput::reset(_('Effacer'));
+
+    if ( ! isset ($_POST['e_date'])&& $g_parameter->MY_DATE_SUGGEST=='Y')
+    {
+            echo create_script(" get_last_date();ajax_saldo('first_sold');");
+    }else {
+            echo create_script(" ajax_saldo('first_sold');");
+    }
+    echo create_script(" update_name()");
+} catch (Exception $ex) {
+    echo $ex->getMessage();
 }
-echo create_script(" update_name()");
 return;
\ No newline at end of file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]