';
print '";
print "\n";
@@ -339,20 +349,15 @@ if ($_GET["action"] == 'create')
/**
* \brief Affichage de la liste des paiement
*/
-if (! $_GET["action"])
+if (! $_GET["action"] && ! $_POST["action"])
{
- if ($page == -1)
- $page = 0 ;
-
+ if ($page == -1) $page = 0 ;
$limit = $conf->liste_limit;
$offset = $limit * $page ;
- if ($sortorder == "")
- $sortorder="DESC";
-
- if ($sortfield == "")
- $sortfield="p.datep";
+ if (! $sortorder) $sortorder="DESC";
+ if (! $sortfield) $sortfield="p.datep";
$sql = "SELECT ".$db->pdate("p.datep")." as dp, p.amount, f.amount as fa_amount, f.facnumber";
$sql .=", f.rowid as facid, c.libelle as paiement_type, p.num_paiement";
@@ -374,7 +379,7 @@ if (! $_GET["action"])
$i = 0;
$var=True;
- print_barre_liste("Paiements", $page, "paiement.php","",$sortfield,$sortorder,'',$num);
+ print_barre_liste($langs->trans("Payments"), $page, "paiement.php","",$sortfield,$sortorder,'',$num);
print '';
print '';
diff --git a/htdocs/compta/paiement/fiche.php b/htdocs/compta/paiement/fiche.php
index 00d651bda37..e8c9da58a78 100644
--- a/htdocs/compta/paiement/fiche.php
+++ b/htdocs/compta/paiement/fiche.php
@@ -21,7 +21,8 @@
*
*/
-/** \file htdocs/compta/paiement/fiche.php
+/**
+ \file htdocs/compta/paiement/fiche.php
\ingroup facture
\brief Onglet paiement d'un paiement
\version $Revision$
@@ -156,10 +157,10 @@ if ($db->query($sql))
$var=!$var;
print " ";
- print '| '.img_object($langs->trans("ShowBill"),"bill").'';
- print ' ' . $objp->facnumber;
+ print ' | '.img_object($langs->trans("ShowBill"),"bill").' ';
+ print $objp->facnumber;
print " | \n";
- print '' . $objp->nom.' | ';
+ print ''.img_object($langs->trans("ShowCompany"),"company").' '.$objp->nom.' | ';
print ''.price($objp->amount).' | ';
$fac=new Facture($db);
print ''.$fac->LibStatut($objp->paye,$objp->fk_statut).' | ';
diff --git a/htdocs/compta/paiement/info.php b/htdocs/compta/paiement/info.php
index 021a259713c..38e76b8e6a9 100644
--- a/htdocs/compta/paiement/info.php
+++ b/htdocs/compta/paiement/info.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2004 Laurent Destailleur
+/* Copyright (C) 2004 Rodolphe Quiedeville
+ * Copyright (C) 2004-2005 Laurent Destailleur
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,7 +21,8 @@
*
*/
-/*! \file htdocs/compta/paiement/info.php
+/**
+ \file htdocs/compta/paiement/info.php
\ingroup facture
\brief Onglet info d'un paiement
\version $Revision$
@@ -51,10 +52,12 @@ $paiement->fetch($_GET["id"], $user);
$paiement->info($_GET["id"]);
print '';
+print ' ';
dolibarr_print_object_info($paiement);
+print ' ';
print ' | ';
$db->close();
-llxFooter("Dernière modification $Date$ révision $Revision$");
+llxFooter('$Date$ - $Revision$');
?>
|