Dolibarr ERP & CRM » Bugs » bug #1383 When add a salary payment - In bank, link "user" doesn't workLatest modifications
Answer now
Snapshot Details |
Submitted by: | SPANGARO Alexandre (aspangaro) | | Submitted on: | 2014-05-11 07:03 |
Last Modified On: | 2014-05-11 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: | |
Status |
Status: | Closed | | Assigned to: | Laurent Destailleur (eldy) |
Resolution: | Fixed | | |
|
Open→ ClosedNone→ Laurent Destailleur (eldy)None→ Fixed