diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 265618f0b1d..cb1bc311968 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -13116,12 +13116,6 @@ parameters: count: 1 path: ../../../htdocs/eventorganization/conferenceorbooth_contact.php - - - message: '#^Variable \$permission might not be defined\.$#' - identifier: variable.undefined - count: 3 - path: ../../../htdocs/eventorganization/conferenceorbooth_contact.php - - message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#' identifier: function.alreadyNarrowedType diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index d27f6dc03cb..efb98fff435 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -92,7 +92,7 @@ $hookmanager->initHooks(array('thirdpartybancard', 'globalcard')); $permissiontoread = $user->hasRight('societe', 'lire'); $permissiontoadd = $user->hasRight('societe', 'creer'); // Used by the include of actions_addupdatedelete.inc.php and actions_builddoc.inc.php -$permissiontoaddupdatepaymentinformation = $user->hasRight('societe', 'thirdparty_paymentinformation_advance', 'write'); +$permissiontoaddupdatepaymentinformation = $user->hasRight('societe', 'thirdparty_paymentinformation', 'write'); // Check permission on company $result = restrictedArea($user, 'societe', '', ''); diff --git a/htdocs/ticket/stats/index.php b/htdocs/ticket/stats/index.php index f020f29bf15..3e506311658 100644 --- a/htdocs/ticket/stats/index.php +++ b/htdocs/ticket/stats/index.php @@ -209,7 +209,7 @@ print '
| '.$langs->trans("Year").' | '; print ''.$langs->trans("NbOfTickets").' | '; -print '% | '; +print '% | '; //print ''.$langs->trans("AmountTotal").' | '; //print '% | '; //print ''.$langs->trans("AmountAverage").' | '; @@ -237,7 +237,7 @@ foreach ($data as $val) { print '
| 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$year.' | '; print ''.$val['nb'].' | '; - print ''.round(isset($val['nb_diff']) ? $val['nb_diff'] : 0).' | '; + print ''.round(isset($val['nb_diff']) ? $val['nb_diff'] : 0).'% | '; //print ''.price(price2num($val['total'], 'MT'), 1).' | '; //print ''.round($val['total_diff']).' | '; //print ''.price(price2num($val['avg'], 'MT'), 1).' | ';