When add a salary payment - In bank, link "user" doesn't workÉtat Détails |
Last Modified On: | 11/05/2014 07:03 | | Submitted by: | SPANGARO Alexandre (aspangaro) |
Submitted on: | 11/05/2014 07:03 | |
Summary: | When add a salary payment - In bank, link "user" doesn't work |
Description: | When you add salary payment, two lines are added into bank module.
First link is ok but the second link concerning user isn't added for thirdparty column.
The problem coming form this part of code into paymentsalary.class.php :
// Add link 'user' in bank_url between operation and bank transaction
$linkaddedforthirdparty=array();
foreach ($this->amounts as $key => $value)
{
$sal = new PaymentSalary($this->db);
$sal->fetch($key);
$sal->fetch_user($this->fk_user);
if (! in_array($sal->user->id,$linkaddedforthirdparty)) // Not yet done for this thirdparty
{
$result=$acc->add_url_line(
$bank_line_id,
$sal->user->id,
DOL_URL_ROOT.'/user/fiche.php?id=',
$sal->user->lastname,
'user'
);
if ($result <= 0) dol_print_error($this->db);
$linkaddedforthirdparty[$sal->user->id]=$sal->user->id; // Mark as done for this thirdparty
}
} |
Step to reproduce bug: | |
Detected in version: | develop | | Category: | Module: Taxes |
Severity: | 5 - Major | | OS Type/Version: | |
PHP version: | 5.3 | | Database type and version: | |
Etat |
Status: | Open | | Assigned to: | Aucun |
Resolution: | Aucun | |
Répondre
|
|
|
|
|
|