Fix: Le lien sur le user de création lors d'un ajout dans llx_bank ne se faisait pas.
This commit is contained in:
parent
e361c053d1
commit
09d66df3ee
@ -114,7 +114,7 @@ class Account
|
|||||||
* Ajoute une entree dans la table ".MAIN_DB_PREFIX."bank
|
* Ajoute une entree dans la table ".MAIN_DB_PREFIX."bank
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Function addline($date, $oper, $label, $amount, $num_chq="",$categorie='')
|
Function addline($date, $oper, $label, $amount, $num_chq='', $categorie='',$user)
|
||||||
{
|
{
|
||||||
if ($this->rowid)
|
if ($this->rowid)
|
||||||
{
|
{
|
||||||
@ -145,8 +145,8 @@ class Account
|
|||||||
|
|
||||||
$datev = $date;
|
$datev = $date;
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bank (datec, dateo, datev, label, amount, author, num_chq,fk_account, fk_type)";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bank (datec, dateo, datev, label, amount, fk_user_author, num_chq,fk_account, fk_type)";
|
||||||
$sql .= " VALUES (now(), '$date', '$datev', '$label', '" . ereg_replace(",",".",$amount) . "','$author','$num_chq', '$this->rowid', '$oper')";
|
$sql .= " VALUES (now(), '$date', '$datev', '$label', '" . ereg_replace(",",".",$amount) . "', '$user->id' ,'$num_chq', '$this->rowid', '$oper')";
|
||||||
|
|
||||||
|
|
||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user