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 18:35:44 +0200

Doliforge
Is this email not displaying correctly?
update email preferences.

When add a salary payment - In bank, link "user" doesn't work

Latest modifications

2014-05-11 18:35 (Europe/Paris)
Changes:
  • Status: 
OpenClosed
  • Assigned to: 
NoneLaurent Destailleur (eldy)
  • Resolution: 
NoneFixed

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 


reply via email to

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