Merge branch '5.0' of git@github.com:Dolibarr/dolibarr.git into 6.0
Conflicts: htdocs/expensereport/payment/payment.php
This commit is contained in:
commit
9d0cb07ff9
@ -547,18 +547,18 @@ class PaymentExpenseReport extends CommonObject
|
||||
// Add link 'user' in bank_url between user and bank transaction
|
||||
if (! $error)
|
||||
{
|
||||
foreach ($this->amounts as $key => $value) // We should have always same third party but we loop in case of.
|
||||
foreach ($this->amounts as $key => $value) // We should have always same user but we loop in case of.
|
||||
{
|
||||
if ($mode == 'payment_expensereport')
|
||||
{
|
||||
$er = new ExpenseReport($this->db);
|
||||
$er->fetch($key);
|
||||
$er->fetch_user($er->fk_user_author);
|
||||
$fuser = new User($this->db);
|
||||
$fuser->fetch($key);
|
||||
|
||||
$result=$acc->add_url_line(
|
||||
$bank_line_id,
|
||||
$er->user->id,
|
||||
$fuser->id,
|
||||
DOL_URL_ROOT.'/user/card.php?id=',
|
||||
$er->user->getFullName($langs),
|
||||
$fuser->getFullName($langs),
|
||||
'user'
|
||||
);
|
||||
if ($result <= 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user