[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
- [Noalyss-commit] [noalyss] 10/30: Database improve : new function get_affected returns the number of rows affected by the last query, (continued)
- [Noalyss-commit] [noalyss] 10/30: Database improve : new function get_affected returns the number of rows affected by the last query, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 13/30: Administration user : add condition if no folder exists + esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 11/30: Remove table priv_user, the local admin and plugin user are obsolete, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 16/30: Administration user : esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 14/30: Administration user : add condition if no folder exists + esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 15/30: Administration user : esthetic + rewrite add user Correct bug : ajax_admin.js, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 17/30: Administration user : esthetic, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 18/30: HtmlInput : add a new function to create an empty anchor, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 12/30: Administration user : Add / remove right on folder in ajax, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 19/30: HtmlInput :: anchor_empty add a title, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 20/30: Message when no financial ledger are found,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 21/30: Message when no financial ledger are found, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 22/30: Fix bug in authentication for normal user, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 24/30: Add email, change preference and administration for this, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 23/30: Add email, change preference and administration for this, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 26/30: fix bug with email user, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 25/30: Remove obsolete file, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 27/30: Documentation, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 28/30: Esthetique, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 29/30: Remove button (x) + center the text, Dany De Bontridder, 2015/06/02
- [Noalyss-commit] [noalyss] 30/30: Esthetic, Dany De Bontridder, 2015/06/02