Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
This commit is contained in:
commit
89b0a7b2b5
@ -38,6 +38,17 @@ if (!$user->admin) {
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||||
|
$hookmanager->initHooks(array('admin', 'dictionaryadmin','expensereport_rules'));
|
||||||
|
|
||||||
|
|
||||||
|
$parameters = array();
|
||||||
|
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
if ($reshook < 0) {
|
||||||
|
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($reshook)) {
|
||||||
//Init error
|
//Init error
|
||||||
$error = false;
|
$error = false;
|
||||||
$message = false;
|
$message = false;
|
||||||
@ -62,7 +73,6 @@ if (!empty($id)) {
|
|||||||
dol_print_error('', $object->error, $object->errors);
|
dol_print_error('', $object->error, $object->errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO do action
|
// TODO do action
|
||||||
if ($action == 'save') {
|
if ($action == 'save') {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
@ -150,8 +160,7 @@ $tab_rules_type = array(
|
|||||||
'EX_YEA' => $langs->trans('Year'),
|
'EX_YEA' => $langs->trans('Year'),
|
||||||
'EX_EXP' => $langs->trans('OnExpense')
|
'EX_EXP' => $langs->trans('OnExpense')
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
@ -349,6 +358,7 @@ echo '<script type="text/javascript"> $(function() {
|
|||||||
|
|
||||||
}); </script>';
|
}); </script>';
|
||||||
|
|
||||||
|
|
||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
|
|||||||
@ -769,7 +769,7 @@ if ($action == 'add') {
|
|||||||
if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
|
if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
|
||||||
$okforextended = false;
|
$okforextended = false;
|
||||||
}
|
}
|
||||||
$doleditor = new DolEditor($tmpfieldlist, (!empty($obj->{$tmpfieldlist}) ? $obj->{$tmpfieldlist} : ''), '', 180, 'dolibarr_mailings', 'In', 0, false, $okforextended, ROWS_4, '90%');
|
$doleditor = new DolEditor($tmpfieldlist, (!empty($obj->{$tmpfieldlist}) ? $obj->{$tmpfieldlist} : ''), '', 180, 'dolibarr_mailings', 'In', 0, true, $okforextended, ROWS_4, '90%');
|
||||||
print $doleditor->Create(1);
|
print $doleditor->Create(1);
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -1000,7 +1000,7 @@ if ($resql) {
|
|||||||
if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
|
if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
|
||||||
$okforextended = false;
|
$okforextended = false;
|
||||||
}
|
}
|
||||||
$doleditor = new DolEditor($tmpfieldlist.'-'.$rowid, (!empty($obj->{$tmpfieldlist}) ? $obj->{$tmpfieldlist} : ''), '', 500, 'dolibarr_mailings', 'In', 0, false, $okforextended, ROWS_6, '90%');
|
$doleditor = new DolEditor($tmpfieldlist.'-'.$rowid, (!empty($obj->{$tmpfieldlist}) ? $obj->{$tmpfieldlist} : ''), '', 500, 'dolibarr_mailings', 'In', 0, true, $okforextended, ROWS_6, '90%');
|
||||||
print $doleditor->Create(1);
|
print $doleditor->Create(1);
|
||||||
}
|
}
|
||||||
if ($tmpfieldlist == 'content_lines') {
|
if ($tmpfieldlist == 'content_lines') {
|
||||||
@ -1152,6 +1152,7 @@ if ($resql) {
|
|||||||
//else print '<a href="#">'.img_delete().'</a>'; // Some dictionary can be edited by other profile than admin
|
//else print '<a href="#">'.img_delete().'</a>'; // Some dictionary can be edited by other profile than admin
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -7909,7 +7909,6 @@ function dol_htmloutput_events($disabledoutputofmessages = 0)
|
|||||||
}
|
}
|
||||||
unset($_SESSION['dol_events']['mesgs']);
|
unset($_SESSION['dol_events']['mesgs']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show errors
|
// Show errors
|
||||||
if (isset($_SESSION['dol_events']['errors'])) {
|
if (isset($_SESSION['dol_events']['errors'])) {
|
||||||
if (empty($disabledoutputofmessages)) {
|
if (empty($disabledoutputofmessages)) {
|
||||||
|
|||||||
@ -109,9 +109,9 @@ function check_user_password_ldap($usertotest, $passwordtotest, $entitytotest)
|
|||||||
$userSearchFilter = str_replace('%1%', $usertotest, $dolibarr_main_auth_ldap_filter);
|
$userSearchFilter = str_replace('%1%', $usertotest, $dolibarr_main_auth_ldap_filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If admin login provided
|
// If admin login or ldap auth filter provided
|
||||||
// Code to get user in LDAP from an admin connection (may differ from user connection, done later)
|
// Code to get user in LDAP from an admin connection (may differ from user connection, done later)
|
||||||
if ($ldapadminlogin) {
|
if ($ldapadminlogin || $dolibarr_main_auth_ldap_filter) {
|
||||||
$result = $ldap->connect_bind();
|
$result = $ldap->connect_bind();
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
$resultFetchLdapUser = $ldap->fetch($usertotest, $userSearchFilter);
|
$resultFetchLdapUser = $ldap->fetch($usertotest, $userSearchFilter);
|
||||||
|
|||||||
@ -300,3 +300,5 @@ UPDATE llx_c_availability SET type_duration = 'w', qty = 3 WHERE code = 'AV_3W';
|
|||||||
UPDATE llx_c_availability SET type_duration = 'w', qty = 4 WHERE code = 'AV_4W';
|
UPDATE llx_c_availability SET type_duration = 'w', qty = 4 WHERE code = 'AV_4W';
|
||||||
|
|
||||||
ALTER TABLE llx_boxes_def ADD COLUMN fk_user integer DEFAULT 0 NOT NULL;
|
ALTER TABLE llx_boxes_def ADD COLUMN fk_user integer DEFAULT 0 NOT NULL;
|
||||||
|
|
||||||
|
ALTER TABLE llx_contratdet ADD COLUMN rang integer DEFAULT 0 AFTER info_bits;
|
||||||
|
|||||||
@ -56,6 +56,7 @@ create table llx_contratdet
|
|||||||
product_type integer DEFAULT 1, -- Type of line (1=service by default)
|
product_type integer DEFAULT 1, -- Type of line (1=service by default)
|
||||||
info_bits integer DEFAULT 0, -- TVA NPR ou non
|
info_bits integer DEFAULT 0, -- TVA NPR ou non
|
||||||
|
|
||||||
|
rang integer DEFAULT 0,
|
||||||
buy_price_ht double(24,8) DEFAULT NULL, -- buying price
|
buy_price_ht double(24,8) DEFAULT NULL, -- buying price
|
||||||
fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added was created (may be used to update buy_price_ht when future invoice will be created)
|
fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added was created (may be used to update buy_price_ht when future invoice will be created)
|
||||||
|
|
||||||
|
|||||||
@ -535,7 +535,8 @@ if ($action == "addline") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$idoflineadded = 0;
|
$idoflineadded = 0;
|
||||||
if (!empty($conf->global->TAKEPOS_GROUP_SAME_PRODUCT)) {
|
// Group if enabled. Skip group if line already sent to the printer
|
||||||
|
if (!empty($conf->global->TAKEPOS_GROUP_SAME_PRODUCT) && $line->special_code != "4") {
|
||||||
foreach ($invoice->lines as $line) {
|
foreach ($invoice->lines as $line) {
|
||||||
if ($line->product_ref == $prod->ref) {
|
if ($line->product_ref == $prod->ref) {
|
||||||
if ($line->special_code==4) continue; // If this line is sended to printer create new line
|
if ($line->special_code==4) continue; // If this line is sended to printer create new line
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user