Update bankentries_list.php

This commit is contained in:
Laurent Destailleur 2021-02-19 17:48:15 +01:00 committed by GitHub
parent af32ef266c
commit 0dabbcd7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1401,11 +1401,13 @@ if ($resql)
} }
if ($companylinked_id) { if ($companylinked_id) {
// TODO Add a cache of loaded companies here
$companystatic->fetch($companylinked_id); $companystatic->fetch($companylinked_id);
print $companystatic->getNomUrl(1); print $companystatic->getNomUrl(1);
} elseif ($userlinked_id && } elseif ($userlinked_id &&
(($type_link == 'payment_salary' && !empty($user->rights->salaries->read)) (($type_link == 'payment_salary' && !empty($user->rights->salaries->read))
|| ($type_link == 'payment_sc' && !empty($user->rights->tax->charges->lire)))){ || ($type_link == 'payment_sc' && !empty($user->rights->tax->charges->lire)))){
// TODO Add a cache of loaded users here
$userstatic->fetch($userlinked_id); $userstatic->fetch($userlinked_id);
print $userstatic->getNomUrl(1); print $userstatic->getNomUrl(1);
} else { } else {