Skip to content

Commit

Permalink
Merge pull request #5219 from fmarcet/3.8
Browse files Browse the repository at this point in the history
Fix: Expensereport not compatible with multicompany
  • Loading branch information
eldy committed May 18, 2016
2 parents a4b497e + f7c9f20 commit 43cb646
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/expensereport/class/expensereport.class.php
Expand Up @@ -2,6 +2,7 @@
/* Copyright (C) 2011 Dimitri Mouillard <dmouillard@teclib.com>
* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
* Copyright (C) 2016 Ferran Marcet <fmarcet@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -149,6 +150,7 @@ function create($user)
$sql.= ",paid";
$sql.= ",note_public";
$sql.= ",note_private";
$sql.= ",entity";
$sql.= ") VALUES(";
$sql.= "'(PROV)'";
$sql.= ", ".$this->total_ht;
Expand All @@ -165,6 +167,7 @@ function create($user)
$sql.= ", 0";
$sql.= ", ".($this->note_public?"'".$this->db->escape($this->note_public)."'":"null");
$sql.= ", ".($this->note_private?"'".$this->db->escape($this->note_private)."'":"null");
$sql.= ", ".$conf->entity;
$sql.= ")";

dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);
Expand Down

0 comments on commit 43cb646

Please sign in to comment.