diff --git a/htdocs/chargesociales.class.php b/htdocs/chargesociales.class.php
index c265a03070d..c05689ecf53 100644
--- a/htdocs/chargesociales.class.php
+++ b/htdocs/chargesociales.class.php
@@ -38,7 +38,6 @@ class ChargeSociales
var $id;
var $date_ech;
- var $date_pai;
var $lib;
var $type;
var $type_libelle;
@@ -60,7 +59,7 @@ class ChargeSociales
*/
function fetch($id)
{
- $sql = "SELECT cs.rowid,".$this->db->pdate("cs.date_ech")." as date_ech,".$this->db->pdate("cs.date_pai")." as date_pai,";
+ $sql = "SELECT cs.rowid,".$this->db->pdate("cs.date_ech")." as date_ech,";
$sql.= " cs.libelle as lib, cs.fk_type, cs.amount, cs.paye, ".$this->db->pdate("cs.periode")." as periode,";
$sql.= " c.libelle";
$sql.= " FROM ".MAIN_DB_PREFIX."chargesociales as cs, ".MAIN_DB_PREFIX."c_chargesociales as c";
@@ -77,7 +76,6 @@ class ChargeSociales
$this->id = $obj->rowid;
$this->date_ech = $obj->date_ech;
- $this->date_pai = $obj->date_pai;
$this->lib = $obj->lib;
$this->type = $obj->fk_type;
$this->type_libelle = $obj->libelle;
@@ -241,6 +239,26 @@ class ChargeSociales
return "Error, mode/status not found";
}
+
+
+ /**
+ * \brief Renvoie nom clicable (avec eventuellement le picto)
+ * \param withpicto Inclut le picto dans le lien
+ * \return string Chaine avec URL
+ */
+ function getNomUrl($withpicto=0)
+ {
+ global $langs;
+
+ $result='';
+
+ $lien = '';
+ $lienfin='';
+
+ if ($withpicto) $result.=($lien.img_object($langs->trans("ShowBill"),'bill').$lienfin.' ');
+ $result.=$lien.$this->lib.$lienfin;
+ return $result;
+ }
}
diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 316f5bee1c1..de6b552d31c 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -1,7 +1,7 @@
* Copyright (C) 2003 Jean-Louis Bergamo
- * Copyright (C) 2004-2005 Laurent Destailleur
+ * Copyright (C) 2004-2007 Laurent Destailleur
* Copytight (C) 2004 Christophe Combelles
*
* This program is free software; you can redistribute it and/or modify
@@ -442,7 +442,19 @@ function _print_lines($db,$result,$sql,$acct)
print $links[$key]['label'];
print '';
}
- else {
+ else if ($links[$key]['type']=='sc') {
+ print '';
+ //print img_object($langs->trans('ShowBill'),'bill').' ';
+ print $langs->trans("SocialContribution");
+ print '';
+ }
+ else if ($links[$key]['type']=='payment_sc') {
+ print '';
+ //print img_object($langs->trans('ShowPayment'),'payment').' ';
+ print $langs->trans("SocialContributionPayment");
+ print '';
+ }
+ else {
print '';
print $links[$key]['label'];
print '';
diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php
index 7eff952c81d..8288483432c 100644
--- a/htdocs/compta/bank/ligne.php
+++ b/htdocs/compta/bank/ligne.php
@@ -1,7 +1,7 @@
* Copyright (C) 2003 Xavier DUTOIT
- * Copyright (C) 2004-2006 Laurent Destailleur
+ * Copyright (C) 2004-2007 Laurent Destailleur
* Copyright (C) 2004 Christophe Combelles
*
* This program is free software; you can redistribute it and/or modify
@@ -257,36 +257,10 @@ if ($result)
// Account
print "
".$langs->trans("Account")."
";
- /*
- if (! $objp->rappro)
- {
- if ($user->rights->banque->modifier && $acct->type != 2 && $acct->rappro) // Si non compte cash et si rapprochable
- {
- print '