Merge branch 'NEW_BankEntries_TaxSalarySocial_DisplayUser' of github.com:atm-lena/dolibarr into develop_NEW_BankEntries_TaxSalarySocial_DisplayUser
This commit is contained in:
commit
a1356718c0
@ -568,22 +568,23 @@ class PaymentSocialContribution extends CommonObject
|
|||||||
$result = $acc->add_url_line($bank_line_id, $socialcontrib->id, DOL_URL_ROOT.'/compta/charges.php?id=', $socialcontrib->type_label.(($socialcontrib->lib && $socialcontrib->lib != $socialcontrib->type_label) ? ' ('.$socialcontrib->lib.')' : ''), 'sc');
|
$result = $acc->add_url_line($bank_line_id, $socialcontrib->id, DOL_URL_ROOT.'/compta/charges.php?id=', $socialcontrib->type_label.(($socialcontrib->lib && $socialcontrib->lib != $socialcontrib->type_label) ? ' ('.$socialcontrib->lib.')' : ''), 'sc');
|
||||||
if ($result <= 0) dol_print_error($this->db);
|
if ($result <= 0) dol_print_error($this->db);
|
||||||
|
|
||||||
$fuser = new User($this->db);
|
if($socialcontrib->fk_user) {
|
||||||
$fuser->fetch($socialcontrib->fk_user);
|
$fuser = new User($this->db);
|
||||||
|
$fuser->fetch($socialcontrib->fk_user);
|
||||||
|
|
||||||
// Add link 'user' in bank_url between operation and bank transaction
|
// Add link 'user' in bank_url between operation and bank transaction
|
||||||
$result = $acc->add_url_line(
|
$result = $acc->add_url_line(
|
||||||
$bank_line_id,
|
$bank_line_id,
|
||||||
$socialcontrib->fk_user,
|
$socialcontrib->fk_user,
|
||||||
DOL_URL_ROOT.'/user/card.php?id=',
|
DOL_URL_ROOT . '/user/card.php?id=',
|
||||||
$fuser->getFullName($langs),
|
$fuser->getFullName($langs),
|
||||||
'user'
|
'user'
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($result <= 0)
|
if ($result <= 0) {
|
||||||
{
|
$this->error = $acc->error;
|
||||||
$this->error = $acc->error;
|
$error++;
|
||||||
$error++;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user