Merge pull request #483 from atm-maxime/develop
Warning on proposal home pages
This commit is contained in:
commit
28e95231c0
@ -78,8 +78,6 @@ if ($action == 'del_bookmark' && ! empty($bid))
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$now=dol_now();
|
|
||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
$formfile = new FormFile($db);
|
$formfile = new FormFile($db);
|
||||||
$companystatic=new Societe($db);
|
$companystatic=new Societe($db);
|
||||||
|
|||||||
@ -43,7 +43,7 @@ $result = restrictedArea($user, 'propal');
|
|||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
$now=dol_now();
|
||||||
$propalstatic=new Propal($db);
|
$propalstatic=new Propal($db);
|
||||||
$companystatic=new Societe($db);
|
$companystatic=new Societe($db);
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
@ -288,7 +288,7 @@ if (! empty($conf->propal->enabled) && $user->rights->propale->lire)
|
|||||||
|
|
||||||
$now=dol_now();
|
$now=dol_now();
|
||||||
|
|
||||||
$sql = "SELECT s.nom as socname, s.rowid as socid, s.canvas, s.client, p.rowid as propalid, p.total as total_ttc, p.total_ht, p.ref, p.fk_statut, p.datep as dp";
|
$sql = "SELECT s.nom as socname, s.rowid as socid, s.canvas, s.client, p.rowid as propalid, p.total as total_ttc, p.total_ht, p.ref, p.fk_statut, p.datep as dp, p.fin_validite as dfv";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
|
||||||
$sql.= ", ".MAIN_DB_PREFIX."propal as p";
|
$sql.= ", ".MAIN_DB_PREFIX."propal as p";
|
||||||
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
@ -328,7 +328,7 @@ if (! empty($conf->propal->enabled) && $user->rights->propale->lire)
|
|||||||
print $propalstatic->getNomUrl(1);
|
print $propalstatic->getNomUrl(1);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td width="18" class="nobordernopadding" nowrap="nowrap">';
|
print '<td width="18" class="nobordernopadding" nowrap="nowrap">';
|
||||||
if ($db->jdate($obj->dp) < ($now - $conf->propal->cloture->warning_delay)) print img_warning($langs->trans("Late"));
|
if ($db->jdate($obj->dfv) < ($now - $conf->propal->cloture->warning_delay)) print img_warning($langs->trans("Late"));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td width="16" align="center" class="nobordernopadding">';
|
print '<td width="16" align="center" class="nobordernopadding">';
|
||||||
$filename=dol_sanitizeFileName($obj->ref);
|
$filename=dol_sanitizeFileName($obj->ref);
|
||||||
|
|||||||
@ -1498,7 +1498,7 @@ if ($step == 6 && $datatoimport)
|
|||||||
// Source file format
|
// Source file format
|
||||||
print '<tr><td width="25%">'.$langs->trans("SourceFileFormat").'</td>';
|
print '<tr><td width="25%">'.$langs->trans("SourceFileFormat").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
$text=$objmodelimport->getDriverDesc($format);
|
$text=$objmodelimport->getDriverDescForKey($format);
|
||||||
print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format),$text);
|
print $form->textwithpicto($objmodelimport->getDriverLabelForKey($format),$text);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user