NEW Bank Entries : add verif fk_user addPaymentToBank Social Contribution
This commit is contained in:
parent
2e14b9832d
commit
7fbf0b56d5
@ -579,6 +579,7 @@ 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);
|
||||||
|
|
||||||
|
if($socialcontrib->fk_user) {
|
||||||
$fuser = new User($this->db);
|
$fuser = new User($this->db);
|
||||||
$fuser->fetch($socialcontrib->fk_user);
|
$fuser->fetch($socialcontrib->fk_user);
|
||||||
|
|
||||||
@ -591,14 +592,14 @@ class PaymentSocialContribution extends CommonObject
|
|||||||
'user'
|
'user'
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($result <= 0)
|
if ($result <= 0) {
|
||||||
{
|
|
||||||
$this->error = $acc->error;
|
$this->error = $acc->error;
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->error = $acc->error;
|
$this->error = $acc->error;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user