Merge branch 'Dolibarr:develop' into develop
This commit is contained in:
commit
72d10d1577
@ -1709,7 +1709,7 @@ class BonPrelevement extends CommonObject
|
|||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
$pre = substr(dol_string_nospecial(dol_string_unaccent($langs->transnoentitiesnoconv('RUM'))), 0, 3); // Must always be on 3 char ('RUM' or 'UMR'. This is a protection against bad translation)
|
$pre = substr(dol_string_nospecial(dol_string_unaccent($langs->transnoentitiesnoconv('RUM'))), 0, 3); // Must always be on 3 char ('RUM' or 'UMR'. This is a protection against bad translation)
|
||||||
return $pre.'-'.$row_code_client.'-'.$row_drum.'-'.date('U', $row_datec);
|
return $pre.($row_code_client ? '-'.$row_code_client : '').'-'.$row_drum.'-'.date('U', $row_datec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1823,8 +1823,8 @@ class BonPrelevement extends CommonObject
|
|||||||
$Rowing = sprintf("%010d", $row_idfac);
|
$Rowing = sprintf("%010d", $row_idfac);
|
||||||
|
|
||||||
// Define value for RUM
|
// Define value for RUM
|
||||||
// Example: RUMCustomerCode-CustomerBankAccountId-01424448606 (note: Date is date of creation of CustomerBankAccountId)
|
// Example: RUM-CustomerCode-CustomerBankAccountId-01424448606 (note: Date is the timestamp of the date of creation of CustomerBankAccountId)
|
||||||
$Rum = empty($row_rum) ? $this->buildRumNumber($row_code_client, $row_datec, $row_drum) : $row_rum;
|
$Rum = (empty($row_rum) ? $this->buildRumNumber($row_code_client, $row_datec, $row_drum) : $row_rum);
|
||||||
|
|
||||||
// Define date of RUM signature
|
// Define date of RUM signature
|
||||||
$DtOfSgntr = dol_print_date($row_datec, '%Y-%m-%d');
|
$DtOfSgntr = dol_print_date($row_datec, '%Y-%m-%d');
|
||||||
|
|||||||
@ -1298,7 +1298,7 @@ class FormTicket
|
|||||||
} else {
|
} else {
|
||||||
$keytoavoidconflict = empty($this->track_id) ? '' : '-'.$this->track_id; // track_id instead of trackid
|
$keytoavoidconflict = empty($this->track_id) ? '' : '-'.$this->track_id; // track_id instead of trackid
|
||||||
}
|
}
|
||||||
//var_dump($keytoavoidconflict);
|
//var_dump($keytoavoidconflict);
|
||||||
if (GETPOST('mode', 'alpha') == 'init' || (GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1')) {
|
if (GETPOST('mode', 'alpha') == 'init' || (GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1')) {
|
||||||
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit'])) {
|
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit'])) {
|
||||||
foreach ($this->param['fileinit'] as $file) {
|
foreach ($this->param['fileinit'] as $file) {
|
||||||
@ -1306,8 +1306,8 @@ class FormTicket
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//var_dump($_SESSION);
|
//var_dump($_SESSION);
|
||||||
//var_dump($_SESSION["listofpaths".$keytoavoidconflict]);
|
//var_dump($_SESSION["listofpaths".$keytoavoidconflict]);
|
||||||
if (!empty($_SESSION["listofpaths".$keytoavoidconflict])) {
|
if (!empty($_SESSION["listofpaths".$keytoavoidconflict])) {
|
||||||
$listofpaths = explode(';', $_SESSION["listofpaths".$keytoavoidconflict]);
|
$listofpaths = explode(';', $_SESSION["listofpaths".$keytoavoidconflict]);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -397,7 +397,9 @@ function LoadProducts(position, issubcat) {
|
|||||||
function MoreProducts(moreorless) {
|
function MoreProducts(moreorless) {
|
||||||
console.log("MoreProducts");
|
console.log("MoreProducts");
|
||||||
|
|
||||||
if ($('#search_pagination').val() != '') return Search2('<?php echo $keyCodeForEnter; ?>', moreorless);
|
if ($('#search_pagination').val() != '') {
|
||||||
|
return Search2('<?php echo (isset($keyCodeForEnter) ? $keyCodeForEnter : ''); ?>', moreorless);
|
||||||
|
}
|
||||||
|
|
||||||
var maxproduct = <?php echo ($MAXPRODUCT - 2); ?>;
|
var maxproduct = <?php echo ($MAXPRODUCT - 2); ?>;
|
||||||
|
|
||||||
|
|||||||
@ -689,7 +689,7 @@ if (empty($reshook)) {
|
|||||||
$upload_dir = $conf->ticket->dir_output;
|
$upload_dir = $conf->ticket->dir_output;
|
||||||
$permissiontoadd = $user->rights->ticket->write;
|
$permissiontoadd = $user->rights->ticket->write;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/actions_builddoc.inc.php';
|
||||||
//var_dump($action);exit;
|
//var_dump($action);exit;
|
||||||
// Actions to send emails
|
// Actions to send emails
|
||||||
$triggersendname = 'TICKET_SENTBYMAIL';
|
$triggersendname = 'TICKET_SENTBYMAIL';
|
||||||
$paramname = 'id';
|
$paramname = 'id';
|
||||||
|
|||||||
@ -109,8 +109,8 @@ if (in_array('DOLUSERCOOKIE_ticket_by_status', $autosetarray)) {
|
|||||||
} elseif (!empty($_COOKIE['DOLUSERCOOKIE_ticket_by_status'])) {
|
} elseif (!empty($_COOKIE['DOLUSERCOOKIE_ticket_by_status'])) {
|
||||||
$tmparray = json_decode($_COOKIE['DOLUSERCOOKIE_ticket_by_status'], true);
|
$tmparray = json_decode($_COOKIE['DOLUSERCOOKIE_ticket_by_status'], true);
|
||||||
$endyear = $tmparray['year'];
|
$endyear = $tmparray['year'];
|
||||||
$shownb = $tmparray['shownb'];
|
$shownb = empty($tmparray['shownb']) ? 0 : $tmparray['shownb'];
|
||||||
$showtot = $tmparray['showtot'];
|
$showtot = empty($tmparray['showtot']) ? 0 : $tmparray['showtot'];
|
||||||
}
|
}
|
||||||
if (empty($shownb) && empty($showtot)) {
|
if (empty($shownb) && empty($showtot)) {
|
||||||
$showtot = 1;
|
$showtot = 1;
|
||||||
|
|||||||
@ -129,7 +129,7 @@ $sql = "SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec, g.tms as datem
|
|||||||
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."usergroup_user as ugu ON ugu.fk_usergroup = g.rowid";
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."usergroup_user as ugu ON ugu.fk_usergroup = g.rowid";
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."usergroup_rights as ugr ON ugr.fk_usergroup = g.rowid";
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."usergroup_rights as ugr ON ugr.fk_usergroup = g.rowid";
|
||||||
if (isModEnabled('multicompany') && $conf->entity == 1 && ($conf->global->MULTICOMPANY_TRANSVERSE_MODE || ($user->admin && !$user->entity))) {
|
if (isModEnabled('multicompany') && $conf->entity == 1 && (getDolGlobalInt('MULTICOMPANY_TRANSVERSE_MODE') || ($user->admin && !$user->entity))) {
|
||||||
$sql .= " WHERE g.entity IS NOT NULL";
|
$sql .= " WHERE g.entity IS NOT NULL";
|
||||||
} else {
|
} else {
|
||||||
$sql .= " WHERE g.entity IN (0,".$conf->entity.")";
|
$sql .= " WHERE g.entity IN (0,".$conf->entity.")";
|
||||||
|
|||||||
@ -224,10 +224,10 @@ if ($canreadperms) {
|
|||||||
|
|
||||||
$sql = "SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec";
|
$sql = "SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
||||||
if (isModEnabled('multicompany') && $conf->entity == 1 && ($conf->global->MULTICOMPANY_TRANSVERSE_MODE || ($user->admin && !$user->entity))) {
|
if (isModEnabled('multicompany') && $conf->entity == 1 && (getDolGlobalInt('MULTICOMPANY_TRANSVERSE_MODE') || ($user->admin && !$user->entity))) {
|
||||||
$sql .= " WHERE g.entity IS NOT NULL";
|
$sql .= " WHERE g.entity IS NOT NULL";
|
||||||
} else {
|
} else {
|
||||||
$sql .= " WHERE g.entity IN (0,".$conf->entity.")";
|
$sql .= " WHERE g.entity IN (0, ".$conf->entity.")";
|
||||||
}
|
}
|
||||||
$sql .= $db->order("g.datec", "DESC");
|
$sql .= $db->order("g.datec", "DESC");
|
||||||
$sql .= $db->plimit($max);
|
$sql .= $db->plimit($max);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user