Restore ability to use supplier on interventions as some users (like me) need it.
This commit is contained in:
parent
473693bbbd
commit
557e4268e2
@ -492,7 +492,7 @@ if ($_GET["action"] == 'create')
|
|||||||
print '<form name="fichinter" action="'.$_SERVER['PHP_SELF'].'" method="GET">';
|
print '<form name="fichinter" action="'.$_SERVER['PHP_SELF'].'" method="GET">';
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td>'.$langs->trans("Company").'</td><td>';
|
print '<tr><td>'.$langs->trans("Company").'</td><td>';
|
||||||
$html->select_societes('','socid','s.fournisseur=0',1);
|
$html->select_societes('','socid','',1,1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '<tr><td colspan="2" align="center">';
|
print '<tr><td colspan="2" align="center">';
|
||||||
print '<input type="hidden" name="action" value="create">';
|
print '<input type="hidden" name="action" value="create">';
|
||||||
|
|||||||
@ -553,8 +553,8 @@ class Form
|
|||||||
if ($showtype)
|
if ($showtype)
|
||||||
{
|
{
|
||||||
if ($obj->client || $obj->fournisseur) $label.=' (';
|
if ($obj->client || $obj->fournisseur) $label.=' (';
|
||||||
if ($obj->client == 1) $label.=$langs->trans("Customer");
|
if ($obj->client == 1 || $obj->client == 3) $label.=$langs->trans("Customer");
|
||||||
if ($obj->client == 2) $label.=$langs->trans("Prospect");
|
if ($obj->client == 2 || $obj->client == 3) $label.=($obj->client==3?', ':'').$langs->trans("Prospect");
|
||||||
if ($obj->fournisseur) $label.=($obj->client?', ':'').$langs->trans("Supplier");
|
if ($obj->fournisseur) $label.=($obj->client?', ':'').$langs->trans("Supplier");
|
||||||
if ($obj->client || $obj->fournisseur) $label.=')';
|
if ($obj->client || $obj->fournisseur) $label.=')';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user