Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
2113a944ce
@ -5,6 +5,7 @@
|
|||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||||
* Copyright (C) 2010 Pierre Morin <pierre.morin@auguria.net>
|
* Copyright (C) 2010 Pierre Morin <pierre.morin@auguria.net>
|
||||||
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2022 Ferran Marcet <fmarcet@2byte.es>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -163,6 +164,11 @@ if (!empty($hashp)) {
|
|||||||
$modulepart = $moduleparttocheck;
|
$modulepart = $moduleparttocheck;
|
||||||
$original_file = (($tmp[1] ? $tmp[1].'/' : '').$ecmfile->filename); // this is relative to module dir
|
$original_file = (($tmp[1] ? $tmp[1].'/' : '').$ecmfile->filename); // this is relative to module dir
|
||||||
}
|
}
|
||||||
|
$entity = $ecmfile->entity;
|
||||||
|
if ($entity != $conf->entity) {
|
||||||
|
$conf->entity = $entity;
|
||||||
|
$conf->setValues($db);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
accessforbidden($langs->trans("ErrorFileNotFoundWithSharedLink"), 0, 0, 1);
|
accessforbidden($langs->trans("ErrorFileNotFoundWithSharedLink"), 0, 0, 1);
|
||||||
|
|||||||
@ -426,7 +426,7 @@ class Fichinter extends CommonObject
|
|||||||
$sql .= " f.datec, f.dateo, f.datee, f.datet, f.fk_user_author,";
|
$sql .= " f.datec, f.dateo, f.datee, f.datet, f.fk_user_author,";
|
||||||
$sql .= " f.date_valid as datev,";
|
$sql .= " f.date_valid as datev,";
|
||||||
$sql .= " f.tms as datem,";
|
$sql .= " f.tms as datem,";
|
||||||
$sql .= " f.duree, f.fk_projet as fk_project, f.note_public, f.note_private, f.model_pdf, f.extraparams, fk_contrat";
|
$sql .= " f.duree, f.fk_projet as fk_project, f.note_public, f.note_private, f.model_pdf, f.extraparams, fk_contrat, f.entity as entity";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."fichinter as f";
|
$sql .= " FROM ".MAIN_DB_PREFIX."fichinter as f";
|
||||||
if ($ref) {
|
if ($ref) {
|
||||||
$sql .= " WHERE f.entity IN (".getEntity('intervention').")";
|
$sql .= " WHERE f.entity IN (".getEntity('intervention').")";
|
||||||
@ -459,6 +459,7 @@ class Fichinter extends CommonObject
|
|||||||
$this->model_pdf = $obj->model_pdf;
|
$this->model_pdf = $obj->model_pdf;
|
||||||
$this->modelpdf = $obj->model_pdf; // deprecated
|
$this->modelpdf = $obj->model_pdf; // deprecated
|
||||||
$this->fk_contrat = $obj->fk_contrat;
|
$this->fk_contrat = $obj->fk_contrat;
|
||||||
|
$this->entity = $obj->entity;
|
||||||
|
|
||||||
$this->user_creation = $obj->fk_user_author;
|
$this->user_creation = $obj->fk_user_author;
|
||||||
|
|
||||||
|
|||||||
@ -3304,7 +3304,7 @@ if ($module == 'initmodule') {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $perm[1];
|
print $langs->trans($perm[1]);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
@ -164,9 +164,9 @@ class PaymentSalary extends CommonObject
|
|||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
if ($totalamount != 0) {
|
if ($totalamount != 0) {
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."payment_salary (fk_salary, datec, datep, amount,";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."payment_salary (entity, fk_salary, datec, datep, amount,";
|
||||||
$sql .= " fk_typepayment, num_payment, note, fk_user_author, fk_bank)";
|
$sql .= " fk_typepayment, num_payment, note, fk_user_author, fk_bank)";
|
||||||
$sql .= " VALUES ($this->chid, '".$this->db->idate($now)."',";
|
$sql .= " VALUES (".((int) $conf->entity).", ".((int) $this->chid).", '".$this->db->idate($now)."',";
|
||||||
$sql .= " '".$this->db->idate($this->datepaye)."',";
|
$sql .= " '".$this->db->idate($this->datepaye)."',";
|
||||||
$sql .= " ".price2num($totalamount).",";
|
$sql .= " ".price2num($totalamount).",";
|
||||||
$sql .= " ".((int) $this->paiementtype).", '".$this->db->escape($this->num_payment)."', '".$this->db->escape($this->note)."', ".((int) $user->id).",";
|
$sql .= " ".((int) $this->paiementtype).", '".$this->db->escape($this->num_payment)."', '".$this->db->escape($this->note)."', ".((int) $user->id).",";
|
||||||
|
|||||||
@ -656,9 +656,12 @@ if ($action != 'edit' && $action != 'create') { // If not bank account yet, $ac
|
|||||||
|
|
||||||
$holiday->id = $objp->rowid;
|
$holiday->id = $objp->rowid;
|
||||||
$holiday->ref = $objp->rowid;
|
$holiday->ref = $objp->rowid;
|
||||||
|
|
||||||
$holiday->fk_type = $objp->fk_type;
|
$holiday->fk_type = $objp->fk_type;
|
||||||
$holiday->statut = $objp->status;
|
$holiday->statut = $objp->status;
|
||||||
$nbopenedday = num_open_day($db->jdate($objp->date_debut), $db->jdate($objp->date_fin), 0, 1, $objp->halfday);
|
$holiday->status = $objp->status;
|
||||||
|
|
||||||
|
$nbopenedday = num_open_day($db->jdate($objp->date_debut, 'gmt'), $db->jdate($objp->date_fin, 'gmt'), 0, 1, $objp->halfday);
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td class="nowrap">';
|
print '<td class="nowrap">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user