diff --git a/htdocs/chargesociales.class.php b/htdocs/chargesociales.class.php index 492b3923001..feeaa257616 100644 --- a/htdocs/chargesociales.class.php +++ b/htdocs/chargesociales.class.php @@ -137,7 +137,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 .=", cs.libelle as lib, cs.fk_type, cs.amount, cs.paye, cs.periode, c.libelle"; + $sql .=", cs.libelle as lib, cs.fk_type, cs.amount, cs.paye, ".$this->db->pdate("cs.periode")." as periode, c.libelle"; $sql .= " FROM ".MAIN_DB_PREFIX."chargesociales as cs, ".MAIN_DB_PREFIX."c_chargesociales as c"; $sql .= " WHERE cs.fk_type = c.id"; $sql .=" AND cs.rowid = ".$id; diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index a318d3d6dd9..90f1f9136f1 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -87,7 +87,7 @@ if ($chid > 0) print "