[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/13: Ajout test paramètres passés
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/13: Ajout test paramètres passés |
Date: |
Sun, 09 Nov 2014 17:25:14 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2f7d2e9bd00d0c75b86dd9678e5bd4c421611315
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 9 18:10:22 2014 +0100
Ajout test paramètres passés
---
include/class_acc_ledger_purchase.php | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/include/class_acc_ledger_purchase.php
b/include/class_acc_ledger_purchase.php
index f14b44c..1aabec5 100644
--- a/include/class_acc_ledger_purchase.php
+++ b/include/class_acc_ledger_purchase.php
@@ -61,6 +61,14 @@ class Acc_Ledger_Purchase extends Acc_Ledger
public function verify($p_array)
{
global $g_parameter,$g_user;
+
+ if (is_array($p_array ) == false || empty($p_array))
+ throw new Exception ("Array empty");
+ /*
+ * Check needed value
+ */
+ check_parameter($p_array,'p_jrn,e_date,e_client');
+
extract ($p_array);
/* check if we can write into this ledger */
if ( $g_user->check_jrn($p_jrn) != 'W' )
@@ -1653,9 +1661,12 @@ class Acc_Ledger_Purchase extends Acc_Ledger
}
- /*!\brief update the payment
+ /**
+ * @brief update the payment
+ * @todo to remove, obsolete
+ * @deprecated
*/
- function show_unpaid()
+ function show_unpaid_deprecated()
{
// Show list of unpaid sell
// Date - date of payment - Customer - amount
@@ -1666,9 +1677,9 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$sql=SQL_LIST_UNPAID_INVOICE_DATE_LIMIT." and jr_def_id=".$this->id ;
- list($max_line,$list)=ListJrn($this->db,$sql,null,$offset,1);
+ list($max_line,$list)=$this->list_operation($sql,null,$offset,1);
$sql=SQL_LIST_UNPAID_INVOICE." and jr_def_id=".$this->id ;
- list($max_line2,$list2)=ListJrn($this->db,$sql,null,$offset,1);
+ list($max_line2,$list2)=$this->list_operation($sql,null,$offset,1);
// Get the max line
$m=($max_line2>$max_line)?$max_line2:$max_line;
- [Noalyss-commit] [noalyss] 01/13: Task #145 - Amélioration stock Solde banque : agrandissement table, (continued)
- [Noalyss-commit] [noalyss] 01/13: Task #145 - Amélioration stock Solde banque : agrandissement table, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 02/13: Task #1045 - Amélioration apparence : MENU : Menu verticaux différent, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 03/13: Task #1045 - Amélioration apparence : Ne montre pas échéance pour journaux financiers, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 04/13: Task #1045 - Amélioration apparence : Solde banque : agrandissement table, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 05/13: Ajout test paramètres passés, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 07/13: Task #1045 - Amélioration apparence : Icone enlever tag, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 06/13: devient une classe abstraite, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 08/13: Enleve global $cn, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 09/13: ajout à HTMLINPUT::anchor d'un style ou classe, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 12/13: Task #1045 - Amélioration apparence : Ajout symbole pour enlever tag, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 10/13: Ajout test paramètres passés,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 11/13: Task #1045 - Amélioration apparence : correction position fenêtre tag, Dany De Bontridder, 2014/11/09
- [Noalyss-commit] [noalyss] 13/13: Passage par reference de la connexion, Dany De Bontridder, 2014/11/09