Test: removal of the tab "accountancy card"

This commit is contained in:
Regis Houssin 2010-09-10 16:51:33 +00:00
parent 8a8a7d3c42
commit 837ca4f9d9
3 changed files with 4 additions and 4 deletions

View File

@ -1506,7 +1506,7 @@ if ($id > 0 || ! empty($ref))
}
// Delete
if ($propal->statut < 4 && $user->rights->propale->supprimer)
if ($user->rights->propale->supprimer)
{
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$propal->id.'&amp;action=delete"';
print '>'.$langs->trans('Delete').'</a>';

View File

@ -41,7 +41,7 @@ for ($i = 0 ; $i < $num ; $i++)
$var=!$var;
?>
<tr <?php echo $bc[$var]; ?> ><td>
<a href="<?php echo DOL_URL_ROOT.'/compta/propal.php?id='.$linkedObjectBlock->id ?>"><?php echo img_object($langs->trans("ShowPropal"),"propal").' '.$linkedObjectBlock->ref; ?></a></td>
<a href="<?php echo DOL_URL_ROOT.'/comm/propal.php?id='.$linkedObjectBlock->id ?>"><?php echo img_object($langs->trans("ShowPropal"),"propal").' '.$linkedObjectBlock->ref; ?></a></td>
<td><?php echo $linkedObjectBlock->ref_client; ?></td>
<td align="center"><?php echo dol_print_date($linkedObjectBlock->date,'day'); ?></td>
<td align="right"><?php echo price($linkedObjectBlock->total_ht); ?></td>

View File

@ -53,12 +53,12 @@ function propal_prepare_head($propal)
$head[$h][2] = 'shipping';
$h++;
}
/*
$head[$h][0] = DOL_URL_ROOT.'/compta/propal.php?id='.$propal->id;
$head[$h][1] = $langs->trans('AccountancyCard');
$head[$h][2] = 'compta';
$h++;
*/
if ($conf->use_preview_tabs)
{
$head[$h][0] = DOL_URL_ROOT.'/comm/propal/apercu.php?id='.$propal->id;