Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
This commit is contained in:
commit
abfd324301
@ -142,9 +142,6 @@ if (!empty($conf->global->AGENDA_REMINDER_EMAIL)) {
|
|||||||
$TDurationTypes = array('y'=>$langs->trans('Years'), 'm'=>$langs->trans('Month'), 'w'=>$langs->trans('Weeks'), 'd'=>$langs->trans('Days'), 'h'=>$langs->trans('Hours'), 'i'=>$langs->trans('Minutes'));
|
$TDurationTypes = array('y'=>$langs->trans('Years'), 'm'=>$langs->trans('Month'), 'w'=>$langs->trans('Weeks'), 'd'=>$langs->trans('Days'), 'h'=>$langs->trans('Hours'), 'i'=>$langs->trans('Minutes'));
|
||||||
|
|
||||||
$result = restrictedArea($user, 'agenda', $object->id, 'actioncomm&societe', 'myactions|allactions', 'fk_soc', 'id');
|
$result = restrictedArea($user, 'agenda', $object->id, 'actioncomm&societe', 'myactions|allactions', 'fk_soc', 'id');
|
||||||
if ($user->socid && $socid) {
|
|
||||||
$result = restrictedArea($user, 'societe', $socid);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -187,7 +187,7 @@ $search_array_options = $extrafields->getOptionalsFromPost($object->table_elemen
|
|||||||
// List of fields to search into when doing a "search in all"
|
// List of fields to search into when doing a "search in all"
|
||||||
$fieldstosearchall = array(
|
$fieldstosearchall = array(
|
||||||
'p.ref'=>'Ref',
|
'p.ref'=>'Ref',
|
||||||
'p.ref_client'=>'CustomerRef',
|
'p.ref_client'=>'RefCustomer',
|
||||||
'pd.description'=>'Description',
|
'pd.description'=>'Description',
|
||||||
's.nom'=>"ThirdParty",
|
's.nom'=>"ThirdParty",
|
||||||
's.name_alias'=>"AliasNameShort",
|
's.name_alias'=>"AliasNameShort",
|
||||||
|
|||||||
@ -143,6 +143,9 @@ class CMailFile
|
|||||||
{
|
{
|
||||||
global $conf, $dolibarr_main_data_root, $user;
|
global $conf, $dolibarr_main_data_root, $user;
|
||||||
|
|
||||||
|
dol_syslog("CMailFile::CMailfile: charset=".$conf->file->character_set_client." from=$from, to=$to, addr_cc=$addr_cc, addr_bcc=$addr_bcc, errors_to=$errors_to, replyto=$replyto trackid=$trackid sendcontext=$sendcontext", LOG_DEBUG);
|
||||||
|
dol_syslog("CMailFile::CMailfile: subject=".$subject.", deliveryreceipt=".$deliveryreceipt.", msgishtml=".$msgishtml, LOG_DEBUG);
|
||||||
|
|
||||||
// Clean values of $mimefilename_list
|
// Clean values of $mimefilename_list
|
||||||
if (is_array($mimefilename_list)) {
|
if (is_array($mimefilename_list)) {
|
||||||
foreach ($mimefilename_list as $key => $val) {
|
foreach ($mimefilename_list as $key => $val) {
|
||||||
@ -185,9 +188,6 @@ class CMailFile
|
|||||||
// On defini alternative_boundary
|
// On defini alternative_boundary
|
||||||
$this->alternative_boundary = 'mul_'.dol_hash(uniqid("dolibarr3"), 3); // Force md5 hash (does not contains special chars)
|
$this->alternative_boundary = 'mul_'.dol_hash(uniqid("dolibarr3"), 3); // Force md5 hash (does not contains special chars)
|
||||||
|
|
||||||
dol_syslog("CMailFile::CMailfile: sendmode=".$this->sendmode." charset=".$conf->file->character_set_client." from=$from, to=$to, addr_cc=$addr_cc, addr_bcc=$addr_bcc, errors_to=$errors_to, replyto=$replyto trackid=$trackid sendcontext=$sendcontext", LOG_DEBUG);
|
|
||||||
dol_syslog("CMailFile::CMailfile: subject=".$subject.", deliveryreceipt=".$deliveryreceipt.", msgishtml=".$msgishtml, LOG_DEBUG);
|
|
||||||
|
|
||||||
if (empty($subject)) {
|
if (empty($subject)) {
|
||||||
dol_syslog("CMailFile::CMailfile: Try to send an email with empty subject");
|
dol_syslog("CMailFile::CMailfile: Try to send an email with empty subject");
|
||||||
$this->error = 'ErrorSubjectIsRequired';
|
$this->error = 'ErrorSubjectIsRequired';
|
||||||
@ -315,6 +315,8 @@ class CMailFile
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dol_syslog("CMailFile::CMailfile: sendmode=".$this->sendmode." addr_bcc=$addr_bcc, replyto=$replyto", LOG_DEBUG);
|
||||||
|
|
||||||
// We set all data according to choosed sending method.
|
// We set all data according to choosed sending method.
|
||||||
// We also set a value for ->msgid
|
// We also set a value for ->msgid
|
||||||
if ($this->sendmode == 'mail') {
|
if ($this->sendmode == 'mail') {
|
||||||
|
|||||||
@ -240,7 +240,7 @@ class modFacture extends DolibarrModules
|
|||||||
'f.ref' => 'InvoiceRef*',
|
'f.ref' => 'InvoiceRef*',
|
||||||
'f.ref_ext' => 'ExternalRef',
|
'f.ref_ext' => 'ExternalRef',
|
||||||
'f.ref_int' => 'ExternalRef',
|
'f.ref_int' => 'ExternalRef',
|
||||||
'f.ref_client' => 'CustomerRef',
|
'f.ref_client' => 'RefCustomer',
|
||||||
'f.type' => 'Type*',
|
'f.type' => 'Type*',
|
||||||
'f.fk_soc' => 'Customer*',
|
'f.fk_soc' => 'Customer*',
|
||||||
'f.datec' => 'InvoiceDateCreation',
|
'f.datec' => 'InvoiceDateCreation',
|
||||||
|
|||||||
@ -393,6 +393,13 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Extrafields in note
|
||||||
|
$extranote = $this->getExtrafieldsInHtml($object, $outputlangs);
|
||||||
|
if (!empty($extranote)) {
|
||||||
|
$notetoshow = dol_concatdesc($notetoshow, $extranote);
|
||||||
|
}
|
||||||
|
|
||||||
if ($notetoshow) {
|
if ($notetoshow) {
|
||||||
$tab_top -= 2;
|
$tab_top -= 2;
|
||||||
|
|
||||||
|
|||||||
@ -198,9 +198,9 @@ class ExpenseReportIk extends CommonObject
|
|||||||
$default_range = (int) $userauthor->default_range; // if not defined, then 0
|
$default_range = (int) $userauthor->default_range; // if not defined, then 0
|
||||||
$ranges = $this->getRangesByCategory($fk_c_exp_tax_cat);
|
$ranges = $this->getRangesByCategory($fk_c_exp_tax_cat);
|
||||||
// prevent out of range -1 indice
|
// prevent out of range -1 indice
|
||||||
$indice = $default_range > 0 ? $default_range - 1 : 0;
|
$indice = $default_range - 1;
|
||||||
// substract 1 because array start from 0
|
// substract 1 because array start from 0
|
||||||
if (empty($ranges) || !isset($ranges[$indice])) {
|
if (empty($ranges) || $indice < 0 || !isset($ranges[$indice])) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return $ranges[$indice];
|
return $ranges[$indice];
|
||||||
|
|||||||
@ -49,7 +49,7 @@ BoxTitleLastActionsToDo=Les %s derniers événements à réaliser
|
|||||||
BoxTitleLastContracts=Les %s derniers contrats modifiés
|
BoxTitleLastContracts=Les %s derniers contrats modifiés
|
||||||
BoxTitleLastModifiedDonations=Les %s derniers dons modifiés
|
BoxTitleLastModifiedDonations=Les %s derniers dons modifiés
|
||||||
BoxTitleLastModifiedExpenses=Les %s dernières notes de frais modifiées
|
BoxTitleLastModifiedExpenses=Les %s dernières notes de frais modifiées
|
||||||
BoxTitleLatestModifiedBoms=Les %s derières BOMS modifiées
|
BoxTitleLatestModifiedBoms=Les %s dernières BOMS modifiées
|
||||||
BoxTitleLatestModifiedMos=Les %s derniers ordres de fabrication modifiés
|
BoxTitleLatestModifiedMos=Les %s derniers ordres de fabrication modifiés
|
||||||
BoxTitleLastOutstandingBillReached=Clients dont l'en-cours autorisé est dépassé
|
BoxTitleLastOutstandingBillReached=Clients dont l'en-cours autorisé est dépassé
|
||||||
BoxGlobalActivity=Activité globale (factures, propositions, commandes)
|
BoxGlobalActivity=Activité globale (factures, propositions, commandes)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user