commit
a56a6abb20
@ -108,7 +108,7 @@ if ($action == 'set_default') {
|
|||||||
$res3 = dolibarr_set_const($db, 'ADHERENT_CREATE_EXTERNAL_USER_LOGIN', GETPOST('ADHERENT_CREATE_EXTERNAL_USER_LOGIN', 'alpha'), 'chaine', 0, '', $conf->entity);
|
$res3 = dolibarr_set_const($db, 'ADHERENT_CREATE_EXTERNAL_USER_LOGIN', GETPOST('ADHERENT_CREATE_EXTERNAL_USER_LOGIN', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||||
$res4 = dolibarr_set_const($db, 'ADHERENT_BANK_USE', GETPOST('ADHERENT_BANK_USE', 'alpha'), 'chaine', 0, '', $conf->entity);
|
$res4 = dolibarr_set_const($db, 'ADHERENT_BANK_USE', GETPOST('ADHERENT_BANK_USE', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||||
// Use vat for invoice creation
|
// Use vat for invoice creation
|
||||||
if ($conf->facture->enabled) {
|
if (!empty($conf->facture->enabled)) {
|
||||||
$res4 = dolibarr_set_const($db, 'ADHERENT_VAT_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_VAT_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
|
$res4 = dolibarr_set_const($db, 'ADHERENT_VAT_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_VAT_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||||
$res5 = dolibarr_set_const($db, 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
|
$res5 = dolibarr_set_const($db, 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', GETPOST('ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||||
if (!empty($conf->product->enabled) || !empty($conf->service->enabled)) {
|
if (!empty($conf->product->enabled) || !empty($conf->service->enabled)) {
|
||||||
@ -256,7 +256,7 @@ print '</td>';
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
// Use vat for invoice creation
|
// Use vat for invoice creation
|
||||||
if ($conf->facture->enabled) {
|
if (!empty($conf->facture->enabled)) {
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("VATToUseForSubscriptions").'</td>';
|
print '<tr class="oddeven"><td>'.$langs->trans("VATToUseForSubscriptions").'</td>';
|
||||||
if (!empty($conf->banque->enabled)) {
|
if (!empty($conf->banque->enabled)) {
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2022 Charlene Benke <charlene@patas-monkey.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -592,15 +593,15 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
'recordjoinpiece'=>'AttachJoinedDocumentsToObject',
|
'recordjoinpiece'=>'AttachJoinedDocumentsToObject',
|
||||||
'recordevent'=>'RecordEvent');
|
'recordevent'=>'RecordEvent');
|
||||||
$arrayoftypesnocondition = $arrayoftypes;
|
$arrayoftypesnocondition = $arrayoftypes;
|
||||||
if ($conf->projet->enabled) {
|
if (!empty($conf->projet->enabled)) {
|
||||||
$arrayoftypes['project'] = 'CreateLeadAndThirdParty';
|
$arrayoftypes['project'] = 'CreateLeadAndThirdParty';
|
||||||
}
|
}
|
||||||
$arrayoftypesnocondition['project'] = 'CreateLeadAndThirdParty';
|
$arrayoftypesnocondition['project'] = 'CreateLeadAndThirdParty';
|
||||||
if ($conf->ticket->enabled) {
|
if (!empty($conf->ticket->enabled)) {
|
||||||
$arrayoftypes['ticket'] = 'CreateTicketAndThirdParty';
|
$arrayoftypes['ticket'] = 'CreateTicketAndThirdParty';
|
||||||
}
|
}
|
||||||
$arrayoftypesnocondition['ticket'] = 'CreateTicketAndThirdParty';
|
$arrayoftypesnocondition['ticket'] = 'CreateTicketAndThirdParty';
|
||||||
if ($conf->recruitment->enabled) {
|
if (!empty($conf->recruitment->enabled)) {
|
||||||
$arrayoftypes['candidature'] = 'CreateCandidature';
|
$arrayoftypes['candidature'] = 'CreateCandidature';
|
||||||
}
|
}
|
||||||
$arrayoftypesnocondition['candidature'] = 'CreateCandidature';
|
$arrayoftypesnocondition['candidature'] = 'CreateCandidature';
|
||||||
|
|||||||
@ -394,7 +394,7 @@ print "</td>\n";
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
// Option to force stock to be enough before adding a line into document
|
// Option to force stock to be enough before adding a line into document
|
||||||
if ($conf->invoice->enabled) {
|
if (!empty($conf->invoice->enabled)) {
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td>'.$langs->trans("StockMustBeEnoughForInvoice").'</td>';
|
print '<td>'.$langs->trans("StockMustBeEnoughForInvoice").'</td>';
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
@ -408,7 +408,7 @@ if ($conf->invoice->enabled) {
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->order->enabled) {
|
if (!empty($conf->order->enabled)) {
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td>'.$langs->trans("StockMustBeEnoughForOrder").'</td>';
|
print '<td>'.$langs->trans("StockMustBeEnoughForOrder").'</td>';
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
@ -422,7 +422,7 @@ if ($conf->order->enabled) {
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->expedition->enabled) {
|
if (!empty($conf->expedition->enabled)) {
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td>'.$langs->trans("StockMustBeEnoughForShipment").'</td>';
|
print '<td>'.$langs->trans("StockMustBeEnoughForShipment").'</td>';
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
|
|||||||
@ -153,16 +153,16 @@ print '</td></tr>';
|
|||||||
|
|
||||||
if ($object->thirdparty->client) {
|
if ($object->thirdparty->client) {
|
||||||
$thirdTypeArray['customer'] = $langs->trans("customer");
|
$thirdTypeArray['customer'] = $langs->trans("customer");
|
||||||
if ($conf->propal->enabled && $user->rights->propal->lire) {
|
if (!empty($conf->propal->enabled) && $user->rights->propal->lire) {
|
||||||
$elementTypeArray['propal'] = $langs->transnoentitiesnoconv('Proposals');
|
$elementTypeArray['propal'] = $langs->transnoentitiesnoconv('Proposals');
|
||||||
}
|
}
|
||||||
if ($conf->commande->enabled && $user->rights->commande->lire) {
|
if (!empty($conf->commande->enabled) && $user->rights->commande->lire) {
|
||||||
$elementTypeArray['order'] = $langs->transnoentitiesnoconv('Orders');
|
$elementTypeArray['order'] = $langs->transnoentitiesnoconv('Orders');
|
||||||
}
|
}
|
||||||
if ($conf->facture->enabled && $user->rights->facture->lire) {
|
if (!empty($conf->facture->enabled) && $user->rights->facture->lire) {
|
||||||
$elementTypeArray['invoice'] = $langs->transnoentitiesnoconv('Invoices');
|
$elementTypeArray['invoice'] = $langs->transnoentitiesnoconv('Invoices');
|
||||||
}
|
}
|
||||||
if ($conf->contrat->enabled && $user->rights->contrat->lire) {
|
if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire) {
|
||||||
$elementTypeArray['contract'] = $langs->transnoentitiesnoconv('Contracts');
|
$elementTypeArray['contract'] = $langs->transnoentitiesnoconv('Contracts');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -346,7 +346,7 @@ class FormTicket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->knowledgemanagement->enabled) {
|
if (!empty($conf->knowledgemanagement->enabled)) {
|
||||||
// KM Articles
|
// KM Articles
|
||||||
print '<tr id="KWwithajax"></tr>';
|
print '<tr id="KWwithajax"></tr>';
|
||||||
print '<!-- Script to manage change of ticket group -->
|
print '<!-- Script to manage change of ticket group -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user