update code
This commit is contained in:
parent
6d826d718a
commit
b6b6ff4b6f
@ -35,7 +35,7 @@ require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture-rec.class.php
|
|||||||
require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.product.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.product.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
|
||||||
if (! empty($conf->project->enabled)) {
|
if (isModEnabled('project')) {
|
||||||
include_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php';
|
include_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php';
|
||||||
}
|
}
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formprojet.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formprojet.class.php';
|
||||||
@ -869,7 +869,7 @@ llxHeader('', $langs->trans("RepeatableSupplierInvoice"), $help_url);
|
|||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
$formother = new FormOther($db);
|
$formother = new FormOther($db);
|
||||||
if (! empty($conf->project->enabled)) {
|
if (isModEnabled('project')) {
|
||||||
$formproject = new FormProjets($db);
|
$formproject = new FormProjets($db);
|
||||||
}
|
}
|
||||||
$companystatic = new Societe($db);
|
$companystatic = new Societe($db);
|
||||||
@ -898,7 +898,7 @@ if ($action == 'create') {
|
|||||||
print dol_get_fiche_head(null, '', '', 0);
|
print dol_get_fiche_head(null, '', '', 0);
|
||||||
|
|
||||||
$rowspan = 4;
|
$rowspan = 4;
|
||||||
if (! empty($conf->project->enabled)) $rowspan++;
|
if (isModEnabled('project')) $rowspan++;
|
||||||
if ($object->fk_account > 0) $rowspan++;
|
if ($object->fk_account > 0) $rowspan++;
|
||||||
|
|
||||||
print '<table class="border centpercent">';
|
print '<table class="border centpercent">';
|
||||||
@ -986,7 +986,7 @@ if ($action == 'create') {
|
|||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
// Project
|
// Project
|
||||||
if (! empty($conf->project->enabled) && is_object($object->thirdparty) && $object->thirdparty->id > 0) {
|
if (isModEnabled('project') && is_object($object->thirdparty) && $object->thirdparty->id > 0) {
|
||||||
$projectid = GETPOST('projectid') ? GETPOST('projectid') : $object->fk_project;
|
$projectid = GETPOST('projectid') ? GETPOST('projectid') : $object->fk_project;
|
||||||
$langs->load('projects');
|
$langs->load('projects');
|
||||||
print '<tr><td>' . $langs->trans('Project') . '</td><td>';
|
print '<tr><td>' . $langs->trans('Project') . '</td><td>';
|
||||||
@ -1135,7 +1135,7 @@ if ($action == 'create') {
|
|||||||
$morehtmlref .= '<br>' . $langs->trans('ThirdParty') . ' : ' . $object->thirdparty->getNomUrl(1);
|
$morehtmlref .= '<br>' . $langs->trans('ThirdParty') . ' : ' . $object->thirdparty->getNomUrl(1);
|
||||||
|
|
||||||
// Project
|
// Project
|
||||||
if (! empty($conf->project->enabled)) {
|
if (isModEnabled('project')) {
|
||||||
$langs->load('projects');
|
$langs->load('projects');
|
||||||
$morehtmlref .= '<br>' . $langs->trans('Project') . ' ';
|
$morehtmlref .= '<br>' . $langs->trans('Project') . ' ';
|
||||||
if ($usercancreate) {
|
if ($usercancreate) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user