From e5be7dbcdaa5daeeaa6fbc600931c00d8207e77e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jul 2009 13:50:36 +0000 Subject: [PATCH] Doc --- htdocs/compta/bank/bilan.php | 15 ++++++----- htdocs/compta/bank/bplc.php | 49 +++++++++++++++++++++-------------- htdocs/compta/bank/budget.php | 12 ++++----- 3 files changed, 45 insertions(+), 31 deletions(-) diff --git a/htdocs/compta/bank/bilan.php b/htdocs/compta/bank/bilan.php index 92ae40b8d06..54eda825a59 100644 --- a/htdocs/compta/bank/bilan.php +++ b/htdocs/compta/bank/bilan.php @@ -15,10 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ - * $Source$ - * + */ + +/** + * \file htdocs/compta/bank/bilan.php + * \ingroup banque + * \brief Page de bilan + * \version $Id$ */ require("./pre.inc.php"); @@ -48,13 +51,13 @@ print '
'; print ''; print ""; -echo ''; +echo ''; print "\n"; $var=!$var; $sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."paiement"; $paiem = valeur($sql); -print ""; +print ""; $var=!$var; $sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."bank WHERE amount > 0"; diff --git a/htdocs/compta/bank/bplc.php b/htdocs/compta/bank/bplc.php index f3fa472622f..cb48238ac51 100644 --- a/htdocs/compta/bank/bplc.php +++ b/htdocs/compta/bank/bplc.php @@ -15,14 +15,25 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ + */ + +/** + * \file htdocs/compta/bank/bplc.php + * \ingroup banque + * \brief Page of BPLC transactions + * \version $Id$ */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php"); -if (!$user->rights->banque->lire) accessforbidden(); +// Security check +restrictedArea($user,'banque'); + + +/* + * View + */ llxHeader(); @@ -36,20 +47,20 @@ print_barre_liste("Transactions BPLC", $page, "bplc.php"); print "
RésuméR�sum�
Somme des paiements (associés à une facture)".price($paiem)."
Somme des paiements (associes a une facture)".price($paiem)."
"; print ""; -print ""; +print ""; print ""; print ""; -print ""; +print ""; print ""; print "\n"; -$sql = "SELECT ipclient, - num_transaction, - date_transaction, - heure_transaction, - num_autorisation, - cle_acceptation, - code_retour, +$sql = "SELECT ipclient, + num_transaction, + date_transaction, + heure_transaction, + num_autorisation, + cle_acceptation, + code_retour, ref_commande"; $sql .= " FROM ".MAIN_DB_PREFIX."transaction_bplc"; @@ -57,33 +68,33 @@ $sql .= " FROM ".MAIN_DB_PREFIX."transaction_bplc"; $resql = $db->query($sql); if ($resql) { - $var=True; + $var=True; $num = $db->num_rows($resql); $i = 0; $total = 0; - + $sep = 0; while ($i < $num) { $objp = $db->fetch_object($resql); - + print ""; - + $type = substr($objp->ref_commande, strlen($objp->ref_commande) - 2 ); $id = substr($objp->ref_commande, 0 , strlen($objp->ref_commande) - 2 ); - + if ($type == 10) { print ''; } - + print ""; print ""; print ""; print ""; print ""; print ""; - print ""; + print ""; $i++; } $db->free($resql); diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php index 3703568c63c..7cb9adf5a0c 100644 --- a/htdocs/compta/bank/budget.php +++ b/htdocs/compta/bank/budget.php @@ -19,11 +19,11 @@ */ /** - \file htdocs/compta/bank/budget.php - \ingroup banque - \brief Page de budget - \version $Id$ -*/ + * \file htdocs/compta/bank/budget.php + * \ingroup banque + * \brief Page de budget + * \version $Id$ + */ require("./pre.inc.php"); @@ -40,7 +40,7 @@ $result=restrictedArea($user,'banque'); */ $companystatic=new Societe($db); - + llxHeader();
Réf. commandeR�f. commandeip clientNum. transactionDateHeureNum autorisationclé acceptationcl� acceptationcode retour
'.$objp->ref_commande.'$objp->ipclient$objp->num_transaction$objp->date_transaction$objp->heure_transaction$objp->num_autorisation$objp->cle_acceptation$objp->code_retour$objp->code_retour