mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Remove usage of pdate()
This commit is contained in:
parent
7b6c2a67da
commit
cf08b35bd0
|
|
@ -308,8 +308,8 @@ if ($result)
|
|||
$cotisationstatic->ref=$objp->crowid;
|
||||
$cotisationstatic->id=$objp->crowid;
|
||||
print '<td>'.$cotisationstatic->getNomUrl(1).'</td>';
|
||||
print '<td align="center">'.dol_print_date($this->db->jdate($objp->dateadh),'day')."</td>\n";
|
||||
print '<td align="center">'.dol_print_date($this->db->jdate($objp->datef),'day')."</td>\n";
|
||||
print '<td align="center">'.dol_print_date($db->jdate($objp->dateadh),'day')."</td>\n";
|
||||
print '<td align="center">'.dol_print_date($db->jdate($objp->datef),'day')."</td>\n";
|
||||
print '<td align="right">'.price($objp->cotisation).'</td>';
|
||||
if ($conf->banque->enabled && $conf->global->ADHERENT_BANK_USE)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ if ($resql)
|
|||
}
|
||||
|
||||
// Date
|
||||
print '<td align="center">'.dol_print_date($this->db->jdate($objp->datem),'day')."</td>\n";
|
||||
print '<td align="center">'.dol_print_date($db->jdate($objp->datem),'day')."</td>\n";
|
||||
|
||||
// Duration
|
||||
if ($conf->service->enabled && $type != 0)
|
||||
|
|
|
|||
|
|
@ -63,22 +63,22 @@ if ( $db->query( $sql) )
|
|||
$bc[0]='bgcolor="#f0f0f0"';
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object( $i);
|
||||
$objp = $db->fetch_object( $i);
|
||||
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
if ($objp->public)
|
||||
{
|
||||
print "<td>".$objp->prenom." ".$objp->nom." ".$objp->societe."</td>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td>Anonyme Anonyme</td>\n";
|
||||
}
|
||||
print "<td>".dol_print_date($this->db->jdate($objp->datedon))."</td>\n";
|
||||
print '<td align="right">'.number_format($objp->amount,2,'.',' ').' '.$langs->trans("Currency".$conf->monnaie).'</td>';
|
||||
print "</tr>";
|
||||
$i++;
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
if ($objp->public)
|
||||
{
|
||||
print "<td>".$objp->prenom." ".$objp->nom." ".$objp->societe."</td>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<td>Anonyme Anonyme</td>\n";
|
||||
}
|
||||
print "<td>".dol_print_date($db->jdate($objp->datedon))."</td>\n";
|
||||
print '<td align="right">'.number_format($objp->amount,2,'.',' ').' '.$langs->trans("Currency".$conf->monnaie).'</td>';
|
||||
print "</tr>";
|
||||
$i++;
|
||||
}
|
||||
print "</table>";
|
||||
|
||||
|
|
|
|||
|
|
@ -149,8 +149,8 @@ foreach ($accounts as $account)
|
|||
{
|
||||
$num = $db->num_rows($resql);
|
||||
$row = $db->fetch_row($resql);
|
||||
$min = $this->db->jdate($row[0]);
|
||||
$max = $this->db->jdate($row[1]);
|
||||
$min = $db->jdate($row[0]);
|
||||
$max = $db->jdate($row[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user