[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 26/27: Task #1024 : add a message Task #1024
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 26/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation |
Date: |
Thu, 02 Oct 2014 14:23:19 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 23472ad19644c332070c2f66824c407e19c59e06
Author: Dany De Bontridder <address@hidden>
Date: Sun Sep 21 20:02:21 2014 +0200
Task #1024 : add a message
Task #1024 - Comptabiltié analytique : table activité lors confirmation
---
include/class_anc_key.php | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/include/class_anc_key.php b/include/class_anc_key.php
index 7e70baa..a271238 100644
--- a/include/class_anc_key.php
+++ b/include/class_anc_key.php
@@ -31,7 +31,24 @@ class Anc_Key
{
private $key; /* ! the distribution key */
-
+ /**
+ * Return the number of keys available.
+ * Return the number of keys available for the ledger given in parameter
+ *
+ * @global $cn database connection
+ * @param $p_jrn number of the ledger (jrn_def.jrn_def_id
+ * @return number
+ */
+ static function key_avaiable($p_jrn)
+ {
+ global $cn;
+ $count=$cn->get_value (' select count(*)
+ from key_distribution_ledger
+ join key_distribution using (kd_id)
+ where
+ jrn_def_id=$1', array($p_jrn));
+ return $count;
+ }
function __construct($p_id=-1)
{
global $cn;
@@ -64,6 +81,7 @@ class Anc_Key
if (empty($a_key))
{
echo _('Aucune clef disponible');
+ echo _('Allez dans ANCKEY pour en ajouter pour ce journal');
}
include 'template/anc_key_display_choice.php';
}
- [Noalyss-commit] [noalyss] 17/27: remove debug info, (continued)
- [Noalyss-commit] [noalyss] 17/27: remove debug info, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 03/27: Database::make_array ajoute un paramètre dans le cas où le SQL admet une condition, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 16/27: Add p_jrn is the bottom of the popup, to allow the use of distribution key, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 21/27: Ajout fonction pour calculer pourcentage répartition clef, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 20/27: Cosmetique : alignement colonne pourcent, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 14/27: remove debug info, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 13/27: Add documentation add_row_key, remove secund parameter, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 01/27: Ajout des clef de répartition pour la comptabilité analytique, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 24/27: Task #0001030: PRINTBAL : mettre le numéro de compte en première colonne Task #1030 - PRINTBAL : mettre le numéro de compte en première colonne, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 27/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 26/27: Task #1024 : add a message Task #1024 - Comptabiltié analytique : table activité lors confirmation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 15/27: add script for table Distribution keys, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 19/27: fix several bugs : when adding new keys or new rows in a key Task #1021 - Comptabilité analytique : clef de répartition : bouton ajout, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 25/27: Task #1029: PRINTBAL : année précédente dans une autre couleur Task #1029 - PRINTBAL : année précédente dans une autre couleur, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 18/27: Allow to display table without button, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 22/27: Ajout fonction pour calculer pourcentage répartition clef, Dany De Bontridder, 2014/10/02
- [Noalyss-commit] [noalyss] 23/27: New Version of prototype.js, Dany De Bontridder, 2014/10/02