Fix: The warning for not reconciliated records was not visible

This commit is contained in:
Laurent Destailleur 2010-12-28 22:40:10 +00:00
parent edbfb49fc4
commit 0d8933dd08
2 changed files with 11 additions and 3 deletions

View File

@ -507,9 +507,10 @@ if ($account || $_GET["ref"])
print "<tr $bc[$var]>";
print "<td nowrap>".dol_print_date($db->jdate($objp->do),"day")."</td>\n";
print '<td nowrap="nowrap">'.dol_print_date($db->jdate($objp->do),"day")."</td>\n";
print "<td nowrap>".dol_print_date($db->jdate($objp->dv),"day")."</td>\n";
print '<td nowrap="nowrap">'.dol_print_date($db->jdate($objp->dv),"day");
print "</td>\n";
// Payment type
print "<td nowrap>";
@ -672,6 +673,13 @@ if ($account || $_GET["ref"])
print img_view();
print '</a>';
}
if ($acct->rappro && empty($objp->rappro))
{
if ($db->jdate($objp->dv) < ($now - $conf->bank->rappro->warning_delay))
{
print ' '.img_warning($langs->trans("Late"));
}
}
print '&nbsp;';
if ($user->rights->banque->modifier)
{

View File

@ -804,7 +804,7 @@ class Account extends CommonObject
if ($user->societe_id) return -1; // protection pour eviter appel par utilisateur externe
$now=gmmktime();
$now=dol_now();
$this->nbtodo=$this->nbtodolate=0;