remove suppliers from list as fichinter is displayed only on customer… (#38657)
* remove suppliers from list as fichinter is displayed only on customer/prospect card * add client = 2 as accepted values * QUAL: switch to constants
This commit is contained in:
parent
c278f65591
commit
db6314ce9b
1 changed files with 3 additions and 1 deletions
|
|
@ -1063,7 +1063,9 @@ if ($action == 'create') {
|
|||
}
|
||||
print '<table class="border centpercent">';
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("ThirdParty").'</td><td>';
|
||||
print $form->select_company('', 'socid', '', 'SelectThirdParty', 1, 0, null, 0, 'minwidth300');
|
||||
$filter = '((s.client:IN:'.Societe::CUSTOMER.', '.Societe::PROSPECT.', '.Societe::CUSTOMER_AND_PROSPECT.') AND (s.status:=:1))';
|
||||
|
||||
print $form->select_company('', 'socid', $filter, 'SelectThirdParty', 1, 0, null, 0, 'minwidth300');
|
||||
print ' <a href="'.DOL_URL_ROOT.'/societe/card.php?action=create&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create').'"><span class="fa fa-plus-circle valignmiddle paddingleft" title="'.$langs->trans("AddThirdParty").'"></span></a>';
|
||||
print '</td></tr>';
|
||||
print '</table>';
|
||||
|
|
|
|||
Loading…
Reference in a new issue