Fix: Correction gestion de la 'periode' pour les charges sociales
This commit is contained in:
parent
b26e85a935
commit
7ecb6154d6
@ -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;
|
||||
|
||||
@ -87,7 +87,7 @@ if ($chid > 0)
|
||||
|
||||
print "<tr><td>Type</td><td>$cha->type_libelle</td><td>Paiements</td></tr>";
|
||||
|
||||
print "<tr><td>Période</td><td>NA</td>";
|
||||
print "<tr><td>Période</td><td>".dolibarr_print_date($cha->periode,"%Y")."</td>";
|
||||
print '<td rowspan="5" valign="top">';
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user