Fix: Remove an edit button that is not implemented.
This commit is contained in:
parent
8ec50fce23
commit
d28eacebd7
@ -47,17 +47,14 @@ $parameters=array('id'=>$socid);
|
|||||||
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
$error=$hookmanager->error; $errors=array_merge($errors, (array) $hookmanager->errors);
|
$error=$hookmanager->error; $errors=array_merge($errors, (array) $hookmanager->errors);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$contactstatic = new Contact($db);
|
$contactstatic = new Contact($db);
|
||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
/*
|
|
||||||
* Fiche categorie de client et/ou fournisseur
|
|
||||||
*/
|
|
||||||
if ($socid)
|
if ($socid)
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
@ -163,13 +160,15 @@ if ($socid)
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '</div>';
|
dol_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
// TODO: Improve and move to tpl
|
print '<form action="'.$_SERVER["PHP_SELF"].'?socid='.$soc->id.'" method="post">';
|
||||||
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<input type="hidden" name="action" value="updatetva">';
|
||||||
|
print '<input type="hidden" name="vatid" value="'.$vatid.'">';
|
||||||
|
|
||||||
// Localtaxes
|
// Localtaxes
|
||||||
|
|
||||||
@ -220,11 +219,6 @@ if ($socid)
|
|||||||
|
|
||||||
if ($action == 'edit' && $obj->rowid==$vatid && $user->rights->societe->creer)
|
if ($action == 'edit' && $obj->rowid==$vatid && $user->rights->societe->creer)
|
||||||
{
|
{
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?socid='.$soc->id.'" method="post">';
|
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
|
||||||
print '<input type="hidden" name="action" value="updatetva">';
|
|
||||||
print '<input type="hidden" name="vatid" value="'.$vatid.'">';
|
|
||||||
|
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
|
|
||||||
print '<td>'.$obj->note.'</td>';
|
print '<td>'.$obj->note.'</td>';
|
||||||
@ -238,7 +232,6 @@ if ($socid)
|
|||||||
print '<td align="right"><input type="submit" class="button" name="save" value="'.$langs->trans('Save').'">';
|
print '<td align="right"><input type="submit" class="button" name="save" value="'.$langs->trans('Save').'">';
|
||||||
print '<br><input type="submit" class="button" name="cancel" value="'.$langs->trans('Cancel').'"></td>';
|
print '<br><input type="submit" class="button" name="cancel" value="'.$langs->trans('Cancel').'"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '</form>';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -250,15 +243,22 @@ if ($socid)
|
|||||||
print '<td align="right">'.$obj->localtax1.'</td>';
|
print '<td align="right">'.$obj->localtax1.'</td>';
|
||||||
if ($mysoc->localtax2_assuj=="1" && $soc->localtax2_assuj)
|
if ($mysoc->localtax2_assuj=="1" && $soc->localtax2_assuj)
|
||||||
print '<td align="right">'.$obj->localtax2.'</td>';
|
print '<td align="right">'.$obj->localtax2.'</td>';
|
||||||
|
print '<td align="right">';
|
||||||
if ($user->rights->societe->creer)
|
if ($user->rights->societe->creer)
|
||||||
print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit&socid='.$soc->id.'&vatid='.$obj->rowid.'">'.img_edit().'</a></td>';
|
{
|
||||||
|
// TODO Comment this because the action to save is not supported
|
||||||
|
//print '<a href="'.$_SERVER["PHP_SELF"].'?action=edit&socid='.$soc->id.'&vatid='.$obj->rowid.'">'.img_edit().'</a>';
|
||||||
|
}
|
||||||
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
|
|
||||||
}
|
print '</form>';
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user