$form->select_comptes($fk_account, 'fk_account', 0, '', 1); print '</td></tr>'; // Project if (!empty($conf->projet->enabled) && $socid > 0) { $langs->load('projects'); print '<tr><td>' . $langs->trans('Project') . '</td><td colspan="2">'; $numprojet = $formproject->select_projects($soc->id, $projectid, 'projectid', 0); print ' <a href="' . DOL_URL_ROOT . '/projet/card.php?socid=' . $soc->id . '&action=create&status=1&backtopage=' . urlencode($_SERVER["PHP_SELF"] . '?action=create&socid=' . $soc->id) . '">' . $langs->trans("AddProject") . '</a>'; print '</td></tr>'; } // Incoterms if (!empty($conf->incoterm->enabled)) { print '<tr>'; print '<td><label for="incoterm_id">' . $form->textwithpicto($langs->trans("IncotermLabel"), $objectsrc->libelle_incoterms, 1) . '</label></td>'; print '<td colspan="3" class="maxwidthonsmartphone">'; print $form->select_incoterms(!empty($objectsrc->fk_incoterms) ? $objectsrc->fk_incoterms : '', !empty($objectsrc->location_incoterms) ? $objectsrc->location_incoterms : ''); print '</td></tr>'; } // Other attributes $parameters = array('objectsrc' => $objectsrc, 'colspan' => ' colspan="3"'); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by // hook if (empty($reshook) && !empty($extrafields->attribute_label)) { print $object->showOptionals($extrafields, 'edit'); } // Template to use by default print '<tr><td>' . $langs->trans('Model') . '</td>'; print '<td>'; include_once DOL_DOCUMENT_ROOT . '/core/modules/facture/modules_facture.php'; $liste = ModelePDFFactures::liste_modeles($db);
{ // Assign a Name print '<tr>'; print '<td>'.fieldLabel('AllocateCommercial','commercial_id').'</td>'; print '<td colspan="3" class="maxwidthonsmartphone">'; $form->select_dolusers((! empty($object->commercial_id)?$object->commercial_id:$user->id),'commercial_id',1); // Add current user by default print '</td></tr>'; } // Incoterms if (!empty($conf->incoterm->enabled)) { print '<tr>'; print '<td>'.fieldLabel('IncotermLabel','incoterm_id').'</td>'; print '<td colspan="3" class="maxwidthonsmartphone">'; print $form->select_incoterms((!empty($object->fk_incoterms) ? $object->fk_incoterms : ''), (!empty($object->location_incoterms)?$object->location_incoterms:'')); print '</td></tr>'; } // Categories if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire)) { $langs->load('categories'); // Customer if ($object->prospect || $object->client) { print '<tr><td class="toptd">' . fieldLabel('CustomersCategoriesShort', 'custcats') . '</td><td colspan="3">'; $cate_arbo = $form->select_all_categories(Categorie::TYPE_CUSTOMER, null, 'parent', null, null, 1); print $form->multiselectarray('custcats', $cate_arbo, GETPOST('custcats', 'array'), null, null, null, null, "90%"); print "</td></tr>";