dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [Bug #1383] When add a salary payment - In bank, lin


From: Doliforge
Subject: [Dolibarr-bugtrack] [Bug #1383] When add a salary payment - In bank, link "user" doesn't work
Date: Sun, 11 May 2014 07:03:23 +0200

Doliforge
Ce message ne s'affiche pas correctement?
mettez à jour vos préférences utilisateur.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]