mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
3bb748a4ee
|
|
@ -3,7 +3,7 @@
|
|||
* Copyright (C) 2007-2010 Jean Heimburger <jean@tiaris.info>
|
||||
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2013-2024 Alexandre Spangaro <alexandre@inovea-conseil.com>
|
||||
* Copyright (C) 2013-2025 Alexandre Spangaro <alexandre@inovea-conseil.com>
|
||||
* Copyright (C) 2013-2016 Olivier Geffroy <jeff@jeffinfo.com>
|
||||
* Copyright (C) 2013-2016 Florian Henry <florian.henry@open-concept.pro>
|
||||
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
|
||||
|
|
@ -1276,12 +1276,10 @@ if (empty($action) || $action == 'view') {
|
|||
// Subledger account
|
||||
print "<td>";
|
||||
print '</td>';
|
||||
print "<td>";
|
||||
$tmpvatrate = (empty($def_tva[$key][$k]) ? (empty($arrayofvat[$key][$k]) ? '' : $arrayofvat[$key][$k]) : implode(', ', $def_tva[$key][$k]));
|
||||
$labelvatrate = $langs->trans("Taxes").' '.$tmpvatrate.' %';
|
||||
$labelvatrate .= ($numtax ? ' - Localtax '.$numtax : '');
|
||||
print "<td>" . $bookkeepingstatic->accountingLabelForOperation($companystatic->getNomUrl(0, 'supplier'), $invoicestatic->ref_supplier, $labelvatrate) . "</td>";
|
||||
print "</td>";
|
||||
print '<td class="right nowraponall amount">'.($mt >= 0 ? price($mt) : '')."</td>";
|
||||
print '<td class="right nowraponall amount">'.($mt < 0 ? price(-$mt) : '')."</td>";
|
||||
print "</tr>";
|
||||
|
|
|
|||
|
|
@ -9186,7 +9186,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
|||
} elseif (property_exists($object, 'delivery_date')) {
|
||||
$date_delivery = $object->delivery_date;
|
||||
}
|
||||
$substitutionarray['__DATE_DELIVERY__'] = (isset($date_delivery) ? dol_print_date($date_delivery, 'day', 0, $outputlangs) : '');
|
||||
$substitutionarray['__DATE_DELIVERY__'] = (isset($date_delivery) ? dol_print_date($date_delivery, 'day', false, $outputlangs) : '');
|
||||
$substitutionarray['__DATE_DELIVERY_DAY__'] = (isset($date_delivery) ? dol_print_date($date_delivery, "%d") : '');
|
||||
$substitutionarray['__DATE_DELIVERY_DAY_TEXT__'] = (isset($date_delivery) ? dol_print_date($date_delivery, "%A") : '');
|
||||
$substitutionarray['__DATE_DELIVERY_MON__'] = (isset($date_delivery) ? dol_print_date($date_delivery, "%m") : '');
|
||||
|
|
|
|||
|
|
@ -99,9 +99,6 @@ class InterfaceNotification extends DolibarrTriggers
|
|||
$notify = new Notify($this->db);
|
||||
$resultSend = $notify->send($action, $object);
|
||||
if ($resultSend < 0) {
|
||||
if (!isset($this->errors)) {
|
||||
$this->errors = [];
|
||||
}
|
||||
$this->errors = array_merge($this->errors, $notify->errors);
|
||||
return $resultSend;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ if (empty($reshook)) {
|
|||
$object->capital = $capital;
|
||||
|
||||
$object->nbterm = GETPOSTINT("nbterm");
|
||||
$object->rate = price2num(GETPOST("rate", 'alpha'));
|
||||
$object->rate = GETPOSTFLOAT("rate");
|
||||
$object->insurance_amount = GETPOSTFLOAT('insurance_amount');
|
||||
|
||||
$accountancy_account_capital = GETPOST('accountancy_account_capital');
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ if ($user->hasRight('salaries', 'readall')) {
|
|||
if ($user->hasRight('hrm', 'read')) {
|
||||
$ok = true;
|
||||
}
|
||||
if ($user->hasRight('expensereport', 'readall') || ($user->hasRight('expensereport', 'readall') && in_array($object->id, $childids))) {
|
||||
if ($user->hasRight('expensereport', 'readall') || ($user->hasRight('expensereport', 'read') && in_array($object->id, $childids))) {
|
||||
$ok = true;
|
||||
}
|
||||
if ($user->hasRight('holiday', 'readall') || ($user->hasRight('holiday', 'read') && in_array($object->id, $childids))) {
|
||||
|
|
@ -778,7 +778,7 @@ if ($action != 'edit' && $action != 'create') { // If not bank account yet, $ac
|
|||
|
||||
// Latest expense report
|
||||
if (isModEnabled('expensereport') &&
|
||||
($user->hasRight('expensereport', 'readall') || ($user->hasRight('expensereport', 'lire') && $object->id == $user->id))
|
||||
($user->hasRight('expensereport', 'readall') || ($user->hasRight('expensereport', 'read') && $object->id == $user->id))
|
||||
) {
|
||||
$exp = new ExpenseReport($db);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user